all groups > dotnet windows forms > april 2004 > threads for thursday april 8
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Get the "User pressed close button (in controlbox)" event...
Posted by Klaus at 4/8/2004 7:34:25 PM
...a seemingly easy task, but I just can't figure it out
want to retrieve the event "close ("X") button clicked" in a modal form. Can't use the "Closing" event as I have to distinguish between a closing of the form after a selection made and an abortion (which happens when the user just closes the... more >>
Creating Objects from Types at Runtime
Posted by Mark Olbert at 4/8/2004 7:11:15 PM
I think I'm running into a problem caused by the strong-typing system in dotnet.
I have a custom control which can be configured, at design time, to work with one of a number of
DataTables in a DataSet. The custom control has a method which puts up a modal form at runtime; the
type of modal for... more >>
Printing on Generic Text Only Printer
Posted by ScanPlus at 4/8/2004 6:16:02 PM
Hi:
I'm trying to develop a module for printing a receipt on an ordinary text printer, using the "Generic/Text Only" driver provided by the operating system
I was wondering whether anybody in this forum has done that
Regards
... more >>
Missing UserControl in My User Controls
Posted by Mark Olbert at 4/8/2004 5:20:06 PM
Could someone please explain to me why the f**k my Windows.Forms application only allows >>one<<
user control to appear in the My User Controls section of the toolbar???
I ran into this problem when I created my second user control. It compiled fine, no messages, but it
refused to show up in th... more >>
DataBinding ComboBox
Posted by Aaron Prohaska at 4/8/2004 4:34:13 PM
I am having a problem databinding a combobox that I have on a form. I
have setup the databinding in the following way.
this.flexibilityList.Items.AddRange(new object[] {"0", "1", "2", "3",
"4", "5", "6", "7", "8", "9", "10"});
I then add the binding like this.
this.measurement = new Bus... more >>
Preventing TabPage selection ... how?
Posted by JezB at 4/8/2004 4:32:38 PM
I want to prevent a TabPage being visited under certain conditions. To do
this I put the validation in the TabControl's SelectedIndexChanged event and
if I want to disable access I programmatically set the index back to what it
was.
This does work but at runtime the user momentarily sees the t... more >>
Capture Designer Code
Posted by localhost at 4/8/2004 4:11:53 PM
How can I capture all of the layout code from the designer into the
"code behind" of a WinForm?
For example, if I drag a textbox on a form and then modify the
CharacterCasing property in the designer, it appears in the code. But
virtually no other properties show unless I change them as w... more >>
TabPage.Enabled ??
Posted by JezB at 4/8/2004 3:04:39 PM
How can I disable a specific TabPage in a TabControl ? It does not have an
Enabled property. I dont want to remove it from the control's page
collection I just want it to appear disabled.
NB. Interestingly though, I can set the Enabled property of a TabPage
without it complaining at compile or... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
About RichTextBox
Posted by Sateesh at 4/8/2004 12:41:07 PM
Hi,
I want to enable the right click option in my RichTextBox which allows the
user to copy, pase, cut operations etc. In a normal textbox, when I right
click, I see this menu. Could anybody tell me how to enable the same for a
RichTextBox?
Thanks in advance,
Sateesh.
... more >>
Managing Multiple Windows Forms
Posted by Paul at 4/8/2004 11:36:02 AM
I have a VB.NET application that has a number of windows forms. What I would like to do is be able to move from form to form and close the calling form once the new form is open. For example - Form1 has a comand button that creates Form2 as a new Form2 and shows Form2. Once Form2 has been displayed... more >>
Windows Forms Collection
Posted by news.microsoft.com at 4/8/2004 11:20:56 AM
hi,
how can we get the forms collection object in a class as we did in VB 6. as
if we need to do same type of work in different forms we just make a common
function and pass form object into it and do our work as below:
we have a function lets supppose :
Function ChangeBackgroundColor(ByVal... more >>
Checkbox binding Parse event
Posted by JezB at 4/8/2004 9:22:14 AM
I'm binding a checkbox to a Y/N value from the database, and providing
format/parse events to handle the conversion between Y/N and true/false
states :-
Binding b = new Binding("Checked", myView, "YNField");
b.Format += new ConvertEventHandler(boolFormat);
b.Parse += new ... more >>
Application Updater Component
Posted by miked at 4/8/2004 3:21:03 AM
Hi,
I've got a problem with the DotNet Application Updater Component - (http://widowsforms.net/articles/appupdater.aspx). When I include an app config file in my app to be updated the upload from the web server fails.
The application recognises there is new version and an "UpdateVersion.xml" fil... more >>
PageSetupDialog Inches/Millimeters
Posted by Guido Kraus at 4/8/2004 1:46:07 AM
The PageSetupDialog seems to have a bug with the PageSettings.Margins property
Whenever I call the PageSetupDialog, hit OK and then show the PageSetupDialog again, it changes the margins (10 mm becomes 3.9 mm). Obviously this has something to do with millimeters to inches conversion (10 / 2.54 = 3.... more >>
Can we use Unix as the server?
Posted by jonathan at 4/8/2004 1:01:04 AM
Hi there,
We are to make the decision on whether to choose .Net or J2EE. One of the questions my clients asked is that, can we use the Unix as application server, and run Unix based database like Oracle on server side
Thanks in advance
Jonatha
... more >>
Unload Assemlies
Posted by Monica at 4/8/2004 12:01:03 AM
I was wondering if there is any way to unload an assembie after you loaded it? (using vb.net)... more >>
|