all groups > dotnet windows forms > december 2006 > threads for december 15 - 21, 2006
Filter by week: 1 2 3 4 5
How Can I prevent form maximize when double- clicking title bar
Posted by cok119 at 12/21/2006 10:48:08 PM
Hi, all
How can I prevent form maximize when double- clicking title bar ?
thanks
... more >>
Request
Posted by Larry Smith at 12/21/2006 12:11:55 PM
Hi there,
Sorry if this is inappropriate for this NG but I'm looking for samples of
form-based ".resx" files that were created in a non-English version of
Visual Studio 2005 (or 2003 if necessary). If anyone has access to this
could I trouble you to send me a copy at lsmith999999@hotmail.co... more >>
detecting 12 or 24 hour support for DateTime
Posted by freddyboy at 12/21/2006 11:52:19 AM
Hi
I'm trying to detect if the current culture support 12h or 24h?
I need to change string values based on the hour formatting.
I tried to
DateTime dt = new DateTime(1,1,1,14,0,0,0);
string s = string.Format("{0}:00", dt.Hour.ToString()); //
I want s to output 14:00 when using 24h and... more >>
Office like closing childform warning message.
Posted by Jose Fernandez at 12/21/2006 9:47:18 AM
Hello
i am creating an application. It's an MDI parent with all the child.
I have been trying using the OnClosing event in every child. It works OK BUT
not the way it should be. The problem is that when i close one child form
individually, it works fine. when i close the mdi parent, it als... more >>
CSV File reading
Posted by Sara at 12/21/2006 5:37:11 AM
Hello There,
Can anybody help me in reading through large csv files size of about
200mb, with 200 columns.
I have tried with streamreader object parsing line by line but its bit
slow, does anybody have a better solution.
I dont want to landup using 3rd party component.
Regards,
Sarava... more >>
byte array in DataGridView
Posted by hajduk_25 NO[at]SPAM yahoo.de at 12/21/2006 2:36:56 AM
Hi,
my problem was already posted here in a similar manner, but I didn't
find a convincing solution for it yet. It's about the following: I use
in C# a DataGridView for displaying data, and one of the columns is a
byte array (it's a tinyblob in MySQL, I use it for simulating GUIDs in
MySQL, b... more >>
Embed formula editor in app?
Posted by Chris Bordeman at 12/20/2006 10:55:25 PM
How is this done? I want to define some variables, then let the user edit a
formula using the same UltraCalcManager formula editor that appears in
design time.
... more >>
dot NET Control Naming Conventions
Posted by Baskar at 12/20/2006 10:04:01 PM
Hi,
Looking for a coding standard/guidelines document which talks about Control
Naming Conventions.(ex: Label - lbl). If any, kindly provide me the link.
Regards,
Baskar C.G
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Why don't Menus, Status Bars, etc. Decrease Form Client Area?
Posted by Joseph Geretz at 12/20/2006 7:40:44 PM
I laid out all my form widgets based on this.ClientRectangle. I expected
that when adding a Menu this would decrement from the Form's client area,
since that's what I'm used to from my years of VB6 development. But this
didn't happen. So is the difference between the Form size and its
Client... more >>
How to Add Icon into EXE Assembly
Posted by sheeeng NO[at]SPAM gmail.com at 12/20/2006 6:09:42 PM
Hi all,
How to Add Icon into EXE Assembly without referencing an external *.ico
file?
Thanks in advance.
... more >>
Calling a method in one MDI child from another MDI child
Posted by Earl at 12/20/2006 2:32:45 PM
I need to call a method on an owned child form, and am wondering if the best
way of doing this is to capture the Closing event of the form that passes
control back to the form where I have the method. The structure is like so:
frmMain (MDI, runs on app start) calls
frmB (MDI child), whi... more >>
Supress Alternating Row Style for Specific Data Grid Column?
Posted by Daniel Manes at 12/20/2006 1:49:34 PM
My DataGridView is set up like this:
* Main row background color = white
* Alternating row background color = light gray
I also have a read-only (non-editable) column I want to show up as
solid dark gray (i.e., no alternating row colors), but it shows up as
alternating dark/light gray.
Is ... more >>
binding dataset to DataGridView
Posted by bill at 12/20/2006 12:28:12 PM
All,
I have the following:
BindingSource bs = new BindingSource();
private void initDataGridView(DataGridView dgv)
{
// dsForDGV is a datset object on the form
dsForDGV.Tables[0].Rows.Add("abc");
bs.DataSource = dsForDGV;
bs.DataMember = dsForD... more >>
Cycle through components on a form at run time
Posted by Andrew at 12/20/2006 12:23:11 PM
I have a need to cycle through the compoents on the form in my program at
run time to check for the existence of certain components.
I do *not* mean the Controls via the form.Controls array, I want the non
visual components.
I know the components are not technically part of the form but th... more >>
Form Naming Convention
Posted by Smithers at 12/20/2006 10:13:14 AM
Is it common practise to begin the name of form classes with "frm" (e.g.,
frmOneForm, frmAnotherForm).
Or is that generally considered an outdated convention?
If not "frm" what is a common or recommended practise?
Thanks.
... more >>
Preventing MDI to close if childforms exists
Posted by Jose Fernandez at 12/20/2006 10:02:23 AM
hello
i been trying to get this done but so far... unsuccesful. What can i do to
prevent the user close my Main MDI form by pressing Alt+F4, or clicking on
the Close button of the form?
thanks in advance
... more >>
Grid Header Colors <1153920970.598006.148040@m79g2000cwm.googlegroups.com>
Posted by Chris at 12/20/2006 8:16:03 AM
I am having the same issue. I set the Header colors in the style using the Properties tool, but the new colors do not show up at runtime.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com... more >>
Setting datasource of combobox changes the visual text field
Posted by progressdll at 12/20/2006 3:05:09 AM
I fill an arraylist from a function
ArrayList ar=Kleur.FindAll(Artikel.Nummer);
And set the data source
comboBoxExKleuren.DataSource=ar;
But this combobox changes the visual text field to the first field in
the array
Any solution to stop this?
... more >>
running application on vista
Posted by sonali_reddy123 NO[at]SPAM yahoo.com at 12/20/2006 3:03:55 AM
Hi all,
I have encountered a problem on running my vb.net application on vista.
The problem occcurs while writing the data to xml which I create in my
application path.
It fails to modify the xml and gives error as failed to write the data
to xml.
Same scenario works on other PC's who ... more >>
Displaying Extended Latin-1 characters in a multi-line Textbox
Posted by Paul Bradshaw at 12/19/2006 2:36:41 PM
I have a weird situation...
I have a unicode text file that contains Latin-1 characters. This code displays fine in unicode text editors, and when converted to ANSI by a tool like EditPad, it looks correct as well. But when I use the code below to load it into a Text box, all the extended char... more >>
Simple(ish) problem with a user control
Posted by James Crosswell at 12/19/2006 2:34:22 PM
I have a very simple user control. I want this control to act as a sort
of container so that I could drag/drop other components (from the
toolbox) onto this control and then dock them etc within this user
control. What do I need to do to achieve this?
I can mimic the behavior that I want at... more >>
InvokeRequired
Posted by Samuel White at 12/19/2006 11:55:47 AM
Hi there,
I need to iterate all "TreeView" nodes on a worker thread. When doing so,
I'll call "InvokeRequired" and route all method/property calls through
"Invoke()" as required. However, for each "TreeNode" object I encounter in
the tree, must I also route method/property calls on this obj... more >>
OpenFileDialog needs STAThread, but I need MTAThread
Posted by Shannon Cayze at 12/19/2006 10:59:29 AM
Hello all,
In my Windows Forms app I'm opening an OpenFileDialog. This throws the
following exception because I have the MTAThread attribute on the Main
method:
"Current thread must be set to single thread apartment (STA) mode
before OLE calls can be made. Ensure that your Main function has... more >>
Scrollbars on Custom Control
Posted by gotcode NO[at]SPAM gmail.com at 12/18/2006 6:03:20 PM
Hello,
I'm seeing some weird behavior and the MSDN documentation is lacking in
an example of actual usage.
What I've done is create a custom control that derives from either
ScrollableControl. I want a vertical ScrollBar that I can control the
visibility and parameters of. To accomplish this ... more >>
Wierd Quantum Error
Posted by andyblum NO[at]SPAM gmail.com at 12/18/2006 2:20:24 PM
Working with a thrid party control (Sybase DataWindow.Net). It is a
great component but I found something really wierd and need help. The
object has a field inside of it called PrimaryBuffer. This field is
null when it shouldn't be (I wont go into the details). However, when
I inspect the o... more >>
Make combobox uneditable....
Posted by RMZ at 12/18/2006 8:28:02 AM
Is there a property to set in order to make it so the user can not edit
the value of the currently selected item in a ComboBox, default is
editable.
... more >>
complex treeview best practices
Posted by Robert Ludig at 12/18/2006 5:52:42 AM
I have a TreeView that displays a very big amount of complex
hierarchical data where the elements in the tree represent all sorts of
different datatypes. These datatyps again store one or more typed lists
of other datatypes wich will appear as childitems in the treeview. E.g.
the datatype "Build... more >>
Transparent form that intercepts mouse events
Posted by pigeonrandle at 12/17/2006 8:03:37 AM
Hi,
I am trying (with little (no) success) to create a transparent form
that can capture mouse events. Put another way, i would like to show
the other windows that are behind my form (like setting the form
transparency key to the form backcolor), but i dont want the mouse
clicks to pass through... more >>
Configuring main menu strip at login
Posted by Earl at 12/16/2006 4:09:06 PM
I want to populate the main menu strip based upon the user's status (i.e,.
"user", "administrator", etc.) at time of login. The main form is running
with the login form as an owned form, so I'd like to trigger this menu
population at the time the user clicks OK on the login, closing the login ... more >>
Shrink Express DB After Large Data Import
Posted by coastaldata at 12/15/2006 8:08:00 PM
Hello, I have a small VB.Net application that I've built in VS2005 that
indexes and helps me to work with various collections of files on my network.
It works great at first, especially with small collections, but after a time,
or immediately after import of a large collection, the application... more >>
passing a parameter to a new form?
Posted by Peter Demeyer at 12/15/2006 6:25:31 AM
Hi,
I want to pass a variable to a new form like this:
MyForm form1= new MyForm(customerid);
and the form is defined like this:
public MyForm(int customerid)
but I want this variable to be available in the MyForm_Load class as
well because this variable must be a comboBox's SelectedValue. If I... more >>
How I get control over dialog that opened from my form?
Posted by mtczx232 NO[at]SPAM yahoo.com at 12/15/2006 5:39:16 AM
I have some .NET Control on my form. this Control open some dialog. How
i can get control on this dialog like send key to it? how I can get
Handle to this windows dialog?
... more >>
TextBox Readonly OnPaint wrong font! Please help!
Posted by H-S at 12/15/2006 1:19:15 AM
Here is a puzzler!
I have a read-only textBox which shows the results of a selection on
another form. When the selection changes from the saved data, I wish
to show it a different colour.
So I have set the user style: this.SetStyle(ControlStyles.UserPaint,
true);
and overridden the OnPa... more >>
NumericUpDown control with VisualStyles on Vista
Posted by Sunny S at 12/15/2006 12:03:01 AM
Hi,
The UpDown buttons of the NumericUpDown control don't look right on Vista
with VisualStyles enabled and with certain combinations of DPI and screen
resolution settings. Specifically, with 96 DPI and 1680x1050 resolution the
UpDown buttons are shifted and clipped. The same settings work ... more >>
|