Trying to convert the following code to VB.NET In my attempt to do this on my own I must have missed something. My code is below also.
Also reference my origional question that brought me...
How can I get a hex/ascii dump of a file in Visual Studio 2005?
I used to use dumpbin.exe in older VS, but can no longer find it or an alternative.
Is there a way to have a tooltip or context menu for the items in a combobox?
I want to either be able to right click or hover over an item and see some text.
I have a pulldown with a gu...
I'm using a UserControl and some other windows controls (textbox, groupbox, ...) on the form.
I'm trying to access the control from other function like this -
if(control.GetType() == t...
Hi,
I am using sessions to log into my web site. The problem I am having is if the user presses the 'Enter' key the user will be logged off!
Any ideas?
regards,
introlux
I have an archive of pdf files. What I am trying to do is copy the PDF file to the project folder, and then redirect the browser to the pdf file, and then delete the file from the project fol...
hello, I'm inserting a record in a c# code in asp.net 2.0. The code is attached here and works fine most of the time. The problem is that the code reads all the records in the table: S...
This is driving me crazy! I keep getting the following error:
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This er...
How do I use a variable for the printer name 'Adobe PDF' in the WMI query, instead of hard coding the printer name? I would like to pass in a string variable, such as strDefaultPrinter. I am t...
i want some very good links for databinding to accordion control in asp.net ajaxtoolkit
I have a mainForm where all of the objects reside, including a few labels (modifer is internal) that I need to change the 'text' attribute for. I am trying to access them from another class, ...
In my C# .NET 2.0 application I have a UserObject "Patient"
During the lifetime of the application this object is being used either to represent a new Patient or to allow making updates to an...
Hi,
I have this C#/ASP.NET .aspx page.
The code goes something like this:
<script runat="server">
public string ID="";
protected override void OnLoad(EventArgs e) {
ID= "Mario...
I am maintaining a Net 1.1 application in Visual Studio 2003. I am in the process of converting to Visual Studio 2008 and .Net 3.5.
As I am converting I must still make mods to the 2003 versi...
Greetings all
I have a Windows form that receives a parameter (passed via the form constructor). Based on the value in this parameter, I want to change the header text.
1. How do I do t...
As I use C# .NET Express I am having difficulty distributing my program and updating it en-mass around the network to users. Is there anyway easier way of doing this besides using an .msi (wh...
I found a very nice sample online of how to enhance the ImageButton control with rollover effects (see attached code snippet) and it works very well for that. I now need to have the ImageButto...
I have a grid with a sqldatasource. The grid gets populated when I click a button (passing the search by criteria and search text field). This works fine. I also have a string of hyperlinks "A...
How can I end a C# Windows application from a method ?
Visual Basic 6 had a keyword called End.
What is the equivalent in C#?
If some method encounters a fatal error and my application ca...
I need to have an array of strings.
1) How do I create them?
2) How do I index through them and know how many valid strings there are?
newbieweb
My application sends data to an existing excel sheet from a datatable based on user selection. If the user wants to go back to the query form and wants to retrieve new data , I want to keep t...
I have a column in a datatable which contains numbers. When I insert the concents of the column into excel, the numbers are strings. How do I cast these strings to integers before loading th...
how do you open WinFoms that are independant to previous WinForm ?
i.e. at the moment, all new Winforms are on top of the previous one, and you cannot access the previously opened WinForm u...
Hello Experts,
I'm looking for a short example of using destructor in C#.
The most important thing to me is that it would be short but real life example.
Just to make it clear:
1. I know h...
Hello Experts,
I am using the chosen date from a DateTimePicker as a paremeter in a method (MethodA()) on a Windows form in C#. Currently I have to select a new date from the DateTimePicker...