microsoft.public.dotnet.framework.windowsforms Archive - June 2002
Post a message to this list
Messages
Page: 123456789101112
ComboBox default value? (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello I have a combo box in a form, I populate it with data from a DataTable within a Dataset by settings its DataSource , DisplayMember , ValueMember, problem is , when I fill the datatable with data, the combo selects first value by default, i don't want this behavior, I want it to be blank then the user selects any value from dropdown list, I tried this approach in form Load event but failed: s...
BackgroundImage for MDI Container ClientRectangle (2 replies)
microsoft.public.dotnet.framework.windowsforms
VB.NET IDE v 7.0.9466 ..NET Framework v 1.0.3075 OK, so it's easy to display a BackgroundImage in the ClientRectangle of of a form used as an MDI Container. The only problem is that is is tiled. A previous post by another subscriber presented a method for stretching the image, but what i would like to do is center the image. The way to do this doesn't seem to be jumping up and biting my nose. Also...
Groupbox / Radiobutton (2 replies)
microsoft.public.dotnet.framework.windowsforms
Can you use the groupbox control to access it child components such as radio buttons. Example gb.Items[0].Checked true or something similar?
Datasets in component (7 replies)
microsoft.public.dotnet.framework.windowsforms
I am trying to create a dataset in a component as opposed to directly on a form, so I can reuse it. I define the adapters, schema... but everytime I create the dataset, it doesn''t add a compilable entry, (the datasource cannot be found) and then it disappears from the component screen. Any ideas. Thanks in advance. This message is posted by http://asp.forumszone.com
Custom Control Sizing Handles (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have created a user control that I want to make a fixed size. I have used SetStyle(FixedHeight and FixedWidth) to set the stylebit to true (i.e., apply the style). However, in the designer ALL resize handles are available (although when you change the size, the actual size of the usercontrol items does NOT change). My question is: What do I do to make the designer display the re zise handles as ...
Setting properties of parent at usercontrol creation? (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have created a usercontrol that consists of several buttons and other items. Now when I place this control onto a form I want it to automatically set the AcceptButton and CancelButton properties of the Form to the controls that I have setup for this purpose. Now when I put the code into the constructor I use code like this. CType(me.parent,Form).AcceptButton Me.btnOk When I do this I get an erro...
DataGrid and DateTime field (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm binding a datagrid to a dataset, which contains a datetime field. Unfortunately, the datagrid is showing only the date portion. I've confirmed that the time data is in the field. It's just not showing up. Any idea? Thanks, Paul
Is there a way to set row(!) header text in datagrid (7 replies)
microsoft.public.dotnet.framework.windowsforms
Hi Folks! I have a simple question, but I didn't found anything in the C# documentation about it. Is there a way to set the row(!) header text in the datagrid WinForms control? Thanks for any help, cShark
HOWTO: Raise mouse events programmatically (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I want to raise mouse event, "mouse down" programmatically how should I do it? I checked the msdn help it talks about using delegates. Do I need to use delegates? Is there any simple way like we have in windows SDK, mouse evevnt or sendmessage APIs? If I have to use delegates then can please any one give me an example? Thanking in advance. Abhijit
Number of Rows/Columns in a grid (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, How can i get the number of rows and columns and also the column headers text in a grid programatically. Any method/property availabe? Thanks
Find an object on a Form? (4 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, How could i find that a specific text box control(named myTextBox1) is in a form(named myForm1)?
Control Design Questions (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have build a user control that contains a property called StatusMessage. Any time this message is changed an event is fired and consumed by the client control. My client control displays this message in a status bar. My question is: what is the best way to clear the message from the status bar?? My thinking is to clear the status bar once a key is pressed or mouse is clicked anywhere on my contr...
Checking for a Key with no Event (2 replies)
microsoft.public.dotnet.framework.windowsforms
When I load my application, I would like to test if the user is holding the Control Key and one of several standard keys. However, I don't want to register a mouse down or mouse up event, since the user should be holding the key before the program loads. Is there a way to check the state of various keyboard keys at any time? Thanks, Bryan Somerville
Leave event not firing (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi all, I am trying to build a custom control that needs to have a control on the form disappear when focus is lost. This includes all cases (i.e. clicking on the control form, the parent form, another application altogether). The leave events does not fire in all cases. Any ideas? Thanks!
PreProcessMessage (3 replies)
microsoft.public.dotnet.framework.windowsforms
I am trying to use PreProcessMessage on a form. It does not seem to get called. I do the following: public override bool PreProcessMessage(ref Message msg) { Console.WriteLine("msg: " msg.Msg.ToString()); return base.PreProcessMessage(ref msg); } Nothing is displayed on the console. Does anyone know how to use PreProcessMessage? Thanks, Joe
cannot make system.windows.forms reference work (3 replies)
microsoft.public.dotnet.framework.windowsforms
All while working on the database errors, oledbdataadapter crashes, I tried to work around my project references to see what happens. I deleted all project references, and now get this on the imports declaration: Imports System.Windows.Forms.Form ok, it should have an underline there, it is underlined and says when the mouse is over it: [Reference required to assembly 'System' containing the base ...
DataGridTextBoxColumn - Commit not getting called (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a datagrid bound to a datatable. One of the columns uses a DataGridTextBoxColumn style. I delete all the rows in the dataset, then programatically add rows to the data table, which are then displayed by the grid (using the defaultview). The very first time I click on a cell to edit it, it goes into edit mode and I can enter text. Here's the problem: If I click on a cell, then enter a single...
Pulling Main Menu items from child windows... with a twist (4 replies)
microsoft.public.dotnet.framework.windowsforms
I'm building an application that pulls it's child windows from other assemblies installed on the system. Each child window will contain its own menu items that will merge with the main menu on the "shell" (I've got the merging figured out). What I can't figure out is why, when you click the merged menu items, it will not execute the code brought with the menu item. Do you have to direct the "shell...
Why cannot close form after add/clear usercontrol inside the form....? (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi all gurus, I've heard from other newsgroup occassionally and experienced the following problem. When I have a Windows Form which contains a panel control... Then, I have a button the same form and when it's clicked, it will do the following ... void Button1 Click(object sender, EventArgs e) { if (this.m toggle true) { this.panelContent.Controls.Clear(); this.panelContent.Controls.Add(new UserCo...
When to use VS.NET or Code to configure the GUI (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I would like to know which of the following two methods is a better way of building a GUI, in terms of design ease, programming flexibility and best practices. Design the GUI entirely using Visual Studio .NET, populating list boxes and setting image lists etc via the property view. Or to just drop the component on a form and then via code (developer coded methods) set the properties. I underst...
Problem with Form (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi I am having the following problem, when I select a username and enter a password on the following page and then click login it works 100%, but when I fill in these details and press enter while I am in the textbox it doesn't work. Any ideas?? Here is the code: %@ Page Language "VB" Debug "true" % %@ Import Namespace "System.Data" % %@ Import Namespace "System.Web" % %@ Import Namespace "System....
ListBox FindString member doesn't work (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello Everyone I have a list box with items added dynamically at periodic intervals. Eventually the list will become huge and I want to provide search facilities. However FindString member of listbox returns ListBox.NoMatches all the time. Is there anything that has to be done to make this work. Thanks in advance Aravind
MDI Parent Background (2 replies)
microsoft.public.dotnet.framework.windowsforms
Can someone please explain how to change the background color or image of an MDI container? This seems so absurd that you can no longer simply set this via the exposed properties. An example is a bonus, and if it's in VB.NET you get a banana! ;) Also along somewhat similar lines, can someone point me in the direction for changing the look of the scrollbars in my app (e.g. make them blue or somethi...
Datagrid and "InsertAt" ..... (6 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm using a small test project with a simple DataTable object What I'm doing at the moment is: 1. Create a DataTable object name "Tb" 2. Populate it using Tb.Rows.InsertAt(Row, 0) ..... (...new rows at the top .....) 3. Bind the table with a DataGrid (the rows are displayed in the exact order ....) 4. Add other rows at the top of the table with Tb.Rows.InsertAt(Row, 0) ..... all the new rows a...
Form Inheritance (3 replies)
microsoft.public.dotnet.framework.windowsforms
I've created a class library project with a form. This form has very little code behind it (shown below). When I include a reference to this DLL in my project and actually inherit the form everything works fine. However in Visual Studio if I actually try to view the form I get an error saying something "object reference not set" or something like that. With the code below does anyone have any idea...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com