microsoft.public.dotnet.framework.windowsforms Archive - February 2003
Post a message to this list
Messages
Page: 123
System.NullReferenceException on DataGrid.RecalculateFonts() (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I am having a problem with a .NET windows forms application that is running in a windows 98 environment. Of the 18 machines running the software 6 are giving me the error below when they load up the primary application form (which has a datagrid). There is a log on form prior to the primary application form and that displays OK. The error is: System.NullReferenceException: ... at System.Window...
Bitmap Memory leak (5 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, If you load a small bitmap (a 50kb file), it takes more or less 5Mb in memory (see the process in task manager). Bitmap bitmap (Bitmap)Bitmap.FromFile("mybmp.bmp"); If you Collect the memory after, when the bitmap is not referenced anymore, the memory is released. My application is a MDI application. I can load a document with a lot of pages (100 or more mdi childs). Theses page are graphical ...
how to obtain differnece between to dates in days (2 replies)
microsoft.public.dotnet.framework.windowsforms
how to obtain differnece between to dates in days on a form are two DateTimePicker, how to obtain diferense of the dates in days
What I am doing wrong... (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi All, I need to run SqlDataAdapter update method to update the database. But, I want only to do insert only with this code (assume user only doing insert) With insertCmd ..CommandText "insert into customers(companyname) values(@companyname);select * from customers where customerid @@identity" ..CommandType CommandType.Text ..Parameters.Clear() ..Parameters.Add("@companyname", SqlDbType.VarChar, ...
Open form from a different project (2) (3 replies)
microsoft.public.dotnet.framework.windowsforms
Follow up problem to the thread 'Open form from a different project' a few threads down. I'm starting a windows forms app by using something like this... Sub Main() Dim SplashForm As New Splash() SplashForm.Show() SplashForm.Update() Application.Run(New Traffic()) End Sub ....where splashform is just a splash screen with a timed close and traffic is my main form. That opens fine. From that form I'...
keychar of delete key (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi everbody, I have a small problem... My form has a KeyPress function... To check which key has been pressed, I use the KeyChar property of the KeyPressEventsArgs like this... if (e.KeyChar (char)8) and now, I want to check if it is the delete key which has been pressed... but I can t find the ASCII code for it... I only found 127, but that doesn t work! Does anyone know what to do? Thanks a lot ...
DataGrid: Suppress relationship handling? (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have two DataGrids on the same page with a parent/child relationship between the two. It seems that the typical way of handling that is by creating a relationship in the underlying DataSet. However, I do NOT want the parent DataGrid to display the sign on it's rows. I want the user to only use the second DataGrid for the child records. Is there a way to cause the parent DataGrid to not provide a...
In-place Editing of Property Values (2 replies)
microsoft.public.dotnet.framework.windowsforms
A current project requires in place editing of property values similar to the way the Properties window works in the development environment. Is there an existing control that provides this functionality? If not, what would be the best approach to doing a custom control? Thanks in advance.
Please HELP - Window Form (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi...I've designed a form (winform) using VB.net standard. I used the data form wizard to construct it. It has a parent table record and 2 child table datagrids connected via oledb. I'll get into the construction when all of a sudden I get this message "DataBinding could not find a row in the list that is suitable for all bindings." What the hell is this? I can't find it anywhere in the knowledgeb...
Threads and TreeViews Problem (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, I am getting the following exception: System.InvalidOperationException additional info: "The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it." The problem is that my Main function has [STAThread]. But the TreeView control is not in the form that contains Main. My primary form creat...
Execute Function (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have my function name stored in a sting. How can I go about executing the function? Dim one as sting one "FillOptions()" where do I go from here?
Disable edit on Combox item (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I treat a Combox as a pull down list, and don't want users to change item name. Is there a simple way not to allow users to edit item on Combox? property in design or code? I use VB.NET in application windows form. Is there a pull down list control on toolbox in windows form? Thanks. Shaw
How can I gray an image? (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a special button class and I am doing my own custom drawing. How do I gray the image when the button is disabled?
Creating an outline around a control -> please help (2 replies)
microsoft.public.dotnet.framework.windowsforms
How can I create an outline arond a control when it is clicked? I want to display some kind of border or someting
How to spawn an encrypted file (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I am working on an executable that will reside on a cd rom which will spawn quicktime videos also located on the CD. The videos are encrypted with DES so the users cannot open them otherwise. I have the utility in a webform to encrypt the files, but now i'm confused (i'm new at I/O) as to how to spawn the video. When a user selects the link, I need to run the decryption routine and then launch...
I cant break a new line. (2 replies)
microsoft.public.dotnet.framework.windowsforms
hiye, i cant seem to break a new line. all i keep getting is two small boxes next to each new item. please help thanks in advance. '** Begin ** For intI 0 To aryList.Length 1 strBuilder.Append(aryList.GetValue(intI)) strBuilder.Append(vbCrlf) Next intI lstItem.Items.Add(strBuilder.ToString) '** End ** Yours Truly Simon
returns and displays a set of data (2 replies)
microsoft.public.dotnet.framework.windowsforms
Is there a web client/web service sample in which web service returns a set of data (DataSet object OR other object) to web client and the client's web form displays this set of data? THANK YOU!
howto handle the dropdown of a comboBox control (2 replies)
microsoft.public.dotnet.framework.windowsforms
Is there any way to handle the dropdown event of a comboBox AND prevent the comboBox from performing the dropdown? I wish I could just replace the DropDown event, ie: combo.DropDown new EventHandler( CBDropDown); instead of adding it combo.DropDown new EventHandler( CBDropDown); thank you for your help Johnp
How to catch selection of a TabPage (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello I've a tabcontrol with some tabpages. In one page I've a DataGrid and I want to fill it only when user click on that tabpage. How can I catch this event? Thank you for your support.
Drawing on Windows Forms (2 replies)
microsoft.public.dotnet.framework.windowsforms
I am trying to draw a simple box around a Windows Form with no luck. Here's my paint event handler: Private Sub SplashForm Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint ' draw line around form Const offset As Integer 2 Dim graphic As System.Drawing.Graphics e.Graphics Dim myPen As New System.Drawing.Pen(Color.Black, 2) Dim topLeft As New Point(M...
browse for folder (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm looking for a .NET class that displays a dialog to "browse for a folder" (just like the old Win32 SHBrowseForFolder did...) Thanks in advance, Thomas
Tooltips in C# (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I am getting a problem in showing tooltips on a Windows form in C#. I followed the code from MSDN given below. // Create the ToolTip and associate with the Form container. ToolTip toolTip1 new ToolTip(this.components); // Set up the delays for the ToolTip. toolTip1.AutoPopDelay 5000; toolTip1.InitialDelay 1000; toolTip1.ReshowDelay 500; // Force the ToolTip text to be displayed whether or not ...
How can I create translucent menu items? (3 replies)
microsoft.public.dotnet.framework.windowsforms
I remember seeing some suggestions a while back on how to create translucent context menus using C and VB 6, but I can't find a good example of how to go about doing this in C# using the Windows Forms/.NET Framework. I already am using a derived class based on MenuItem and attaching them to regular ContextMenu instances. I believe the translucency has to be done in some kind of owner draw function...
Printing the contents of my control (2 replies)
microsoft.public.dotnet.framework.windowsforms
I'm trying to print the contents of a control, using the code below, however some strange things are happening when I do. Basically I'm creating an offscreen bitmap and blitting the contents to this image ready to print. What is happening though is any controls/dialogs in front are being included with the image (as if it's getting the whole screen graphics handle) leading me to believe this has so...
computer is connected to a network or not (2 replies)
microsoft.public.dotnet.framework.windowsforms
Pls let me know that in win forms,how can we check whether this computer is connected to a network or not. I have used the following WMI code. The property NetConnectionStatus gives the State of the network adapter's connection to the network. But this property has been added for Windows XP, and doesn't work for all windows environments. Pls let me know is there any other way to know that this com...
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