microsoft.public.dotnet.framework.windowsforms Archive - July 2002
Post a message to this list
Messages
Page: 12345678910
Ressource-Files for Windows Form (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi! We are currently planning the development of a new software package using ..NET and Windows Forms. The ability to localize windows forms by simply switching the language property is great. Visual Studio.NET automatically creates the required .resx Files. For a project with many forms it would be better to have all resources at single location in order to have less work during localization. How...
windows form wizard (4 replies)
microsoft.public.dotnet.framework.windowsforms
Is there a windows form wizard that will create all code and not use those design time controls. or is the a sample windows form i can modify for my database that has buttons for add, edit, delete, move first, last, next, and previous. thanks, hq
Strange error (2 replies)
microsoft.public.dotnet.framework.windowsforms
I made many additions and changes in my project yesterday and everything was fine. Today when I tried to run my project I got a message (see attached). I do not use SourceSafe or something else for version control. I just make a copy of entire folder every day and make changes in a new copy. So, after I got this error I tested my day before yesterday project. Yesterday's project however gives this...
abstract forms (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, i have an abstract form with some abstract methods. The programm works fine but the derived forms don't show in the designer. So, wenn i want to make some changes in the derived forms i have to recode the abstract methods to virtual with some (irrelevant) implementation. Then the derived forms can be seen in the visual designer. After that i make the changes and recode again back to the abs...
Datagrid row selection in c# (2 replies)
microsoft.public.dotnet.framework.windowsforms
Is there a way to always have a row selected in the datagrid, I've already have the code so that if a cell is clicked the whole row is selected. But when I pressed for example the Enter key the row is not selected anymore. Also is it possible to have the Tab key to give the focus to the next control, instead of the next cell in the grid. My grid is read only. Thanks in advance
Lookup combobox in a data grid (4 replies)
microsoft.public.dotnet.framework.windowsforms
One very common practice with a grid is to have 1 or more combobox lookup fields. In Microsoft Access, this is very simple. For example, Northwind's product table contains the supplierID as field. In Access, you would set the datasource property for the "lookup" field to "SELECT supplierID, name FROM supplier ORDER BY name"; bind the column to supplierID, set the column count to 2 with a display o...
Data Form Wizard question (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi! I have a form that I created with the Data Form Wizard. I have just added a few fields in my database. How do I add them to my form? I don't want to regenerate the form with the Wizard. Is there an easier way than editing the SelectCommand, Insert/Update/Delete command? There must be... but how? Thanks! Carl
Controls accessibility (3 replies)
microsoft.public.dotnet.framework.windowsforms
Unfortunately nobody answers my question on VB C# groups . I believe the problem is the same in both VB.Net and C#. I'm developing Form with Tab control, GroupControls on each Tab and many Labels and TextBoxes on Form directly, on Tabs directly and also in GroupBoxes. I'd like to change all controls size at run time depending on screen resolution. Controls sitting inside of any container such as T...
winform not show in Alt+Tab selection menu (4 replies)
microsoft.public.dotnet.framework.windowsforms
Is it possible to set the winform not to exist in the Alt Tab selection menu? What can i do on winform? Is it possible? Best Regards Ayrton Phoenix ^^^^^^^^^^^^ My Email: phoenix@flex logic.com potato@potatotomato.com ICQ UIN: 667462, 667480
Drawing a Grid on my form (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, I thought I'd ask this question here since I have an idea the best way of doing this would somehow be to invoke a designer to draw the grid. Any ideas? Tim
replaceable client window (3 replies)
microsoft.public.dotnet.framework.windowsforms
We want to write a Windows Forms app where the main program is just the title and menus. The client area will have different contents depending on some kind of decision at startup. The client area forms will be laid out independently and need to be resized at runtime to fit the client area. I tried laying out some controls on a Form and then changing it to be a Panel but then the designer doesn't ...
Converting from screen units to pixel units? (2 replies)
microsoft.public.dotnet.framework.windowsforms
Does anyone know how to convert from screen units to pixel units? I'm trying to get print preview to work for a case when I draw an image with pixel units. Normally I draw with the screen units (default) and use PrintPageEventArgs.MarginBounds but when I set Graphics.PageUnit to GraphicsUnit.Pixel, PrintPageEventArgs.MarginBounds still gives me measurements in screen units even though Graphics.Vis...
Hosting the Internet Control in a Winform (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi folks, what is the easiest way to have an internet control in a winform. Do I really have to reference the Webbrowser ActiveX Control. The interface then look quite ugly. Is there no native .Net way to do this? what is the easiest way to open an IE window using .Net code out of an client Winforms client application and navigate to a certain link? please help Rainer
MS people ? CheckDotNET.aspx ? (2 replies)
microsoft.public.dotnet.framework.windowsforms
http://www.asp.net/webmatrix/CheckDotNet.aspx Any chance you could post the code for the above page. That way I can check whether people had framework befire sending them to a web page with embedded UserControl, else suggest redirect to MS site. Thanx Steve.
Evil IntDestroyWindow(IntPtr hWnd) Exception (2 replies)
microsoft.public.dotnet.framework.windowsforms
Something evil and unexplained (at least by me) is still happening with the DestroyWindow API. According to a Google search, this same error was reported at http://www.dot-net-guru.com/247reference/msgs/11/55109.aspx but it does not look like any satisfactory explanation or work around was forthcoming then. So what is going on? Can anyone point me to a fix or workaround? As you can see from this code...
Validating Object Datatypes... (2 replies)
microsoft.public.dotnet.framework.windowsforms
I am in the process of creating a usercontrol that will only allow three states. True/False/Null. Now considering that people implement this in different ways, strings, bit, integers, etc. I have created three properties called TrueValue, FalseValue, and NullValue. Each of these properties are of type Object. I also have a property called SelectedValue which is also of type object. When I set the ...
Intercepting Escape Key KeyPress (2 replies)
microsoft.public.dotnet.framework.windowsforms
Is there any way to intercept the escape key being pressed in a form? The KeyPress event doesn't occur for the escape key. I need to be able to turn off validation from an escape key press. OnCancel does NOT get called until after validation is performed so I need to intercept the escape key press to turn off validation before it is performed.
Clipboard functions (2 replies)
microsoft.public.dotnet.framework.windowsforms
How do I get Cut/Copy/Paste operations to work on the currently selected text of a DataGrid? A related question, how do I get ahold of the actual control (e.g. TextBox, etc.) of the currently selected cell? If I could get that, then I could call the clipboard methods on the current control directly. Kevin
Opening Applications (3 replies)
microsoft.public.dotnet.framework.windowsforms
I would like to know how I can open up MS Outlook from a window application. I assume I have to create a reference to an object or create a reference to a COM object, but I don't know which one??
Cutting, copying and pasting only plain text from/to a richtextbox (4 replies)
microsoft.public.dotnet.framework.windowsforms
How can I do such operations? (C#) I think I've got to trap some windows messages but I don't know where to start. Thanks in advance, gigi lbelli (at) crema dot unimi dot it
Namespaces naming (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello I can write this code before a Class definition: Imports MB System.Windows.Forms.MessageBox Then its easy to type MB.Show("Hello"), instead of every time I have to type Messagebox.Show("Hello"), if I imported the namespace without naming it to MB then it will sometimes make conflicts if I called it from inside a form behind code because the form itself has a "show" method, so I have to give ...
Help Form Designer (IDesignerHost) almost working (3 replies)
microsoft.public.dotnet.framework.windowsforms
I have implemented a form designer. The designer mimics much of the form design behavior of Visual Studio.NET. I can drag and drop control, size controls, set properties, etc. The main interface required to be implemented was IDesignerHost, plus: * IComponentChangeService * IContainer * IDictionaryService * IMenuCommandService (Microsoft see bug note below) * INameCreationService * ISelectionServi...
OpenFileDialog Won't Access URLs (2 replies)
microsoft.public.dotnet.framework.windowsforms
I am porting a non .NET app to .NET, and have run into a problem with the OpenFileDialog. In the previous app, which uses the Win32API, I can use the OpenFileDialog to browse for files on either the local file system or on an FTP or Web server. But with the .NET OpenFileDialog, when I enter a URL path to a server or folder nothing happens (the browse list is not updated) and if I enter a full URL ...
OnPaint Override, ControlPaint.DrawBorder3D problem (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, The following class derived from TreeView uses ControlPaint in the overriden OnPaint event to draw an Etched 3D border around the TreeView. This works fine, but when the host form is resized with this control on it and set to FILL, the border is still showing overlayed on the treeview as the form size is increased. What's missing? public class MTreeView : TreeView { public MTreeView() { SetSty...
Threads And Threadpooling (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a windows application wrote in C# that times how long it takes a particular web site to respond. What I found when I finished the application was that the code I used to connect to a given site would block the main thread thus making the GUI unresponsive during this operation. My next approach was to use Thread Pooling. I solved the problem of the GUI being unresponsiveness during a connect...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification