microsoft.public.dotnet.framework.windowsforms Archive - August 2002
Post a message to this list
Messages
Page: 12345
Databound controls (Push/Pull mechanism) (2 replies)
microsoft.public.dotnet.framework.windowsforms
I am right in saying that the push/pull data mechanism of data bound controls is invoked when control is validated and loses focus? So how do I get the underlying data to update without having to lose focus from the control? For example, say I have just changed a combo box value and hit 'ctrl s' to save. How do I get the underlying combo value to update (without losing focus from the combo) before...
Problem with exceptions (5 replies)
microsoft.public.dotnet.framework.windowsforms
I have problem with exceptions. If I run application from VisualStudio (debug and release) then it is functional and exception is handled. But when I run application differently (ex. command line,...), then exception isn't handled. // Example 1 ( exeption handle: not functional ) void fnc1() { try { Form1 frm new Form1(); frm.ShowDialog( this ) } catch( DBConcurrencyException ex ) { MessageBox.Sho...
replace field in DataGrid (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I have a question about datagrid. Thank you in advance. After we setup a datasource for a datagrid, is there any way to replace the column value with data out of datasource?
supressing windows default popup menu (2 replies)
microsoft.public.dotnet.framework.windowsforms
in the datagrid, when i select a cell and then right click, i got a popup menu which is windows default one and which i don't want to show. I wanna show my own popup/context menu instead. I have a contextmenu already, which is bound to the contextmenu property of the datagrid. This menu is being shown when i right click on the control (any cell other than the selected one). can anyone help me how ...
HOWTO run a Windows Message Pump in a C# Windows Control (3 replies)
microsoft.public.dotnet.framework.windowsforms
Please help, How can one run a message pump in a C# Windows Control? Where a message pump is like the VC message pump along these lines: while (PeekMessage(&MSG Temp, NULL, NULL, NULL, PM REMOVE)) { ::TranslateMessage(&MSG Temp); ::DispatchMessage(&MSG Temp); }
Textbox Input Validation (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a form with a few textboxes and want to ensure that the user inputs a value of type double. I can't seem to work this out. Basically, I want to take the user input, check it's a valid number and cast it to a double and then use it for some calculation stuff. Does anyone have any ideas. Thanks for any help with this, Steve
How can add vs.net style to my app (4 replies)
microsoft.public.dotnet.framework.windowsforms
As everybody else I would like my app to have a cool look and have the same look as vs.net style. I have seen few people who have already done it in c# But I find it difficult to follow. THE BIG QUESTION IS HAS ANYBODY DONE THE UTILITY LIBRARY IN VB.NET??? Thanks Gabriel vbnetuk@yahoo.co.uk *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded ...
login and password (2 replies)
microsoft.public.dotnet.framework.windowsforms
how can i query my access table for a login and password and find out if a record was found. hq
CreateGraphics in load event doesn't work (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello! I'm trying to use creategraphics within a load event of a form. Unfortunately this is not working. Now I have placed creategraphics in a function that is called by clicking a button, which does work, but I want the graphics to be shown directly when I opening the form. What is the best way to solve this issue? Regards Magnus
Tracking required fields (3 replies)
microsoft.public.dotnet.framework.windowsforms
From a design point of view what is the best way to keep track of required fields on a form? I realize it is one step to make sure the contents are acceptable, and another to make sure all core fields have passed and are available. I'm interested in understanding the design pattern and actually implementation to do this. I am using C# if that is relevant. Regards, Dubi
Only getting first letter when reading data of SQL Server (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hello, This is a weird problem. Am attempting to extract information of a database and display it on a ASPX web page. The information extracts ok but it seems that not the whole word is displayed. For example, when user logs in, the main page should say, "Greetings Joe Bloggs", instead it says "Greetings J B". When in the database, the column for first name is in full "Joe" and column for second n...
Upload file from dotnet windows app? (3 replies)
microsoft.public.dotnet.framework.windowsforms
Is there a way to upload a file to the server using HTTP where the client program is a windows app and not the web browser? Thanks.
Merging owner-drawn menus? (3 replies)
microsoft.public.dotnet.framework.windowsforms
Can anyone suggest the best way to solve the problem of getting a drop down context menu for a toolbar that contains owner drawn items to also come under the 'Tools' menu of my main menu? Thanks, Kollen
Managed C++ with MFC (2 replies)
microsoft.public.dotnet.framework.windowsforms
I am getting the following error "placement arguments not allowed while creating instances of managed classes" when I call a C# class from a managed extension (MFC/C code a simple MFC dialog box app with /CLR option) All I am doing is WindowsApplication4::TicketForm *x new WindowsApplication4::TicketForm(); According to the documentation this is how it should be called. I have included the require...
ComboBox Show distinct? (2 replies)
microsoft.public.dotnet.framework.windowsforms
How can I get a combo Box to show only distinct values? my combobox is bound to a table and in the display member there may be the same value repeated, I want to only show it once, how can I do that? I appreciate any assistance. Delali
Disable DataGridTextBoxColumn? (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have a DataGridTextBoxColumn for one of the columns in my DataGrid. I am trying to make it disable so users cannot click in it, I can make it read only but then users can still click in the text box. Does anybody know how I can do that or change the appearance of the textbox to look like it is disabled. Thanks in advance. Ricky
Problem with DataGrid new line (3 replies)
microsoft.public.dotnet.framework.windowsforms
The "new line" of the datagrid seems to be a complicated matter (from what I can see also from other posts on that subject) ... My problem is: When typing into the new row, this row has RowState "Detached". As soon as I want to make some error checking on the entries in a new row the user typed so far, I have to change that state to "Added" by doing something like: DataTable.Rows.Add(row), where "...
TreeView CheckBoxes (3 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I've created a TreeView that has check boxes for filtering. When a parent node is checked, all of its children should become checked and when it is unchecked its children should be unchecked. This works fine; I'm using the AfterCheck event. The problem is that if a child becomes unchecked then its parent should also become unchecked (but not its sibling nodes). Right now, this is creating a lo...
Getting the version of an assembly (3 replies)
microsoft.public.dotnet.framework.windowsforms
I'm trying to programmatically determine the version of a component assembly. I've tried using the following code: Dim ai As System.Reflection.Assembly System.Reflection.Assembly.LoadFrom("comp1.dll") Dim o As Object, strVersion As String "" For Each o In ai.GetCustomAttributes(False) If TypeOf o Is System.Reflection.AssemblyVersionAttribute Then strVersion CType(o, System.Reflection.AssemblyVersi...
custom defined cursors for the various DragDropEffects? (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, Question: is there a possibility to use custom defined cursors for the various DragDropEffects? And is it possible to switch between the custom defined cursors and the predefined ones according to special circumstances when drag dropping? Problem: We are implementing an engineering tool with a lot of subsystems. Only 1 subsystem cannot use the predefined cursors for DragDropEffects.Copy and Dr...
Late Binding to a UserControl (2 replies)
microsoft.public.dotnet.framework.windowsforms
I am new to .Net and have a question on creating a UserControl at runtime. Here is the scenario: I have created a UserControl which has a few controls. It does not Implement an interface or anything (which may be wrong). It looks something like this: Public Class TomTestControl2 Inherits System.Windows.Forms.UserControl ... Init Stuff ... End Class I create another project that contains a form. I ...
parsing CSV to listbox and back to textbox (3 replies)
microsoft.public.dotnet.framework.windowsforms
I have a string of an indeterminate number of comma delimited text values. I want to be able to synchronize that string with a multicolumn listbox. I think the easiest approach might be to use DataFormat.CommaSeparatedValue and the DataObject class. Is this the best approach, and does someone have example code moving between the three storage types? As more background this is for a user data entry...
A simple question: DataGrid or Repeater ? (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have to produce tables with alternatively a line with 3 columns and a line with 1 column, like : header col1 | header col2 | header col3 data col1 | data col2 | data col3 data4data4data4data4data4data4data4 Is it possible with a DataGrid ? I was interested by its possibility to sort the array according to the 3 columns and the pagination customization. Otherwise I'll do everything with a repeate...
How do I create interface like Money (2 replies)
microsoft.public.dotnet.framework.windowsforms
In VB6 we had a difficult time of creating a Windows app in which you could embed web content. I was wondering if there is an easy way to create that in .Net. For instance. If I have an app that has say a TreeView or DataGrid or somesuch control on the left of the app then a splitter bar and then I would want like a web page on the right. Like if I clicked on an item on the left it would go and ge...
Icons and Bitmap resources, How do you refer to them? (6 replies)
microsoft.public.dotnet.framework.windowsforms
I know that you can refer to VBNet forms by creating a reference to the forms object: System.Windows.Forms.MyForm How do you refer to an imbedded Icon or Bitmap in your project? I want to create an object reference to an Icon or Bitmap. It's got to be really easy and I've got to be really thick. Any help would be appreciated. 'Not Me.Icon but a reference to an Icon or Bitmap that's been added to m...
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