I have a ListView in which i have a function that creates images for users. I pass userGender,userImage1name,userIsImage1Aprooved values to the function in which i generate image.
ie. if user has approved image i return it back, otherwise i return default image based on gender.
My question is, is there any way to avoid passing 3 paramet...
Hi
Dows anyone know how I can build a timeout feature into a windows forms app.
The app is event driven, but I am thinking of somehow using a timer which counts down for say 10minutes, and one the timer ticks then we time out the user.
The problem I have is how can I reset the timer each time the mouse is moved or clicked.
Any help a...
Because there is so little information about VB.Net and (Fluent) NHibernate to be found, I decided to write this question to all other developers finding themselves looking for more information.
On of the things i had to struggle with was how to Ignore properties in NHibernate.
The reason i had to ignore properties was because we used ...
Have an email, want to remove the first "@" symbol from it, to then make sure it doesn't have more then one in the second check. Here is currently how I'm doing it.
Dim tempEmail As String = ContactEmail
Dim count As Integer = 0
If tempEmail.IndexOf("@") <> -1 Then 'check for one
count += 1
tempEmail.Remove(tempEmail.IndexOf("@"...
Hey guys,
I've got an ASP.NET upload form on one page, where the user can upload an image. heres the code for that one:
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<html>
<head>
<script language="VB" runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
If imageupload1.HasFile Then
...
I am an almost-graduating computer science student, and throughout my coding career, I've found very few instances where enumerations, except for canonical cases such as representing the faces of a standard deck of cards, are used.
Do you know of any clever ways that enums are used in everyday coding?
Why are enumerations so important ...
Question: In order to store logos in a database and display them dynamically in ms-reporting service, I need to base64 encode the image. It doesn't work with binary saved images, due to MS limitations...
Now my question: Which datatype do I use? Varchar, nvarchar or text?
I guess varchar would be good enough, since base64 encoded, but ...
Hello,
Please help me in reading this multilevel xml to a RadGrid. 1) I am planning not to use Aspx for this 2) The node named Item would eventually change as per app Requirements. So, I don't want to restrict my xpath to something like "//Product/Item"
<Products>
<Product ProductID="1">
<Item ItemID="1">
...
I currently have basic knowledge of C++ and VB.Net.
For our college project i plan to do something related to Accessing Hardware.
I would like to know about some Libraries and functions that can be used to access the monitor and hard disk (Master Boot Record actually) using:
C++
VB.Net
...
Hi,
I am trying to show or hide tabpages as per user choice. If user selects gender male then form for male in a tabpage "male" should be displayed and if user selects female then similar next form should be displayed in next tab "female"
I tried using
tabControl1.TabPages.Remove(...)
and
tabControl1.TabPages.Add(...)
It adds an...
I have a rich text box that I want to show as un-editable and un-selectable text. If I set Read-Only to YES and Enabled to NO, then I get the desired effect...
...except disabling the control changes the background color to the washed out grey. I'd like to keep the background color white.
I have tried:
RichTextBox.BackColor = Color.W...
I am building an ASP.NET application that needs dynamic tables. That's another issue that I've already posted about (and gotten a pretty good response!). Now, I'm running into another issue - I want to add new rows to my table, but given that I will have 10-12 tables on one page, each containing different objects in their rows (text boxe...
We are enhancing a web page that serves up a graphical chart. To serve this chart we have various filters on the page that the user can use to indicate the content they wish to retrieve. After getting too much clutter on the page we decided we would move the filters into a modalpopup panel that the Ajax Toolkit provides. To divide the...
Rather than giving the very specific case (which I did earlier), let me give a general example. Let's say that I have a function, called callingFunction. It has one parameter, called parameter. Parameter is of an unknown type. Let us then say that I wish to copy this parameter, and return it as a new object. For example, in pseudo code, ...
Hi, i would like to know if there is a Way that when an exception is thrown to let the program continue aftare the exception was thronw for example
try
line 1
line 2
line 3
line 4 ( here the exception is throw and jumps to the catch)
line 5 <-- i would like the program to continue its execution after lo...
I am using VS2010 VB.NET, working on a solution that has a number of projects. I have been developing on it for a while now, and in an attempt to debug a custom class inherited from ObservableCollection (which by the way would not load symbols when debugging even though it was apparent that the breakpointed line was being called), I cha...
In c# you can auto property a value with different level of access for the get and set . . . e.g.
public String myString
{
get;
private set;
}
Is there away to do that with automatic properties in vb.net or are you forced to go for the long winded implementation of properties?
e.g. I don't want to do this all the time
Dim _myStr...
Which options are there to make your 3-Tier System.
Client / Common / Server
Now we work with the entityframework and agatha. But are there other options to make a good 3-Tier system?
The agatha framework, makes for us the request/response on the common site.
On the server site the response will be filled in.
But are there other fram...
If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening whe...
I'd like to utilize Select & Insert statements on a DataTable in VB.NET or C#.
Example:
Dim Results as DataTable
Results = Select * from SourceDataTable where PlayerID < 10
Is anything similar to this possible?
Thanks
...