| Databinding with CheckedListBox? (2 replies, VIP) |
| microsoft.public.dotnet.framework.windowsforms |
| Does anybody have an example of databinding with a checked listbox? Not sure how to do this. |
|
| Inherited Controls (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi Can you set/change the default values of properties in an inherited control. Say for example I wanted to create a customer Menu control could I set the OwnerDraw property and then overload the Draw function to draw it the way that I want?? Thanks MacKenzie |
|
| Checking if Drive Exists.... (2 replies, VIP) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi... Know this is simple, but can someone tell me the namespace and class for seeing if a specific drive letter is present on the machine (I don't need a list of drives, just to check if the drive is there). Thanks in advance all... Doug Oliver |
|
| Controls disappearing in VS.NET (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I just started working with Visual Studio.NET for Windows development. (I've been using VS.NET for many months now in Web development, with no problems.) I'm having a problem where the controls I place on a form in the Design view keep disappearing. The supporting code in the form's codebehind is still there, and I can see and select the invisible control the Properties droplist. So the control is... |
|
| @dll.struct and GetLParam() (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi I'm responding to a Windows Message sent to my Winforms app from a C dll. I need to convert the LParam to an object and want to use the GetLParam() method. However, according to the documentation, I need to use the '@dll.struct' directive. Anyone got an example of using this method, or can they explain what the @dll.struct is? Many thanks Jon |
|
| How can I save the state of of a Windows forms control? (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I'd like to know if it is possible to serialize a NET control. Any help, hints pointers, etc would be very much apreciated. THNKS... |
|
| How can i block opening a form that is already open (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| In VB6 writing: formname.show if the form is already open it get focus, but with .net this is not possible with the new code a new form is opened every time Thanks, and sorry for my english |
|
| autoincrement in DataSet is not working! (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| How can you solve the problem of autoincrement? If you make dataform and delete some first records in database table increment will not work anymore. Since than you can not add any records any more to your database. |
|
| ImageEditor : UITypeEditor problem (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, In my usercontrol I have a Image defined. In the property window at design time I get the image editor without doing anything. However, it is just a little different compared to the image editor used by the base properties like BackgroundImage. If you have assigned a bitmap to the property but want to remove it, you get a RESET menucommand if you go over to the BackgroundImage property. How... |
|
| Forms Control Collection (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Is there an easy way to programmicly going through each control of a form and run through what they are? Like if i have a form, i want to get a list of every control that is on the form. I know there is a ControlCollections as part of the Form but i'm not having much luck using it and i can't find any good documentation on it. |
|
| Interesting -- Data grid control behaviour (2 replies, VIP) |
| microsoft.public.dotnet.framework.windowsforms |
| Do this, u will end on the floor Drag n drop a datagrid control on a form. Set its ReadOnly property to False as u r only displaying some data. Change ur mind and decide to let the user modify the data. Set the ReadOnly property back to True. Boom... Did u also get the error "Value null was found where an instance ....."? What gives??? I cudn't change readonly to true at run time also, same error.... |
|
| differents colors in TextBox (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Who to use differents colors in one Text Box ? Perhaps it is not possible, Thanks |
|
| Data binding to a DataReader (2 replies, VIP) |
| microsoft.public.dotnet.framework.windowsforms |
| Am I right in saying that you cannot bind Windows Forms controls to a DataReader? The docs say that you can bind to any data source that supports the IList interface and DataReader does not implement that interface. Other than that I can find no information suggesting that you can bind to a DataReader so I'm assuming you cannot. If it can be done, could someone please give a few lines of sample co... |
|
| How do I change the text of the Button after pressing it? (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi: how do I change the Text on the Button after pressing it? Say, change from "Start" to "Stop", and vice versa? Also, can 1 Button call 2 functions alternatively (i.e. start a thread when "Start" is pressed, then the Button will change to "Stop", and it will stop the thread when pressed). Thanks very much in advance, Patrick. |
|
| All Controls on Form Disappeared When Deleting One Control (5 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I just ran into an instance where all my controls on my form disappeared when I deleted a single control. I checked the source code within the VS.NET generated region and all the code for the controls is there however they don't appear at run time or design time any more. Has anyone found a way to get them back? Thanks! |
|
| How to position MDI child forms within an MDI Parent? (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I was able to create a few MDI child forms within their parent. Like standard MDI application, those children are shown in a cascading style. I need to manually position them so that all child forms can be seen in initial startup. I tried to mess with the Location property, but that doesn't seem to have an effect on the child position. |
|
| Login/main window setup (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have an application with a "classic" setup, like the one used in AOL Instant Messenger, or, I believe, MS Money, in Jabber clients, and I bet a bunch of other places. In words, here's what I want it to work like: When the application starts, you're presented with a login form When you've signed in, the login window is replaced with what, to the user at least, appears to be the main window of the... |
|
| Anyone is successful when property type is a class? (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Anyone is successful in using class type which supply subproperties in control? I try the Microsoft sample in MSDN with a slight change from a web control to window control, when property type is a class, it is always hidden and we cannot access the subproperty. [Browsable(true)] does not help. Here is the screen shot when drag the control to the one winform designer:( See attached gif file.) Noti... |
|
| Just curious: why are byval arguments able to return results to the caller? (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I'm really surprised. Take a look at this Form Closing code. The second argument "e" is ByVal. Yet when I set e.Cancel True it works as expected. I would have expected the argument to have to be ByRef so the caller would see my changes. Any insights? Tom. Private Sub frmMyForm Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing If MsgBox("Really... |
|
| howto load an embedded resource (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I can't figure out how to load an embedded bitmap. I have no problem loading it from a seperate file, like this: bm new Bitmap( "assembly.bmp" ); But I don't want to have to redistribute my images as seperate files. I've included the bitmap in my project, and set its build action to 'embedded resource'. I've tried various code, such as: Type bmt Type.GetType("System.Resources.ResourceReader"); Bit... |
|
| Active formats in Textbox control (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Is there anyway I can have an 'active' format of the contents of a Textbox control. As an example, I'd like to set the textBox.Text property to "12.3456789" and when the control doesn't have the focus it displays "12.34", when the control gets the focus I'd like it to display "12.34567" and when I read the textBox.Text property it should return the original "12.3456789". I've seen some posts refer... |
|
| How do I force the program to exit? (Resent ....) (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi: I have a WindowsForm program that won't exit with Application.Exit() for some reason? How can I force it to exit? Should I call kill? Someone from this group told me to call Close instead. But I tried to lookup Close from the .Net class library, it was removed for some reason..... What else can I do? Thanks very much in advance, Patrick. |
|
| Combobox & Dataview (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Is possible to assign a dataview to a combobox? I try : combobox.DataSource dataviewname combobox.DisplayMember dataviewname.Item(1).ToString but this retur a list of "datarow" anyone know the right syntax Thanks |
|
| How to extend TextBox Control with a Label ? (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi : I want to extend a control from TextBox directly.Something that is like TLabelEdit in Delphi6.It seems just only add a Label control to TextBox .My code is like public MyTextBox() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitForm call Label ll new Label() ; ll.Text "mylabel"; ll.Location new Point(10,10); C... |
|
| Problem enumerating the commands in a enhanced metafile (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| All, Forgive me for the cross post but it looks like most Metafile questions are being asked in the winforms newsgroup. I am having problems enumerating the graphics commands in a metafile using DotNet and GDI . I am trying to use the EnumerateMetafile method of the Graphics object, but get the following error when the EnumerateMetafile method is called: "An unhandled exception of type 'System.Arg... |
|