Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms > august 2006 > threads for august 1 - 7, 2006

Filter by week: 1 2 3 4 5

SQL IN problem
Posted by venkat at 8/7/2006 9:49:52 PM
Can anybody help me i written one stored procedure which its working integer values if i go to strig its not working (Multiple select) i read some articles i dont understand i will put my code here just check it. Here Problem is @OPN_GROUP its actually as a string value i should passing her...more >>


Disable Resizable Form
Posted by Janiv Ratson at 8/7/2006 4:10:47 PM
Hi, Using C# and Windows Forms, how do I disable the window resizable option? I want my form to be fixed size only. Thanks, Janiv Ratson. ...more >>

Panel doesn't show scroll bars
Posted by spikedpunchvictim NO[at]SPAM gmail.com at 8/7/2006 2:22:32 PM
Perhaps one of you geniouses can help. I have a panel whose AutoSize = true. This Panel is originally empty when the program starts, and it is programtically populated with my own User Control. The User Control is inherited from a Panel itself. I programatically add each of these User Cotnro...more >>

DirectoryEntry.CopyTo Not Implemented!
Posted by Davie at 8/7/2006 1:37:47 PM
..NET 2.0 I was hoping the CopyTo method would be just what I needed to create a new user in the same container and with the same properties as an existing one. Rather than have to create the user and configure all the properties manually. Something like the code below. However, when I try t...more >>

InitializeComponent() No Longer Being called
Posted by Paul at 8/7/2006 12:16:21 PM
Hi, I've just run into a problem where my windows form displays correctly in the VS IDE designer (#2.0), but has started appearing as a blank (default) form at run time (it used to work). Using break points I've noticed that InitializeComponent() does not appear to be called for this form,...more >>

How to test if a control is visible on screen
Posted by Reiner Obrecht at 8/7/2006 9:47:01 AM
Hallo experts How can I test if a control is currently visible on screen and not hidden by other windows? ...more >>

System.drawing bug?
Posted by Stanley Omega at 8/7/2006 12:00:00 AM
Hello, I have found that should i set the icon property of a form, it will often only show up as the default icon. If i then restore down the form, the icon shows properly. If i then maixmise the form the form icon shows but is very large possibly 64*64 (its only a 16*16 on the file system)...more >>

Dialog Bars? how do you call these?
Posted by Ron M. Newman at 8/6/2006 1:00:30 AM
I remember an old technique from my old MFC days to have a dialog that occupies a part of the windows desktop and actually resizes its available size, thus always being on top, kind of docking to the top of the screen (or any other side). Does anyone remember what these types of windows are...more >>



Forms application
Posted by N3twr3ck at 8/5/2006 10:21:01 PM
Hello. I am developing my first Forms application in C#. When i execute this app, a cmd window shows in the background. How can i get rid of this cmd window ? I just want my Forms window to show. Anyone ? Thanks. k4iz3r ...more >>

Come with us
Posted by omar.abid2006 NO[at]SPAM gmail.com at 8/4/2006 11:44:08 PM
hi, This is the real workgroup of Visual Basic 2005 express goto : http://groups.google.com/group/VB2005 thank you ...more >>

Form.showicon doesn't work?
Posted by Stanley Omega at 8/4/2006 11:08:05 PM
Hello I have a mdi application. I set the form.showicon=false of a child form. So now the child form shows a default icon???? This makes no sense. Why have the property at all? If me.icon is null its just the same thing. How do I prevent any icon from being shown on the child form. me.ic...more >>

Change of visibility of a ToolStripStatusLabel is slow. Why?
Posted by nvx at 8/4/2006 6:44:46 PM
Hi, I have a StatusLabel with an image and a ProgressBar on a StatusStrip, both are not visible by default. When user decides to save the edited data to a file, both StatusLabel and ProgressBar are set visible and ProgressBar indicates the save progress. The problem is that if the save operation ...more >>

Autocomplet combobox ending at forward slash
Posted by schleichv NO[at]SPAM ameritech.net at 8/4/2006 4:21:09 PM
Hello, I am trying to use the autocomplete feature of the dotnet 2.0 combobox. Everything works fine except when the strnig contains a forward slash (/). For those items, the autocomplete text ends at the forward slash. i.e. If the Items contained the string "My event 5/6/2006" The autoco...more >>

DataGridViewCheckBoxColumn
Posted by jsh02_nova NO[at]SPAM hotmail.com at 8/4/2006 10:41:01 AM
What would prevent a DataGridViewCheckBoxColumn control in a DataGridView from being bound to its data in the Datasource table?...more >>

