-
- cross-thread UI updating?
by mdelvecchio
- 11 Replies
- Last post
by mdelvecchio
- hello, i am a long time asp.net developer, but new to winform programming. in the application ive been assigned, the mainform spawns a new thread to fetch a bunch of data from a method. this takes time, which is why its been placed into its own thread, allowing the rest of the ui to be usable: Private m_getDashboardDataThread As Thread ... 'this is the method that gets the data and *currently* bi
-
- Loses form focus
by Rajendra Singh
- 2 Replies
- Last post
by Rajendra Singh
- Hi, We have a main form called MainForm. Our application connects to one hardware. Connection activity takes some time so we are showing one wait window (progress bar) running on child thread. When the connection done successfully, the main application window loses its focus and give focus to another process say Microsoft word or any other process running at that time. It happens not always the fr
-
- Checking for system requirements
by GMan_ETC
- 1 Replies
- Last post
by Wei Zhou - MSFT
- I have finished the development on my application; and I would like the capability of determining whether or not the target machine has the .NET framework version 2.0 installed on it, before the app is deployed. What coding must I apply to run this check, and if .NET framework is not installed, how would I integrate a script into my app's setup routine to install the framework
-
- Prerequisite not working?
by mdrelyea
- 14 Replies
- Last post
by Rodney Richardson
- I'm trying to build a setup for my application using a Windows Installer project. I'm using VS2005. My Windows application requires SQL Server 2005 Express, so I marked that as one of the prerequisites. I built the installer successfully and ran it on one computer running XP. It successfully detected that neither .net 2.0 or SQL Server 2005 Express were installed and installed both of them before
-
- Custom Data Binding...
by fbalas
- 0 Replies
- Last post
by fbalas
- I'm looking for a starting point. What interfaces/concepts must I look into to develop the following:
I have a many-to-many relationship in my dataset:
Authors can write many Books. Books can have many Authors.
Now in the dataset I have three tables and 2 relationships.
Table: Authors Table: AuthorBookRel Tbale: Book
I am using a grid component that uses the relationships as a means
-
- Listview scrolling
by stanley
- 1 Replies
- Last post
by nobugz
- It is possible to freeze the first few column if I scroll horizontal
That is if i scroll horizontal in the list view , the first column still keep visible...(just like excel)
Thanks
-
- can i set the datasource property of a BindingSource to a Generic collection?
by viswaug
- 2 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi all, I have created a custom generic collection say CustomCollection<T>. But i am not able to create a datasource for the generic collection from the menu "Data-> Add New Datasource" item. Thus i am not able to set the datasource on my bindingsource to my CustomCollection<T>. Is this by design or is the design time functionality just nor present yet Is there any way i c
-
- Language of MessageBox
by &#40643;&#2785
- 2 Replies
- Last post
by serhio
- I write in VB.NET with VS2005. I would like to change the displaying language of my message box. How could I change the displaying language of a message box e.g. Dim Message As String = "You did not enter a server name. Cancel this operation "
Dim Caption As String = "Error Detected in Input"
Dim Buttons As MessageBoxButtons = MessageBoxButtons.YesNo
MessageBox.Sho
-
- how do i add it to columnheader1 insted of listbox.
by Andr&#38;&#35;
- 8 Replies
- Last post
by Zhi-Xin Ye - MSFT
- HI how do i add it to a listview insted of a listbox.
private void btGoToForm2_Click( object sender, System.EventArgs e)
{
Form2 frm2 = new Form2( this .textBox1.Text);
frm2.ShowDialog();
}
frm2.ShowDialog();
public class Form2 : System.Windows.Forms.Form
{
public Form2()
{
InitializeComponent();
-
- Making propertygrid's griditem uneditable...?
by Jogesh Grover
- 6 Replies
- Last post
by Jogesh Grover
- Hi,
I have a propertygrid in which i am showing customized combo box for some properties.
When any user selects an item from the combobox, that selected item got displayed in the value area.
By default this value area of griditem is editable i.e, user can edit the seleted value. Though this is not getting reflected in the combobox but i want to restrict the user to type anything in th
-
- Not understanding the concept of Resetxxxx Property
by mshvw
- 2 Replies
- Last post
by nobugz
- Hello, It's about a 'Reset' option that should, but does not, appear in some context menu. I don't know if it is ment during designtime or during runtime. in: http://msdn2.microsoft.com/en-us/library/bztt86cs(VS.80).aspx it says:
The property provides visual indication in the property browser if it has been modified from its default value.
The user can right-click on the property an
-
- Combining ClickOnce and MSI Installer
by vico
- 11 Replies
- Last post
by Stefan Krueger
- Hi,
I have been surprised by the gap there is between ClickOnce and MSI. And I need to solve this.
The scenario is this: Install a windows form application on a client (registry values, files, folder creation) and use ClickOnce to just update the application.
Any GOOD documents about it
Thanks!!!
-
- Modifying Publishing URL
by Nipam N. Patel
- 3 Replies
- Last post
by Radovici
- We do have vendor delivered application. By default .application file takes the name of the server as publishing URL (Codebase parameter inside .application file).
Now the problem is on one of the M/C we need to specify http://servername.domainname.com/application in order to access the url. On other M/C's we can access the application directly using http:// servername/application . Can we mo
-
- Please give me the way to write RadioButton Class for DataGridView.
by pvphuc
- 7 Replies
- Last post
by pvphuc
- I want to use RadioButton in DataGridView but I do not how to do that. I just need a very simple Class for getting/setting its Checked state true/false. That is all I need for this control. Please help me to that. It is urgent Thanks in advance Best Regards, pvphuc
-
- How to Wrap text in a text box column of datagrid in windows application.
by Hemant Hindlekar
- 12 Replies
- Last post
by Hemant Hindlekar
- I have a datagrid column in which I want to wrap the text in one column.
private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true dgcComments.TextBox.AcceptsReturn = true dgcComments.TextBox.WordWrap = true I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. I am able to see the wra
-
- how to avoid multiple task icons in the taskbar.
by Sukanya
- 1 Replies
- Last post
by tonn
- Hi, I have multiple forms in my application. When I open a form from another form, two form icons are displayed on the Taskbar.But I want only form2 icon to displayed and form1 icon should not be seen.However Form1 will be in inactive state. I should not hide Form1 and at the same time only present form icon should be displayed in the Taskbar. In Visual Basic 6.0 we do this by: Form2.Show 1 Now
-
- Richtextbox error !
by DoanHaNam
- 1 Replies
- Last post
by Andreas Johansson
- RichTextBox^ richtext1 = gcnew (System::Windows::Forms::RichTextBox);
//richtext1->LoadFile("c:\\test.rtf");
Controls->Add(richtext1);
The result :
An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll
Additional information: File format is not valid.
I have try to correct error . But is is might be the error is not cle
-
- Messages in c#
by impossibilities
- 1 Replies
- Last post
by ShellShock
- Hi to everyone,
In windows when you put the mouse cursor to the top of a icon (to a file in desktop or a program) a small box appears usualy in yellow and showes information about it. For example when you drag the cursor on the top of the my computer icon you might see this yellow box including an information like "shows the disk drives and connected hardwares.".
Is it poss
-
- displaymember lookup on other table
by rikidude
- 6 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
I have a dataset with 2 tables
Table 1: ID_TABLE1 field DESC field.
Table 2: ID_TABLE2 field, ID_TABLE1, ... others fields
My question:
I have a listbox and I want to add data in Table 2. Value are all added correctly but I want to display the DESC of Table 1 (by the way of a relation between ID_TABLE1 )
How I can do that
Thank very much...
-
- balance device
by bary2007
- 3 Replies
- Last post
by nobugz
- Hi
I need to write an application for a balance device using
VB.Net 2005, can anybody provide me of some articles
or code to show me how to do it .
the device has a RS232 output .
thanks in advance
-
- How to trap for esc key in a loop?
by DennisV
- 11 Replies
- Last post
by DennisV
- I want to trap for the escape key (Windows form) in a loop not directly connected to any control (no keyboard events available).
Isn't there a simple way to look for the esc key while I'm in the loop so I can break out if it's taking too long
Thanks,
Dennis
-
- Make a cell unreachable in DataGridView
by bullpit
- 8 Replies
- Last post
by bullpit
- Hi,
I have a datagridview control in my application which is databound. One of the columns is DataGridViewComboBoxColumn. Since the datagridview is populated from the database, I get comboboxes for rows which are just blank (blank rows are a requirement). It doesn't look nice to have comboboxes in rows where all other cells are empty or irrelevant. I have only a few rows which are like this
-
- Using Window Messages
by mshvw
- 6 Replies
- Last post
by nobugz
- Hello,
I wonder if it is possible to use Window Messages in C#
If so, would it be a good thing to use Window Messages to communicate between different Threads
Henk
-
- Capture all mouseclicks on active form
by TheNetStriker
- 3 Replies
- Last post
by TheNetStriker
- I have a microsoft ActiveX rdp control on my form which doesn't have a MouseClick event. I'm looking for a way to find ou when a mouse button is pressed over the area of this control. I think that this is only possible with an API registration of every mouseclick on my form and to check if they are in the are of the control. How can I catch such an event I saw that the SendMessage API call can sen
-
- Wise for windows Installer - impersonation
by Dirk Haest
- 5 Replies
- Last post
by PhilWilson
- Does somebody knows if we can impersonate (run the setup as another user when they start the setup)
We use "Wise for Windows installer 6.0".