-
- MessageLoop Management in Application.Run - Help!
by tuphdc
- 7 Replies
- Last post
by Dave Midgley
- How can I manage the message loop in my C# program MSDN says that Application.Run() begins running a standard message loop. How can I gain access to this message loop What does Application.MessageLoopCallback do Can I use it to manage the message loop There is no MSDN documentation on it. I am aware that I can override the WndProc function of the System.Windows.Forms class. However, this prog
-
- (vb) asp.net validation
by flerida
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I am writing a window form using (vb) asp.net, I have to validate two textboxes that when the user enter the passwords and both passwords are correct the form will display a welcome label; if the passwords are not correct; both textboxes will automatically clear and tell the user that the passwords did not match. I have the form working correct if the passwords
-
- Custom control drawing problem
by nec4b
- 4 Replies
- Last post
by nec4b
- Hi!
I have a base control, that creates two new event handlers and does some drawing on its surface through an offscreen bitmap. Than i have a second (several) control(s) that is derived from my base control. This control does some more drawing. I would like that the derived control, can use offscreen bitmap from base control and when i call Invalidate() the offscreen bitmap is drawn to the
-
- how do i serch between values??
by Andr&#
- 8 Replies
- Last post
by André Dani
- i have come this far :
DateTime date = dateTimePicker1.Value;
DateTime date1 = dateTimePicker2.Value;
string thedate1 = date1.ToString( "yyyy-MM-dd" );
string theDate = date.ToString( "yyyy-MM-dd" );
using ( StreamReader adressfil1 = new StreamReader ((theDate + ".txt" )))
{
string rad;
while ((rad = adressfil1.ReadLine()
-
- Bind to ComboBox
by Jim G
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi,
I have a application which has a ComboBox pre-populated in designer with string for directions (N, S, E, W). My preference would be to have this be a DropDownList style, so the user has to pick one of these values. In addition, I have a DataTable that I am currently using to store records and binding to several different controls - mainly textboxes. The binding from the DataTable to the
-
- How can I Simulate a Mouse wheel down by MouseInput
by Aymaneez
- 4 Replies
- Last post
by Aymaneez
- Hi I need help I try to write code that simulate mouse events but I can't simulate mouse wheel, is there any example
this what i write: VB code
Code Snippet
Private Structure MouseInput
Public dx As Integer
Public dy As Integer
Public mouseData As Integer
Public dwFlags As Integer
Public time As Integer
Public dwExtra
-
- Control.Invoke() hangs when desktop is locked.
by Andrei Ivanov
- 5 Replies
- Last post
by Martin Xie - MSFT
- Hello all.
Weird bug here. My app is using delegates to update the controls on the UI through Control.Invoke() call.
If I lock the desktop before my code executes the delegate, when I unlock it, the app will hang at the Invoke() call. Only happens at that point.
Is there some way I can find out what's blocking the UI thread and why would it only happen when desktop is locked
I trie
-
- update joined tables
by seco
- 3 Replies
- Last post
by cafeasp
- if i have a database contains about 25 to 30 related tables(all have relations between them). and on my application i just get only 2 related tables onto the dataset and then i write the proper sql statement for updating and deleting data for the 2 joined table . does the statement will raise concurrency violation exception or it will goes successfully if it raise the exception does i need to get
-
- Best pratice for saving window-states etc?
by Andreas Brosten
- 2 Replies
- Last post
by Christian Liensberger - MSP
- I'm pretty new to c# and .NET and I'm looking for the best way to save things like window-sizes, ListView column order, ListView sorted column, ListView column width etc... Basicly making the applikation look like it did the last time it was closed.
I was thinking of using the users setting file for this, but I can't find a way to create new setting-entrys at runtime (I'd prefer not having to d
-
- error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
by Keith555465
- 4 Replies
- Last post
by Keith
- Hi All,
I'm running into a timeout expired error when I attach a primary key to a column in a large table. The work around I found was to write a script (ALTER TABLE)to set the primary key to that column. Now when I change the size of a column in a large table I run into the same problem. Does anybody know how to change the timeout setting on SQL Server 2005 Management Studio
Thank
-
- Newbie needs help
by Lutzee
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi i am very new to programming windows forms. I have asked this question before, but i don't think i explained it very well. I know some stuff about console programming. I have some questions. 1) When i create a windows forms app is the default "Form1" a class 2) When i create a pointer in the class test to any other class apart from form1 it works, i ca access their data members and everything.
-
- How to Show animated GIF images in DataGridView?
by ARaheem Awan
- 3 Replies
- Last post
by Rumesh
- Hi! I have tried to show animated GIF images in DataGridView but the images are shown as static(still) images i.e. no animation. Then I searched for adding Picturebox control to datagridrow cells (i.e PictureBox Column) but found that DataGridView doesn't support adding controls to it. ( Reference ) If some one could please tell how can we show animated GIF images in DataGridView Thanks in advanc
-
- Table Adapter Update Order
by brockmoore
- 1 Replies
- Last post
by Ken Tucker
- I have two datagridviews on a form, that have a parent-child relationship via a FK. I am getting a FK error depending on which order I call the .Updates in. I.e. Add new record to Parent and Child childAdapter.Update FK violation here parentAdapter.Update If I change the code to update the parent first of course it works parentAdapter.Update childAdapter.Update until... you Delete
-
- DataGrid like PropertyGrid
by epotter
- 2 Replies
- Last post
by Gavin Jin - MSFT
- Is there a grid control that can have multiple columns like a data grid but have subitems like a property grid
-
- DataGridView Vertical Text
by DanDare
- 6 Replies
- Last post
by DanDare
- I've seen some solutions to creating vertical text in the column headers but any I've tried seem to put the text all over the place or expand and contract the text depending on column widths.
I'm thinking that a possible solution is to create bitmap images of each column header and rotate them 90 degrees.
Is there a way of placing each image in the specific column header. If not the
-
- How can I make WebBrowser and AxWebBrowser the same thing.
by kcdclan
- 8 Replies
- Last post
by kcdclan
- this .webBrowser1 = new System.Windows.Forms. WebBrowser ();
this .axWebBrowser1 = new AxSHDocVw. AxWebBrowser ();
I have to have two forms and I need them to be one. One has one the other don't Same with other. I don't know how posable it is but what way could I get around this
-
- listview selection
by Can-Ann
- 1 Replies
- Last post
by Marcelo Guerra - MSFT
- I have a listview with two columns and a textbox
when a selection is made I want the second column text to show in the text box.
How do I do this,in the selected index change
-
- Disable RenderMode selection on my custom ToolStrip
by Nazgulled
- 2 Replies
- Last post
by Nazgulled
- I have subclassed the ToolStrip control which I called MyToolStrip and ToolStripProfessinalRenderer which I called MyToolStripProfessionalRenderer. To make my custom ToolStrip control use my custom renderer I've add the following line to the constructor of MyToolStrip, like this:
Code Snippet
internal class MyToolStrip : ToolStrip { public MyToolStrip() { this.Renderer = ne
-
- ListView.Refresh what am I missing?
by TomEire
- 11 Replies
- Last post
by Major Byte
- I have a ListView control (Detail view) that I fill programatically. I expected that when I changed the value of a 'cell' (a sub-item on one of the listview items) that I could just call Refresh on the ListView control. But I don't get the updated value displayed. I must be missing something (grr....), probably simple and obvious (I hope).
If I walk the data in the control, I see the updated va
-
- WebBrowser and pop up (VS2005)
by luca82
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi all, how can i handle pop up windows opening with the webbrowser control Especially those opened by a window.showmodaldialog javascript function Thanks in advance
-
- Where does visual studio load images/icons from?
by xr280xr
- 7 Replies
- Last post
by DotNetHeaven
- Certain controls allow for images or icons. Some of these controls ask you to import these images into your global resources from your local drive while others do not. The imagelist, for instance, lets you browse for an image from your local drive and select it without importing it to your resources. The designer code uses this code:
(( ImageListStreamer )(resources.GetObject( "imageLi
-
- How to make a Control inherit the Form backcolor or properties (i.e. font etc)
by Severin123
- 4 Replies
- Last post
by xr280xr
- Hi folks,
I would like to know if anyone knows how to make a Custom control inherits the form,upon which it gets dropped, properties like the backcolor, font etc....
By inherits I means will have its own property assign with the current value of the form property.
e.g.
Control.Font = Form.Font;
Also, I want to have the control set up its property at construction time (when the contr
-
- How to use parameters used during install in the uninstaller
by drajwani
- 1 Replies
- Last post
by PhilWilson
- Hi, My installer UI during install, ask for values for certain parameters (taken as input in the textboxes dialog), can values taken during install, be accesible during uninstall (in custom actions) i know TARGETDIR is availabe during install, uninstall. can we do something do get the same behaviour for user input Thanks Dinesh
-
- PropertyGrid - Visible and Enabled Properties
by Paula M
- 6 Replies
- Last post
by Malacki
- Hi,
I have an application that uses the properygrid object to display properties of a custom class - the custom class inherits a button. After the user sets the properties, they are allowed to save them. The problem is the visible and enabled properties are always set to true even if they set them to false.
Is this a known issue
Thank you in advanced! Paula
-
- Getting Control Information at Run-time
by Fex
- 3 Replies
- Last post
by Fex
- Hello everyone,
I imagine this has been asked before, as it seems a very basic issue, but I cannot seem to find a solution anywhere. I'm using VB2005EE.
I have made a class with a method that creates a panel with a set of controls (label, textbox, button). And I have a tabcontrol that I can add new tabpages to at run-time (by clicking a "New Tab" button). When I create a ne