How to fix the width of a tree dropdown ?
Posted by Dominique at 8/4/2006 10:21:02 AM
Hello, Im want to fix the width of a dashboard. I have a field which has a field (in this dashboard on the left part of my screen) which could be long and make the right side of the screen out the display. I wanted the size of the fiedl QueuedCountLabel fixed and the text inside wrapped u...more >>

Typed DataSet
Posted by Techno_Dex at 8/4/2006 9:11:01 AM
I have a typed dataset which was created from views in our database using the IDE automation. I would rather not modify them because if they ever need to be regenerated I don't want to have to continually add in extra fields that don't exist in the database. My problem/question is this, in a...more >>

bizarre winforms behavior
Posted by campk at 8/4/2006 7:52:37 AM
hoping anyone might be able to shed some light on the situation i am seeing... i am working on developing a custom data ETL app for in-house use. The three relevant objects in question are... my form the database mapping object the table mapping object The form invokes the DbMapping.Run...more >>

Column formatting of SQL result export to CSV
Posted by Peter at 8/4/2006 2:16:33 AM
Dear all, I would try to export SQL result from Access DB by following SQL statement: Select row1 into [Text;DATABASE=c:/tmp].[result.csv] from table1 row1 is in datatype currency. I have tried this statement and the result shows "HK$ XX.00" for the column row1. However I don't want to...more >>

Simulating events. Calling Click on a button
Posted by Pieter Breed at 8/4/2006 1:43:06 AM
Hi, I would like to simulate UI events on UI controls. For example, I would like to make a button control think its been Clicked (from an outside class), so it would go through the click animation, raise the associated events etc. Is there a way to do this? Regards, Pieter ...more >>

