-
- How to prevent Designer from executing code in a UserControl's Load event.
by JocularJoe
- 9 Replies
- Last post
by SachinT
- Consider a WinForms application with a form Form1 and a UserControl UserControlA.
If you drag and drop UserControlA on to Form1 in the VS2005 Designer, then the Designer will execute UserControlA's Load event handler(s) each time Form1 is opened in the Designer.
This can be highly undesirable, for example a Load event handler may contain application code to connect to a database etc
-
- WebBrowser control shows HTML code
by Aussie
- 8 Replies
- Last post
by Figo Fei - MSFT
- Hello,
I've a project where i'm assigning a HTML string to the DocumentText
property of the WebBrower. On most PCs there's no problem with it, but
there are PCs which show the actual HTML code instead of the webpage.
Any idea's what's the reason and a possible solution :)
Regards,
Aussie
-
- Update of bound DataRow in CellValidating event causes EditedFormattedValue to change
by CodeSweatAndBeers
- 1 Replies
- Last post
by CodeSweatAndBeers
- Here's the deal. I have a DataGridView bound to a DataTable. I perform validation on the user's entries in the CellValidating event. When a user makes a change to a certain cell, I need to reset another column in the bound DataRow to zero before performing the validation. The problem is that when I set the column to zero in the bound DataRow, the EditedFormattedValue of the DataGridViewCell that I
-
- memory leak issues this.Invoke(new EventHandler (ReadData));
by Dan Walmsley
- 2 Replies
- Last post
by Peter Ritchie
- Everytime the serial port receive data event occurs, i use
Code Block
this . Invoke ( new EventHandler ( ReadData ));
to invoke a method to parse the data streaming in on the serial port. Would this create a memory leak if the is no termination or disposing at the end of the ReadData method
For a more detailed cope sample see post: https://forums.m
-
- How to access data from dataset <-> windows forms
by Razer1911
- 13 Replies
- Last post
by Razer1911
- I have a windows C# GUI program that uses forms to display a result from a sql-query.
The query is "select * from accounts where id in (2,3,4)"
I have done most of the work in microsoft visual studio 2005 pro, and created a datatable from a dataset, with a datatableadapter with a getData() method that does the select.
The form1.cs file for the GUI contains some code and also
-
- How to Show Image in Datagridview cells
by Hr_Ind
- 8 Replies
- Last post
by Wedant
-
HI,
I am stuck with a problem that how to display an image in the datagridviewimagecolumn
As when i m trying it shows a X mark. Not the Image
My Code is:
Dim ArrowIcon As New Icon( "..\Images\Icon1.ico" )
Dim IconColumn1 As New DataGridViewImageColumn
Dim IconColumn2 As New DataGridViewImageColumn
IconColumn1.ImageLayout = DataGridViewImageCellLayout.Nor
-
- Enable one Textbox, Disable the other in a Vb.net Winform
by nbk5533
- 5 Replies
- Last post
by nbk5533
- I have three textboxes and a Submit Button in a GroupBox on a Winform.
Textbox1 (holds a single computername)
Textbox2 (holds multiple computernames from a text file)
Textbox3 (software application name entered here)
When I enter information in one of the first two textboxes
As I enter information in the one textbox, I want it to disable the other textbox.
I would like it
-
- unable to install Window Service
by bslim
- 5 Replies
- Last post
by Moazzam Waheed
- Hi all,
I had tried to install Window Service but not able to see the Window Service that I had installed in the Services.
Below is the script that is running and the exe file is in D:\test
Found .NET Framework version 2.0.50727 Installing service "WinWatcherService.exe" Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42 Copyright (c) Microsoft Co
-
- Problem with setting SplitContainer.SplitterDistance at runtime
by UlliDK
- 1 Replies
- Last post
by nobugz
- Hi,
I'm trying to set the SplitterDistance of a vertical SplitContainer at runtime, from a state variable containing the last value of SplitterDistance,
However, everytime the splitter distance saved in state is greater than the default splitter distance, the splitter is automatically set back to the default position. Any ideas It works fine with a horizontal SplitContainer!!
-
- How to uninstall all related programs during uninstallation
by Jennifer Zhao
- 5 Replies
- Last post
by PhilWilson
- In our project, the main product is a huge msi . Furthermore, there are many small msi ,which are created by .Net setup project. These small kits can be regarded as patches to the main kit.
Each patch is an independent msi file, not just a "patch¡° package. Because each small kit can has custom action, which is not allowed by the stand "patch".
Here comes the problem. W
-
- Q on Toolstrip container, making toolstrips stay where you put them!
by dma550
- 3 Replies
- Last post
by Uma Anand M
- Hi there
I have a toolstrip container on a form, with menus and 3-4 toolstrips (one for file, record operations, and one specific to the form that is open)
My problem is that I can arrange them neatly, and on the same line, FFFFRRRR, where "FFFFF" = file toolstip and "RRRR" = Records nav. I run it, and the item is rendered properly.
Once I close the solution and re-run
-
- dynamic object generation in C#
by HarshK
- 4 Replies
- Last post
by HarshK
- Hi All
I want to generate a textbox as below
Textbox <XXXYYYZZZ> = new Textbox();
<XXXYYYZZZ> is not fixed, it is dynamic, and that is what ceeating the problem.
Actually what I need is as follows
I want to pass a string to method as below
"textbox: custid, top: 10, left: 10, height: 20, width: 80"
and I should be able to gen
-
- Saving and Restoring MDI workspace
by Sakthi Kumaran
- 1 Replies
- Last post
by nobugz
- I want to save and restore the layout and zorder of the MDI child forms.... How to get the zorder of the MDI Child forms in .Net
-
- link on datagridview
by Bibek
- 6 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hello i am formatting the data like this on datagridview using c#.net
product Quantity Delete
Dark chocolates 2 Delete
Milk chocolates 2 Delete
The data is formatted using first creating table and binding that table to view and then finally to datagridview.
where Delete is the datagridview lin
-
- Finding a text in a TREEVIEW
by CarlosPereda
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- In my application I keep a list of 'opened windows' in a treeview, later I want to know if a specific windows is opened so I use firstnode and nextnode to find the value, however it always gives a sintax error when using nextnode (also nextvisiblenode).
TV_Opened_Windows.TopNode.Text = "Opened Windows"
Dim newNode As TreeNode = New TreeNode( "Window 1" )
-
- Problem in using waitcursor
by bhavu
- 1 Replies
- Last post
by nobugz
- Hi,
I have one problem using waitcursor...
When i m c hanging my cursor to waitcursor....after that also user is able to select items, rightclick and get the contextmenu....
I don't want to allow any operation when waitcursor is there..what to do
-
- error during compilation.
by Sharique uddin Ahmed Farooqui
- 1 Replies
- Last post
by Gavin Jin - MSFT
- I'm getting following during compilation What is the meaning of this Error 1 Unable to find manifest signing certificate in the certificate store.
-
- DataGridView error after columns removed/added to bound datatable
by Mudbugz
- 3 Replies
- Last post
by Mudbugz
- Background:
I have a DataGridView (dgv) bound to a datatable. The first few columns in the datatable are fixed, while the last few columns are dynamic (the user is allowed to pick a template, which changes the columns). The last column in the datatable is always "Gross Total".
If I create a new datatable, add the columns, bind it to the dgv, edit a cell's value in the dgv, remove t
-
- Problem with Open/execute file.
by YeeBoon
- 2 Replies
- Last post
by YeeBoon
- Hi,
I am using VB.net 2005. I want to add a button in my windows form, so that when user click on the button, it will open the file.
The file is in the pre-set location, for example, C:\data.doc or D:\Info\data.pdf or d:\info\aaa.jpg
The file will be open with it default program like .doc will be open with MS Word, .pdf will be open with Adobe Reader,etc. If unknown file, it will prompt y
-
- ToolTipSplit and ToolTipDropDown Remember last selection
by ducmis
- 4 Replies
- Last post
by Yu Guo ¨C MSFT
- Can someone help me I want to retain the last selection with my dropdowns. Either ToolTipSplit or normal, i want the selection to display the last selection that I pick.
-
- Calling correct class at runtime depending on tab selected.
by robben07160
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I have created three user controls and I have a main form with a tab control with three tabs (implemented in C# - Visual Studio 2005).
On each of the three tab sections on the main form I have one of these user controls.
Each user control¡¯s class uses the same interface class (in this example I shall call it ¡®IfcCls¡¯).
What I want to do is when the user clicks o
-
- Print ZPL codes to ZEBRA printer using PrintDocument class
by Shughes
- 11 Replies
- Last post
by Fábio
- Is there any way to print to a Zebra Printer using ZPL (EPL2) codes, by derving from the .NET printdocument class If so, is there a way I can preview the output using a printpreview dialog or custom control that will interpret the ZPL codes and display an image of what the final document would look like Please post sample code if you have a solution or partial solution to this problem.
-
- How to Remove ListItem from a ListBox
by ranadheer mac
- 6 Replies
- Last post
by Pandian S
- Hi friends
when i try to remove ListBox item(ListItem) its giving error
error :
List that this enumerator is bound to has been modified. An enumerator can only be used if the list does not change.
i have only ListItem objects in my ListBox and my code as follows
foreach ( ListItem removeitem in listBox1.SelectedItems)
{
listBox1.Items.Remove(removeitem);
}
any help
-
- How to change combobox text property after SelectedIndexChanged event?
by querilla
- 5 Replies
- Last post
by Charles Gaefke
- This is becoming pretty irritating, it seems that you can't change your combobox text property in SelectedIndexChanged event. How can I change it after the event has fired Text can be changed in Leave event but I don't want the user to lose the focus of the control. Is there any way
-
- Both DataSource and DataSourceID are defined in Gridview1
by Neftali Reyes
- 3 Replies
- Last post
by jfkrueger
- By the way you guys in this C Forum ROCK. Other forums may take weeks or months before you get an answer.
I have a problem using C# on a ASp.NET site.
I have a Table Adapter with two queries. 1 to return all projects and the other to return projects on ProjectID parameter.
I use GridViewProject bound to ObjectDataSource1 to return al projects, but have a search textBox with a button on th