-
- How can a control know that SuspendLayout is active
by Peter Huber
- 5 Replies
- Last post
by nobugz
- I'm writing my own control for Windows, inheriting from System.Windows.Forms.Control. Some of my properties call PerformLayout(). The problem is that PerformLayout () calls onLayout(), even if SuspendLayout() is active. How can i check in the property if SuspendLayout () is active and call PerformLayout () only if SuspendLayout() is not active Any other ideas how to prevent too many layouts
-
- How to wait for UI to process messages?
by LKeene
- 3 Replies
- Last post
by AaronLST
- Hello all,
I have a prototype of a program written that does a lot of time consuming processing in the UI thread (the prototype is just for testing internal purposes). It will be a little while before I get around to threading these tasks, but in the meantime I'm finding the UI "glitches" a little annoying. For example, one job launches when the user clicks a menu item on the main
-
- DataGridView Binding to object datasource
by jnsimex
- 4 Replies
- Last post
by jnsimex
- I have a DataGridView control that is binded to class using the object datasource control.
When I add a new row, I call the Insert Query in the DataGridView_UserAddedRow Event and its return the Identity value of the table.
Unfortunately, I do not see the identity value until a close the form and reopen it. The number is a parameter in the Update Query so I need it to be present to p
-
- Source Control
by artificer
- 2 Replies
- Last post
by artificer
- I want to have source control for a single developer project using windows XP and VS 2005 PRO. Should I use Visual Source Safe or anybody has a better recommendation
-
- Writing text mirrored....
by EricBrown
- 3 Replies
- Last post
by EricBrown
- I'm using this method to draw a line of text into a picture control... public void Draw( System.Windows.Forms.PaintEventArgs e ) { if(graphics == null) return; Point dp = new Point ( graphics.GlobalDrawPosition.X, graphics.GlobalDrawPosition.Y ); dp = GetOffsetPoint(); StringFormat stringFormat = new StringFormat(); stringFormat.Alignment = StringAlignment.Center
-
- Difference between BindingSource.position and BindingContext(DataSet).position
by CruzPedro
- 1 Replies
- Last post
by Ken Tucker
- Hi,
Can someone tell me what is the difference between BindingSource.positio n and BindingContext(DataSet).position
I'm having some problems using the BindingSource.position, and seams to menage with the second solution. But why
Thanks
-
- ComboBox Font
by akin_l
- 6 Replies
- Last post
by element109
- Hi, Is it possible to change the FontStyle of the text displayed in the combobox while the font of all the objects in the item collection remains the same.
Thanks!
-
- Printing a picture in C#
by CyberMV
- 3 Replies
- Last post
by nobugz
- I'm quite new to programming, and I was wondering how to printa picture from a resource file using the PrintDialog contol or some other control.
Also I want to change the language of the PrintDialog. Since I live in Croatia, I want it to be in Croatian language. Is it possible or not
Please help me!
-
- Grid binding to collection of abstract base classes instance
by Hormoz
- 5 Replies
- Last post
by ARK88
- Hi
I wonder if anybody can see what is wrong in the following scenario. In binding a collection of abstract objects that actually represent concrete objects through polymorphism, the grid does not show the properties that are in concrete
class ...to dexcribe it better suppose we have :
public abstract class Row
{
#region Properties
private string _id = null;
public
-
- Continue my Main code after the form?
by learning33
- 1 Replies
- Last post
by OmegaMan
- In my Main function I have: code1... Run Form code2... code2 doesn't start until I close the form. Is it possible to make code2 run as soon as the form has been drawn
-
- Dialog result without closing / event handling
by Anthony Pecorella
- 14 Replies
- Last post
by BonnieB
- For reference, I'm working in VS Express, C#. I'll try to keep background short and need-to-know. Also, my apologies on the font size - I tried to make it normal and apparently I have failed...
In my efforts to follow a good OO approach to programming a project, I have created an abstract object called Item (as in an item on a test) with an abstract method Display (which d
-
- Is Form Height limited?
by Radoslav Č&am
- 5 Replies
- Last post
by ntradek
- Why isn't possible set Height value for windows form greater than 1044. When I write bigger value is automatically repaired on 1044.
Thank's for any idea.
-
- Allow service to interact with desktop option
by kymaita
- 2 Replies
- Last post
by SharadJoshi
- What exactly means for us the developer the option that appear in the services that says ¡°Allow service to interact with Desktop¡±
Can we develop windows service with GUI or it is still need of Windows API
thks
-
- Flow layout panel flickering
by lagoa89
- 2 Replies
- Last post
by lagoa89
- Hi all, I was hoping someone could help me with what seems to to be a rather intractable C# problem. It is this: A form containing a flowlayoutpanel is dynamically populated with user controls (which in turn have their own child user controls). This panel is flickering when displayed or updated wih additional controls. Let me be precise about the "flickering". The main panel and the cont
-
- need help....
by Eunice Garcia
- 1 Replies
- Last post
by Yu Guo ¨C MSFT
- I have a application that involves a database, datagrid and dataset.. What I want to know if I can perform search method without going through the database.. for exmaple when I load my dataset in my datagrid then I click my search control instead of going in the database the search control will search within the dataset only. This my code to load my dataset:
Try
MySqlConn = New MySq
-
- Why is AddNewItem disabled???
by Dallastower
- 2 Replies
- Last post
by Dallastower
- Hello!
I¡¯m having some problems with my BindingNavgator which I cannot seem to resolve. I¡¯ve been developing a database application for a week or so i VB with Visual Studio, no problems that far. But now, all of a sudden, when I start my application i debug mode, my AddNewItem button i s disabled The property of the button is set to Enabled=True, and I haven¡¯t added any code that would chan
-
- IntellisenseTextbox
by A. de Winkel
- 2 Replies
- Last post
by A. de Winkel
- Last week I added the possibility for the users of my hobbyprogram to add there own code.
I therefore added a RichTextBox to display and edit the corresponding C# (or VB-code). However thus is without intellisense.
Thusfar I haven't found ways to add some basic level of intellisense to that textbox.
I wondered if someone knows how to get some IntellisenseTextbox , basically thus a RichTex
-
- Changing a cell color in a DataGridView based on a condition
by icc3wd
- 3 Replies
- Last post
by cverdon
- I am trying to write some code that compares the values of two cells in the same row. Then if they are not equal one of the cells changes to the color red. I want to do this while the cells are filling in a loop. Any ideas Thank you.
-
- Passing variables between forms/classes
by cygnusx
- 6 Replies
- Last post
by cygnusx
- What's the best/most secure way to use(get/set their values) variables in a form from other forms or classes I know that this is very subjective question but... I do it in the following way:
Code Snippet
public Form1() { InitializeComponent(); } int someVariable = 0;
Code Snippet
Private Form1 form1;
public Form2(Form1 form1_) { Initialize
-
- how to add a user control to your windows form ?
by BitShift
- 4 Replies
- Last post
by Fábio
- I have a windows form project. Ive added a user control to the project. How do I add the user control to my windows form
-
- Column Header in Data Grid
by Gyða
- 5 Replies
- Last post
by Gyea
- This problem sounds stupid... OK so i have a datagrid, and if I click that datagrid I get data from the grid and forward it, well don't mater. What matters is wen i click the header it gives me an error. Is there some kind of if header not click do this, maybe coulem.index Wen I hit the header I just want it to sort like a normal Windows application not give me an error message cause it can't pr
-
- Constant re-installing of ClickOnce app after reboot
by BobL
- 2 Replies
- Last post
by BobL
- Hi all,
We have deployed a ClickOnce application and it works for everyone (50 or more people) except for one person. She always has to re-install the application after she reboots her computer. Does anyone know why this would occur When she reboots her computer, our application tells her that it needs to re-install, so it goes out to our webserver, downloads the 8MB file again and re-ins
-
- VScrollbar becomes Corrupted while holding scroll button (.NET Bug?)
by xr280xr
- 5 Replies
- Last post
by xr280xr
- I've noticed a problem with the VScrollbar that must be a known issue, but is very difficult to describe so I can't find anything on it.
I have experienced the problem two seperate times. One when using an individual vscrollbar control, another when using a datagrid's built in vertical scroll bar. Both instances occur when holding down the arrow button of the vertical scrollbar.
Cas
-
- DataGridView RowValidating event - infinite loop
by razorkai
- 3 Replies
- Last post
by razorkai
- Hi all.
I am using a DataGridView bound to a BindingSource that has its DataSource property set to a DataTable within a DataSet in the project. Some of the columns within the DataTable do not alllow null. If the user is on a new row and they do not enter a value for one of these columns they will get a NoNullAllowedException when they try to leave the row and then the row dissappears. I am
-
- DataGridView - How to Ensure Cell that Fails Validation is Visible
by son of dad
- 4 Replies
- Last post
by son of dad
- Short Question:
When validation of a DataGridViewCell fails, how would one go about scrolling that cell into view if it is currently not visible
Long Question:
When the DataGridView displays a scrollbar the user is always allowed to scroll. This is fine, but the problem I need help with is when the user inputs a value into a cell that causes that cell to fail validation. If, for whate