Flickering of gradient rectangle
Posted by LightWarrior at 8/4/2006 12:52:34 AM
Hello, I created an panel in my form. In the Paint event of this panel I created a gradient rectangle... Like you can see in this code: Rectangle rect = new Rectangle(0, 0, this.panel1.Width, this.panel1.Height); LinearGradientBrush m_brush = new LinearGradientBrush(rect, SystemColors.H...more >>

Windows cannot verify certificate of ClickOnce application
Posted by Zoodor at 8/4/2006 12:48:02 AM
I have a ClickOnce application code-signed with a code signing certificate from Thawte. When a user (running IE on WinXP SP2) tries to run the app, if they click the Publisher hyperlink a warning is shown in the "Certificate" dialog with the warning "Windows does not have enough information to...more >>

PreFilterMessage + WM_ACTIVATE ??
Posted by Rickard at 8/4/2006 12:00:00 AM
Does IMessageFilter.PreFilterMessage not work with all messages? Consider the VB app at the bottom of this posting. The WM_ACTIVATE in the overrided WndProc gets printed, but not the one in the message filter (the message filter works for other messages like WM_MOUSEDOWN). Is this behavior by ...more >>

Binding NumericUpDown.Value to an app setting only works in one direction
Posted by Jesse McGrew at 8/3/2006 11:56:04 PM
Using Visual Studio 2005, I've placed a few NumericUpDown controls on a form and bound their Value properties to user-scope application settings. The bindings seem to work fine at design time, but only work in one direction at runtime. When I open the form, the control values are correctly set, ...more >>

How to Https locally?
Posted by Stanley Omega at 8/3/2006 11:06:06 PM
Hello, I use the web browser control to display some html reports in a winforms application. The problem is this kills security because anyone can read the reports just by accessing the file system. The reports are generated dynamically at runtime in memory and then saved to the file syste...more >>

TextBox and OnPaint
Posted by Ferdinand Zaubzer at 8/3/2006 6:24:47 PM
Hello, I am trying to customize the appearance of a textbox but with overriding the onPaint Method it doesn't work! I have read that drawing of a textbox is done by Windows and not by .Net and therfore the WndProc method has to be overridden. Now my question is where to start getting informat...more >>

Validating Problem
Posted by mehdi at 8/3/2006 3:05:16 PM
Hi folks, Consider a UserControl (containg a textbox, and 2 buttons) that's being placed in a windows form. The AutoValidate property is set to Disable, for the form. However, the same property is set to EnablePreventFocusChange for the contained UserControl. The problem is that when I try to...more >>

datagrid
Posted by John at 8/3/2006 2:11:49 PM
I am having a hard time getting the value of the primary key of the selected row in a datagrid. The datagrid is just displaying a dataset. Can someone ease my pain? ...more >>

Name property in MainMenu/MenuItem
Posted by Trevor Benedict R at 8/3/2006 12:14:54 PM
What I am trying to do is to store some sort of a Reference to the Menu in the database and then based on permission I can either Enable or disable them. I am specifically looking for the Name/ID/Tag property, but unforturnately could not find one for the Mainmenu or Menuitem. Any ideas. ...more >>

How to create a graphics object of an entire Form?
Posted by Dave Leach at 8/3/2006 11:16:06 AM
I am working on a Windows Forms application that uses the MDI style. I am using C# in VS.NET 2003 . I want to provide a feature that allows the user to capture the entire form's image and save it to a file. The problem I have run into is that I am currently only capturing the client area ...more >>

How can I change alpha value of fore color of button control.
Posted by Melisa at 8/3/2006 5:53:18 AM
Hi, 1. I want to change the alpha value of fore color of a button at run time to fade it. 2. I have a button and some text is assigned to it`s Text property. 3. I wantto fade the color of this text OnMouseMove event. 4. When i change the alpha value of backcolor of the button, it shows same...more >>

user control elements completely displaced when control is used on windows form
Posted by Fabian at 8/3/2006 12:00:00 AM
Hi, I have the following problem: I have designed a custom UserControl. I arranged all my buttons, text boxes labels and so on in a nice way. Now when I use the control on a windows form everything is rescaled and displaced. The control is bigger as it was in the forms designer and it ju...more >>

ClientSize property sets form visible = true
Posted by schoenfeld1 NO[at]SPAM gmail.com at 8/2/2006 9:47:09 PM
It seems that when setting the form ClientSize property, the Form.Visible property is set to True. Is there a way to create a form such that it does not show at all until it is explicitly told to show? In my app, the form shows up on the InitializeComponent() method! ...more >>

New Items don't show up
Posted by John at 8/2/2006 3:35:30 PM
I have one form calls another form, which adds data to a couple tables, then the first form doesn't see the new datd till i clos and reopen the program. The data is in the table though from looking through the SQL Server Manager. Why wont it show up? ...more >>

Getting the count of Currently viewable rows in a datagrid
Posted by ntregillus NO[at]SPAM gmail.com at 8/2/2006 10:46:47 AM
Hi, Ok so i have a datagrid which displays a bunch of rows. I want to get the visible count of rows the datagrid control is currently displaying. i was using the VisibleRowCount property, but it will only return the correct value if the number of rows does not exceed the datagrids size (by ...more >>

Raised Panel?
Posted by Ron M. Newman at 8/2/2006 9:27:16 AM
Hi, I have a splitter pane that has a tree control. I'd like to add a raised text caption panel above that tree control. Any recommendations for a control? for some reason I couldn't make the panel "raised". Thanks a bunch Ron ...more >>

search by date
Posted by John at 8/2/2006 7:33:45 AM
If I want to add code to allow the user to select an item that was added to the database in the last x number of days, I assume I need to add a dateadded field to the database, or is it already there somewhere? ...more >>

Customize common file open/save dialogs
Posted by Mini-Tools Timm at 8/2/2006 6:45:02 AM
Does anyone know how to customize the standard file open/save dialogs using C# or VB.NET? Specifically, I would like to: 1. Add a couple buttons in the toolbar along the top, next to the "Create New Folder" and "View" buttons. 2. Hook into dialog events such as when the dialog is closed and...more >>

Urgent - Help!
Posted by Nicol at 8/2/2006 4:49:02 AM
Hi, I have created a console application in c#.net. I also scheduled it in the windows scheduler. In the scheduled task i will specify the command line arguments. When I say "Run", I am getting the command window, which I dont want. I need to run my application in silent mode. My sys...more >>

Custom controls
Posted by amity at 8/2/2006 4:02:34 AM
Hello friends, actually i want to create a custom control in c#.net.But the problem is that -----when i create custom controls and use them in the windows form then they craete errors in the designer of the form..............for example if i create a control which shows three images and we ca...more >>

DataGridView with DataGridViewComboBoxColumn
Posted by ewald.de.vries NO[at]SPAM gmail.com at 8/2/2006 12:06:39 AM
Hello, Using the .NET 2.0 datagridview with databound combobox columns, I can display the human-readable value for foreign keys in my dataset. However, each of the comboboxes has a dropdown button that cannot be used, since the gridview is set to be read-only. I would like to remove the dro...more >>

Label not showing on form
Posted by Martin Eyles at 8/2/2006 12:00:00 AM
I am making a simple program that displays a warning message for 10 seconds when a user attempts to run an unauthorised program. (I may also log to a file, but I want the simple warning message working first). I have made a windows form Form1 which contains a label Label1. In my code I make...more >>

Massive bug in WinForms 2
Posted by schoenfeld1 NO[at]SPAM gmail.com at 8/1/2006 11:28:01 PM
Why does WinForms in .NET 2 paint container controls more times than necessary? Steps to reproduce: 1. Make a UserControl called 'Widget'. Put some buttons / labels / etc inside this control. 2. Make a UserControl called 'Container'. Place a bunch of 'Widget' controls inside here. ...more >>

WinForms is rendering extremely slow
Posted by schoenfeld1 NO[at]SPAM gmail.com at 8/1/2006 9:30:29 PM
My .NET 2 winforms application is extremely slow at rendering itself. I loaded my application and then got a small notepad window and dragged it infront of my main application window for a while - making circles. I could get a 'drag effect' over the entire application window because my app did...more >>

Modal forms, Owner property and minimization behaviour
Posted by dancardoso NO[at]SPAM gmail.com at 8/1/2006 8:32:12 PM
Hi everybody, I believe something weird is happening with my windows forms desktop application. I have a main form (Form1, shown using Application.Run) and this main form opens a modal form (Form2), using ShowDialog(this) so that the owner of Form2 is Form1. Form2 does the same thing with For...more >>

WinForms Layout Managers are extremely slow
Posted by schoenfeld1 NO[at]SPAM gmail.com at 8/1/2006 7:48:32 PM
I've developed an application in .net 2, and to support multi-size client windows, I used the winforms layout managers (flowlayout/tablelayout). They are extremely slow - it looks like the paint method is called multiple times on these containers, and i can see scroll bars appear in the middle o...more >>

Exception reporting library
Posted by Steve Austin at 8/1/2006 4:04:00 PM
ok... My memory's a little hazy on this, but I recall reading an article (I think it may have been on windowsforms.net) regarding a library which enabled the programmer to report errors (for instance, exceptions) in a consistent manner via a nicely configurable interface; I think a SQL DLL may...more >>

New Solution not Visible
Posted by Eric at 8/1/2006 2:42:33 PM
Using VS.Net 2005 Pro. When I create a new project no solution is visible. If I create a blank Solution and try to add a new project to it, the solution disappears and only the project is visible. How do get the solution visible so I can add new projects to it? Thanks ...more >>

eventHandler not working
Posted by lauralucas NO[at]SPAM gmail.com at 8/1/2006 10:25:51 AM
Hello I have this code in a newly created web form: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here ArrayList values = new ArrayList(); values.Add("hi"); values.Add("hello"); this.cbBranches.DataSource = values; this.cbBranches.Da...more >>

How to create bitmap of a window form.
Posted by Melisa at 8/1/2006 8:01:11 AM
Hi, How can i create bitmap of a window form with all its child controls without showing this form? 1. I am trying to create bitmap image of a window form. 2. I am creating a new instance of Form at runtime. 3. But it is not visibile on UI. 4. Then adding several controls like Button, RadioB...more >>

TextRenderer.DrawText vs Graphics.DrawString
Posted by plumeprog at 8/1/2006 7:35:02 AM
Hello all, I have a WYSIWYG editor which uses Graphics.DrawString to render it's text. The Font size is scaled based on the sized of the form and everything looks the same, no matter how you resize the form (i.e consitent word wrapping). I tried switching to TextRenderer.DrawText and ca...more >>

ToolStrips in a ToolStripContainer
Posted by banduraj at 8/1/2006 6:10:00 AM
I have a ToolStripContainer on my form and have several tool strips in the container. Among these I have a MenuStrip and StatusStrip. my MenuStrip I want to always be at the top of the top container and the StatusStrip I always want to be at the bottom of the bottom container. Now I can disallow...more >>

Annoying Dynamically loaded DLL form
Posted by Ayo Ogundahunsi at 8/1/2006 1:38:37 AM
I am dynamically loading a DLL and opening a form/user control using Reflection. This loads a form (3rd Party) which is created right outside my Application. Is there any way i can force/restrict this new form to stay within the bounds of my MDI so that it doesnt look like a seperate applica...more >>

PictureBox problem
Posted by sajin at 8/1/2006 1:02:49 AM
Hi all. I have one picture box of size(135,100). I had kept PictureBox.SizeMode = CenterImage. If Image size is greater then PictureBox size then i set PictureBox.SizeMode = Zoom If Image size is less then PictureBox size then I set PictureBox.SizeMode = CenterZoom. But if image is Square the...more >>

Printing
Posted by Mugombi at 8/1/2006 12:21:45 AM
Hi all, I wanted to find out what the best way to print user customized pages from a windows forms application would be. The user would customize :- 1. what size of print they want in centimetres. if less than normal A4 size it should then customize how many prints on one page 2. what ...more >>


DevelopmentNow Blog