all groups > dotnet windows forms > may 2005 > threads for may 22 - 28, 2005
Filter by week: 1 2 3 4 5
Best way to implement a C# Windows Forms app. as a Singleton?
Posted by None at 5/28/2005 9:54:32 PM
I only want one instance of my C# Windows Forms app ever to run at the same
time.
I'm familiar with the Singleton pattern of course. What's the best way to
achieve that pattern with a Windows Forms app?
... more >>
Newbie VB .NET: Determine length of string
Posted by Wishing I was skiing mom at 5/27/2005 2:26:04 PM
I have a field that contains a user logon. I want to populate a textbox on a
form with the username portion of the logon value. I need to determine the
length of the logon field in order to substring just the name portion of the
logon. I realize you can not define a string as a fixed length... more >>
Format and parse event handlers on a bound datatable
Posted by TomU at 5/27/2005 1:51:35 PM
How can I obtain the binding object for a column of a datatable bound to a
datagrid so I can set up format and parse event handlers? The bindings
collection of the currency manager (where it seems the bindings should be) is
empty as shown below.
DataTable dtTest; // populated datatable
... more >>
vb.net Textbox cursor
Posted by Chris at 5/27/2005 1:50:50 PM
Hello Everyone,
I have a vb.net app with about 300 textboxes for data entry. My users are
complaining because the blinking cursor is not big enough to give them visual
notification of which textbox they are on.
Is it possible to change the size of a textbox's blinking cursor to make it... more >>
Send email from window form
Posted by Joe at 5/27/2005 2:05:04 AM
Are there any sample code for sending email from a window form?
Thanks.... more >>
Execute Form event in separated thread
Posted by Salvador - From Spain at 5/27/2005 1:23:10 AM
It is possible to execute the Form_ControlAdded event, or any other event in
a separated thread?
I want that while controls are added to a form it shows a progress bar.... more >>
Overlaying text bitmap onto a background bitmap - rough edges on text
Posted by scolemann at 5/27/2005 1:12:14 AM
Hi all,
I have two bitmaps that I want to merge. One is a background image and
one is a transparent bitmap that has text drawn onto it. I have tried
to take the Graphics object from the background image and call
Graphics.DrawImage() and draw the text bitmap directly onto the
background. Th... more >>
Datagrid sort & row indexing
Posted by PieterG at 5/27/2005 1:10:02 AM
Hi,
I populate a Datagrid (WinForms) from a DataSet. Colum sorting is enabled
for the grid. When I sort the grid by column, the default view gets
refreshed, but the row index does not get updated. This of course creates a
problem when I select a datarow from the grid - I'm getting the dat... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I affect controls by string name?
Posted by Byron at 5/27/2005 12:26:03 AM
I've got several like-named controls that I want to affect as a group. For
instance, a combobox name cboHEAT is related to chkHEATLock and
chkHEATLockLoad. This same pattern is repeated for several sets of controls.
What I want to do is affect the sets of controls without having to hard-cod... more >>
losing dialog modality
Posted by djc at 5/27/2005 12:00:00 AM
Hi All,
I am developing a .Net plugin for MS Project 2002 & 2003 and have come
across what i believe to be quite an odd bug:
When I execute a Project dialog from within a modal .Net dialog, the .Net
dialog becomes modeless. Both 2002 and 2003 behave this way.
I suspect that this is more ... more >>
Child Windows
Posted by JezB at 5/27/2005 12:00:00 AM
I'm new to windows forms, and I'm a bit puzzled how to add child windows to
the main window and interact between them. In my case I just want to open up
an Options window which, depending on what the user does in there, affects
things on the main window.
There's no ChildWindow control as fa... more >>
Newbie : Building a form from an XML Schema definition
Posted by Aditya Sanghi at 5/27/2005 12:00:00 AM
Environment : VC.net , VB.net
Hi All,
I have an XSD ( XML schema definition ) for an xml. Is it possible to create
a default form
for an XSD.
My requirement from that form is that it should be able to generate an XML
conforming to the XSD.
It should do basic validations for missing mandat... more >>
Child Windows in Child Windows in Child Windows in C#
Posted by James CC at 5/27/2005 12:00:00 AM
Hi there,
This may be a stupid/newbie question, usual apologies if so, but I'm writing
in C#, and I've got an application with an MDI setup, and I want to add
windows in as child windows to the MDI's child windows.
For example, my documents contain many objects, and I want to add a dragabl... more >>
Using A Common Dialog to Edit a File Name Property
Posted by Mona Everett via .NET 247 at 5/26/2005 3:32:46 PM
I am trying to write a custom component which requires a filename. How do I mark my FileName property to tell the Visual Designer that I want an elipses button for the property that pops up and uses the OpenFile Dialog?
--------------------------------
From: Mona Everett
---------------------... more >>
MDI Childs
Posted by Hernando Del Toro at 5/26/2005 10:01:20 AM
Hi, Everybody.
I'm working on an MDI application with some heavy childs forms, In order to
free up some resources I would like to close them as soon as another child
window is shown above them. Any Idea about how can I do that?
Thanks in advance,
Nando
... more >>
opening form of a project in other project
Posted by Rafi Khan at 5/26/2005 3:53:17 AM
I have two projects in vb.net i want to access some forms of a project into
other . I need help immediately . what are the concepts to be used to invoke
a form of other project in present project ... more >>
Visual Inheritence - Menu order on derived forms?
Posted by jjkboswell NO[at]SPAM yahoo.com at 5/26/2005 1:51:35 AM
I have a form with a protected MainMenu, with protected MenuItems
(File, Options, Help).
I have a derived form which I wish to put a View MenuItem on. I use
the GUI editor to enter the menu item details, and then I drag the new
View MenuItem between File and Options. All fine.
I then buil... more >>
Textbox Enter-key Beep
Posted by Per Rollvang at 5/26/2005 12:00:00 AM
Hi All!
Maybe answered a zillion times before, but how do you cancel the ugly beep
when hitting enter in a textbox. : )
C#, framework 1.1...
TIA
Per Rollvang
... more >>
How to create a drop down table?
Posted by zhaounknown at 5/25/2005 11:51:02 PM
When the user click the combobox, a table with multiple fiedls will be
dropped down. The behavior of the drop down table should be same to the
normal combobox.
Any suggestions (using C#)? Looking for a clean way to get this other than
manually show/hide a panel/datagrid with events, or, thi... more >>
TextBox TextAlign=Left does not work on text larger then TextBox
Posted by twahl at 5/25/2005 7:07:33 PM
I have a TextBox with the TextAlign=Left and the Text property set to a
string larger then the view area of the TextBox. Why does the end of the
string display in the TextBox rather then the left portion? I would have
thought TextAlign=Left would have forced the left portion to be displayed.... more >>
Create PocketPC2003 platform ON .NET2003
Posted by jeff at 5/25/2005 1:05:42 PM
hi,guys.
I am a beginner for .net 2003.
I want to create a application run on PocketPC 2003 platform.
How to create PocketPC 2003 platform?
and can connect real device by ActiveSync 3.7
thanks
... more >>
Custom Control with sub-control.
Posted by MartAlex2 at 5/25/2005 8:25:01 AM
I created a new control that inherits the combobox where I added a
button next to the combobox.
My problem is that the button does not seems to be consider as part of
the new control. When I select the control in design time on the
combobox part of the control appears selected. What is even m... more >>
Tooltip Problem
Posted by RichS at 5/25/2005 3:37:36 AM
Hi,
[Using C# in .Net 1.1]
I've created a usercontrol ( from now on called boxUserControl ) that I am
using in my app. Because I dynamically create these boxUserControl instances
and attach them to my ContainerControl - I'm using my custom layoutmanager.
Rather than make the code that ... more >>
Cursor WaitCursor Bug
Posted by ng5000 NO[at]SPAM gmail.com at 5/25/2005 2:20:54 AM
Hi,
I have a parent form class from which various child form classes are
derived. Within the parent form class I have the method :-
protected void SetEnabled (bool enabled)
{
if (enabled == false)
{
// Set the cursor to an hour glass.
this.Cursor = Cursors.WaitCursor... more >>
public variable in c#
Posted by jeebu at 5/25/2005 12:00:00 AM
HI,
i wanna help in how to create a public variable which should be accessed
from any any in a project
for c# windows application
thanx in advance
jeebu
... more >>
Determine when Window is "Uncovered"
Posted by scolemann at 5/24/2005 11:37:09 PM
Hi all,
I have a situation where I need to know when a Form has become visible
on the screen due to another window being minimized.
Example.
Window A is the window(.NET Form) I want to check for visibility on.
Window B is another arbitrary window.
Window A is open and visible.
Window ... more >>
load xml file in treeview control
Posted by ShaileshShinde at 5/24/2005 11:06:02 PM
Hi,
I have to load xml file in treeview control also after selecting any node
xml data of that node display in RichtextBox.
Can you please help me with this.
Thanks,
Shailesh... more >>
How to draw custom button in title bar
Posted by john conwell at 5/24/2005 3:47:04 PM
I've been trying to draw a custom button in the title bar. I've tried
ControlPaint.DrawCaptionButton as well as other things, but havent found a
good way to put a button on the title bar of a form and somehow handle its
click events... more >>
Supressing certain keys
Posted by Jeremy Chapman at 5/24/2005 12:02:55 PM
We have built an application that sends keystrokes to a 3rd party
application for automation purposes. What I need to do is in some way
ensure that only keystrokes sent by my application are received by the 3rd
party app.
I would like to write an application that monitors keypress events and
... more >>
Assigning shortcuts to menus
Posted by john conwell at 5/24/2005 11:39:02 AM
I added a shortcut to a menu using this code:
this.mnu1.Shortcut = System.Windows.Forms.Shortcut.Ctrl1;
My assumption is that the shortcut would be Ctrl+1, but when the app runs
its Ctrl+D+1.
where did the D come from? I just want Ctrl+1
... more >>
Online article to UI standards
Posted by john conwell at 5/24/2005 9:25:26 AM
Can anyone point me to an article that gives standard Windows UI layout
guidelines? stuff like button height, tab height, standard hot keys. basic
Windows look and feel that professional software should go by.
Thanks... more >>
adding empty row to combobox
Posted by Craig at 5/24/2005 9:18:45 AM
i know this might sound a bit simple but how do you add an empty row into a
combo box after populating with a dataset?
i was trying this but it keeps erroring
cbo_Category.Items.Clear()
cbo_Category.DataSource = dst_DataSet.Tables(0)
... more >>
column based selection in a multi-line text box?
Posted by madfiddler at 5/24/2005 6:00:16 AM
Does anyone know how I could perform a column based selection from a
multi-line text box or if there is another control that would allow me to do
this?
The behaviour that I am looking for is the same as holding the ALT key and
making a selection in MS Word.
cheers
mf... more >>
How to identify the locale language.(very very urgent, pls help me
Posted by Muthu. at 5/24/2005 4:52:08 AM
I set the default locale as Japanese in my system through control panel->
Regional Settings -> Click Set Default -> Select Japaneselanguage from the
drop down list. Then i have restarted my system. Now my default language
setting is Japanese. But how can i identify this Japanese through C# cod... more >>
Deleting multiple selected rows from a DataGrid throws a System.NullReferenceException. BUG?
Posted by Geert-Jan at 5/24/2005 4:22:38 AM
Hello,
I use a simple function in a derived datagrid class, to delete selected
rows from the datagrid. It works fine when I select the rows by
dragging the mouse from the first row to the last row. However,
selecting rows by dragging in the opposite way throws a
System.NullReferenceException ... more >>
WinXP theme on Win98-ME-2K
Posted by Christos Vasilakis at 5/24/2005 3:31:01 AM
Hello there,
We are developing a .net application using the c# programming language. Our
clients run either WinXP or previous MS operating systems (Win98-2k-ME). The
problem is that we need to provide a consistent user interface experience for
all our customers. We believe(as many do) that th... more >>
Test Debug / Release Mode
Posted by JezB at 5/24/2005 12:00:00 AM
Any way I can programatically test whether my (c#) code is running in Debug
or Release mode ? I want to load a smaller dataset when running in debug,
for testing purposes.
... more >>
Forms/Threading problem
Posted by Oenone at 5/24/2005 12:00:00 AM
Wonder if someone can help me out here as I'm not making any progress with
this...
I have an application which uses an MDI window. When it is running, the
application creates an instance of a COM object, passes into it an instance
of a local .NET class from my application, and then calls a ... more >>
PropertyGrid exception handling
Posted by Bob at 5/23/2005 9:19:21 PM
I am using the PropertyGrid control to view/edit properties of some COM
objects. The problem I am having is that a few of the COM objects have a
property or two which return E_NOTIMPL raising a NotImplementedException in
the managed world. When an object does this, the PropertyGrid doesn't
... more >>
How to implement licensing to commercial software
Posted by Jason J. Hedges at 5/23/2005 5:10:02 PM
I am developing a commercial software app in VB.Net for a client and I need
to implement licensing for the software similar to the licensing in Microsoft
Office (requires product key,etc.). Are there some classes in the .Net
framework that provide licensing functionality and product key creati... more >>
Positioning Cursor in Datagrid cell
Posted by Techstudent at 5/23/2005 3:55:12 PM
How to position cursor to the first character in the Datagrid cell (left part
of the cell rather than the right). default seems to be end of the value in
cell(right of the cell) when we use "F2" for editing.
Any suggestions are greatly appreciated.
Thanks... more >>
Datagrid TableStyle
Posted by Tim at 5/23/2005 11:38:45 AM
I have two grids, two datatables, and a relation object set up in a
VB.net windows form. It is in a master detail set up so that the first
grid is mapped to the first table via the datasource property. The
second grid is mapped to the first table also but the datamemeber is
set to the relation o... more >>
Referencing a control using code
Posted by Rod at 5/23/2005 12:00:00 AM
I have 24 text boxes on a form called C1, C2, C3 ........
I want to do the following
For J As Integer = 1 To 24
Me.Controls("C" + J.ToString).Text = J.ToString
Next
This code is wrong of course as Controls is expecting an integer to use as
an index.
How do I make it work?
... more >>
[C# .NET] blocking refreshing application's view
Posted by Robot at 5/23/2005 12:00:00 AM
Hello,
I am developing an application written in C# .NET.
E.g., there is a button when which I click on, "visible"
of a few labels, textboxes are set to false, and "visible"
of a few others are set to true. During this short
operation, I can see components which are dissapearing
and appearin... more >>
OLE in VB.Net Forms
Posted by mf_sina at 5/23/2005 12:00:00 AM
Hi
how can i have a copy of microsoft word on a vb.Net form.
i have done it very simply in VB6 using OLE: microsoft word document.
but in VB.Net i don't know the way.
any helps are welcomed.
... more >>
Browse Directory on Button click and reflect in text box the path
Posted by madhavi at 5/23/2005 12:00:00 AM
Hi
I just wanted to Know when i click the button i need to browse the directory
and the selected file path should be reflected back in the text box
may i please know :-(
--
Thanks and Regards
Madhavi
... more >>
Bug in MeasureString ?
Posted by Peter at 5/22/2005 10:24:01 AM
Hi,
I noticed a little problem with the Graphics.MeasureString-Function:
I have a Textline, which contains Tabs. I use a StringFormat-Object, which
represents the TabStops. The DrawString-Method calculates the Tabs in the
text correctly. But MeasureString ignores them. I'm using the function... more >>
win32 help! (or COM?)
Posted by Lloyd Dupont at 5/22/2005 12:00:00 AM
I have downloaded this superb HTML Edit Control based on MSHTML
http://www.windowsforms.net/ControlGallery/ControlDetail.aspx?Control=290&tabindex=0
And it's also really big.....
Anyway, I would like to extend it with a very simple feature: typing
completion.
I need to know when the user typ... more >>
|