all groups > dotnet windows forms controls > june 2004
Filter by week: 1 2 3 4 5
Populating a dotnet Winforms Treeview Control
Posted by Vaughn Haybittle at 6/30/2004 5:57:42 PM
Hi
I am trying to populate a Treeview Control dynamically from a Database.
Is the only way to build the tree to create a parent node and then create
all of it's children? This seems to be restrictive, and does not offer much
control.. Is there any way to build the tree in a manner similar t... more >>
Splitter Control
Posted by Justin Emlay at 6/30/2004 5:30:22 PM
Not sure how to ask this but here goes.
Is there a way to "show contents while dragging" while using the splitter
control?
... more >>
Form Keypreview is not working when the focus is on combobox
Posted by Ramana at 6/30/2004 2:45:43 PM
Hi,
We are handling some keys in the form to perform some form based actions.
for example Ctlr+s will save the data on the form which is equivalent to
pressing the save button. But when the focus is on a combobox, then we are
not able to capture the keys (i.e form's keypdown/up events are not be... more >>
DataGrid CheckBox column
Posted by Lynn C at 6/30/2004 1:11:01 PM
Hi,
I have a datagrid which automatically displays a column of data in the form of a checkbox for a "bit" datatype. However if I select the data from a view, instead of from a table, my checkbox column is replaced with a textbox column displaying either a "T" or a "F". How can I get the checkb... more >>
DateTimePicker ValueChanged
Posted by Bill at 6/29/2004 4:25:49 PM
How can I detect when the user has changed the value in the DateTimePicker
by typing one character in the 'day of month' field?
If the date is initially 7/2/2004 and I type a 3 in place of the 2, no event
fires.
When the value changes to a different date, I want to show OK/Cancel buttons
to... more >>
RichTextBox, OnPaint and DoubleBuffer
Posted by Paul at 6/29/2004 4:15:25 PM
Hi,
I'm trying to come up with a stratagy to minimize flicker in a RichTextBox.
Currently, I'm drawing red wavy underlines under words in the RichTextBox by
overriding WndProc and looking for the WM_PAINT message. I then raise the
OnPaint Event to draw the underlines. This techneque works but ... more >>
Autoscroll Datagrid?
Posted by Justin Emlay at 6/29/2004 1:33:58 PM
Since I cant find any scroll properties, does anyone have a function that
will make a datagrid act like it's autoscrolling? I want a user to always
be able to see the record they just added.
Any ideas would be great!
Thanks,
Justin
... more >>
How to get the cell text of DataGrid
Posted by pkujchliu NO[at]SPAM yahoo.com at 6/29/2004 1:01:18 PM
My DataGrid consists of several columns from different tables. After
user modifies it, I would like to output the text of modified
DataGrid. My question is: how can I get the text of individual cell?
Thanks in advance.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Creating an Image that behaves like a Text Character in RichTextBox
Posted by terrymcginty2000 NO[at]SPAM yahoo.com at 6/29/2004 8:44:24 AM
I'm using a RichtTextBox as an editor and would like to be able to
insert an image into a line of text and have that image behave exactly
as a single text character would behave (the image is a small 2-drawer
file cabinet with color). So when a user increases the size of a
block of text that in... more >>
VS.NET 2003 Designer/Usercontrol serious issue
Posted by James Westgate [Crainiate] at 6/28/2004 10:37:40 PM
We have a fairly complex commercial usercontrol and both ourselves and our
customers are experiencing the following serious problem.
Our control is added to the project and is placed on the form. A name is
generated for the control eg FlowChart1, based on the class name Flowchart.
Sometimes (a... more >>
DataGrid key press question
Posted by james_morris1232000 NO[at]SPAM yahoo.com.au at 6/28/2004 9:55:11 PM
1. up/down arrow keys to move up/down one recored at a time
2. Page Up/Down keys to move up/down one page at a time
3. CTRL+End and CTRL+Home keys to move to end and beginning(last
record and first record) of the datagrid respectively
code for page down:
public class Myform : System.Windo... more >>
DataGrid & Winform Issues
Posted by Vinil Menon at 6/28/2004 9:16:42 PM
I am developing an application in C# using WinForms. The application is
designed to have multiple grids as the dataset has a (Parent - Child-Grand
Child ) relationship. Following are the problems faced by me Problem 1:I've
just tried this with a couple of tables related to each other
(Parent-Chi... more >>
DataGrid.GetRowRect
Posted by Alfred Gary Myers Jr. at 6/28/2004 5:07:01 PM
Hi there!
I’ve been having some trouble using parent/child DataGrid binding.
Tracking down the issue I was able to identify the exact location of it and then create a simple test case to reproduce it:
Create a new Windows Forms project and modify the form’s code to the following:
using... more >>
Loading control in a tab control
Posted by Carlos Hernandez at 6/28/2004 1:05:00 PM
I have a control that uses a grid, the form has a tab control, with 4 tabs.
Only the control that is in the
first tab has loaded, the other control to be loaded I need to press each
tab. How can I do to load all controls
at the beginning??
Thanks.
... more >>
How to deny entering cell
Posted by Damir at 6/28/2004 11:42:48 AM
Hallo .NET friends
I have a small problem with the Data Grid. I want to select the whole
DataGrid row, without entering cell. at the moment I integrated following
line into CurrentCellChanged event:
dataGrid1.Select(dataGrid1.CurrentSell.RowNumber);
which selects me the current row, b... more >>
massage bar
Posted by ranip at 6/28/2004 7:53:27 AM
how can i display massages on the bottom bar ?
like system is ready etc ?
... more >>
TreeView control --- dies beyond 65535 [visible] elements
Posted by max reason at 6/27/2004 8:01:32 PM
Does the TreeView control have some kind of visible node limit that isn't obvious?
I don't see anything in the documentation (though maybe I missed it) about this limitation.
After creating a bunch of tests, I find the TreeView vertical scroll bar vanishes when there are
65536 or more VISIBLE... more >>
limiting entry in a text box
Posted by ranip at 6/27/2004 10:15:07 AM
how do i limit entry in a textbox to numbers only ?
... more >>
ReadOnly ChecBox
Posted by Dave Knake at 6/26/2004 7:04:52 PM
Does any know how to add the ReadOnly property to a CheckBox using C#. Or
is anyone aware of a third party control that has a checkbox that a has a
readonly property.
Dave Knake
Apex Software, Inc.
... more >>
clear ListBox Values.
Posted by ranip at 6/26/2004 3:42:37 PM
I would like to create an undo button that will erase the text entered by
the user in a list box.
how do i do so ?
... more >>
undo button
Posted by ranip at 6/26/2004 2:28:53 PM
i have a form with 4 textboxes and one listbox.
i want to create an undo button that will delete all the information the
user entered and will take the user back to tabstop1.
any idea ?
... more >>
how to disable tab stop on a lable field ?
Posted by ranip at 6/25/2004 7:49:37 PM
i have a form with x labels and Y textBoxes.
how do i declare that tabstop=null ?
thanks
... more >>
How to create a border
Posted by Jay at 6/25/2004 5:27:32 PM
I am having some couple of picture boxs in my form. whenever the user click
the picturebox it should be highlighted. i tried to create a rectangle as a
border of picture box but i could not. please guide me
Note. In another way i can place my picturebox inside the panel and whenever
user click... more >>
Default language in a TxtBox
Posted by ranip at 6/25/2004 3:08:29 PM
How can I control the default language within a textbox without changing it
in under regional settings?
Thanks
... more >>
tabcontrol style !!!!!!!!!
Posted by news.microsoft.com at 6/25/2004 12:53:28 PM
Hi.
Can anyone tell me how can I change the tabcontrol default style to wizard
mode ???
... more >>
user control on the designer
Posted by e-mid at 6/25/2004 9:46:58 AM
i created a user control on the designer. the i closed project and when i
opened it again now, i cant see the user control on the design window. i
can only see the code.
how do i make user control appear on the designer again?
... more >>
How to get the name of menuitem at runtime?
Posted by Tony at 6/25/2004 1:09:01 AM
like this,
foreach (MenuItem item in this.mainMenu1.MenuItems)
{
//some code
//I want to get the menuitem's name here!
}
No name property found. please help!
... more >>
Updating DB from a form
Posted by ranip at 6/24/2004 7:46:25 PM
Ok guys iv'e created my first form.
the form has 4 TxtBoxes In it and i want to create a button that will do 2
things :
1. Close the form - Simple me.close
2. update a specific table in a database with TxtBox1 TxtBox2 etc.
is there any code sample for that ?
never done it in my life.
than... more >>
dynamic control creation
Posted by e-mid at 6/24/2004 5:57:42 PM
i have a user control (say myUserControl) that inherits panel, i create
some textboxes on myUserControl dynamically, then i create some
myUserControls on the form dynamically with a loop . of course i change
name,location etc.. meanwhile.
i have some problems here then.
eg: how could i r... more >>
Design Time Property Detail Availability
Posted by Jim-M at 6/24/2004 4:47:28 PM
I'm inheriting TextBox in my control...it has a property that is type
TextBox and will point to another control on the form (or elsewhere).
This is working correctly, however at design time, the Property Browser
displays a "+" sign when the property is set to a control other than
(none). This... more >>
Is it safe to use a control's name in event handler given obfuscation
Posted by Roy Soltoff at 6/24/2004 4:23:32 PM
I've seen various methods for working around the omission of control arrays.
I'm using the following scenario:
Assume that I have 6 buttons named "btnTest1", "btnTest2", etc, and use the
same Click handler to sink their click event. In the handler, I use the last
character of the sender.name p... more >>
DataGrid - centering
Posted by sirinya16 NO[at]SPAM hotmail.com at 6/24/2004 3:28:34 PM
I have created a DataGrid control with checkboxes, TextBoxes,
ComboBoxes, and NumericUpDowns. Since I used the DataGridBoolColumn,
the checkbox is displayed in the center of the cell, horizontally and
vertically aligned.
I want the other cells with data to also be centered so that it is
cong... more >>
Setting rules for week nubmering in MonthCalendar
Posted by MattC at 6/24/2004 2:28:25 PM
Hi,
I need to set the rules by which the MonthCalendar Calculates its week
numbers. My company has Saturday as the first day of the week, no problem
there. The calendar correctly calculates week 1 from the first Saturday of
2004. However my company uses the the first friday of the to signify... more >>
Serialize/Deserialize TreeView
Posted by news.microsoft.com at 6/24/2004 12:44:43 PM
Hi, I need to serialize/deserialize a treeview in order to retain its
nodes/values.
the serialization worked;
using soapformatter:
System.Runtime.Serialization.Formatters.Soap.SoapFormatter _bf = new
System.Runtime.Serialization.Formatters.Soap.SoapFormatter();
string _filePath = "tree.xml";... more >>
S.O.S DrawString
Posted by Jack_2004 at 6/24/2004 11:10:48 AM
My problem is that when using the string "Cod." I obtain the exit ".Cod".
.... sf (stringformat)
.... text (string)
.... fuente (font)
.... r (rectangle)
sf.HotkeyPrefix = HotkeyPrefix.Show;
g.DrawString(text, fuente, new SolidBrush(Color.Black),
r, sf);
Thanks
... more >>
Questions on hosting .net control in web page
Posted by Lei Jiang at 6/24/2004 9:17:43 AM
I have several questions on hosing .net controls in web page :
1. Why only .net control instead of .net form could be hosted in web page?
If I want to embed a .net form in web page, how can I achieve that?
2. If my .net control uses some unmanged DLLs(through MC++), could these
unmanged DLLs... more >>
data grid visual basic .net
Posted by dancb20002000 NO[at]SPAM yahoo.com at 6/24/2004 6:59:23 AM
hello,
i have in my form datagrid obtain a list of orders
i want to select mulitple rows in the grid in order to invoke on them delete action
my question is how i can know in the code behind which rows i have selected?
i looked for a property in the grid like selection bookmark and i did not f... more >>
Pick Listbox control
Posted by bill22310 NO[at]SPAM hotmail.com at 6/24/2004 4:52:39 AM
Does anyone know of a pick listbox control for windows forms?
Something like in studio .net Find in Files where you click the "..."
to set the search directories. You then have an available listbox and
chosen items listbox with buttons to add/remove.... more >>
Icon question
Posted by ranip at 6/23/2004 6:30:29 PM
Where are all th icons sotred ? i would like to use some of the windows icon
in the application i'm writing.
like the undo etc.
... more >>
Tool tip
Posted by vedavyas at 6/23/2004 6:25:59 PM
Hi all,
I haveing a funny problem. i created a user control, and i set tool tips
to the controls that are generated at the runtime. when i use the control in
a normal form i could see the tool tips. but if i use the same form in a
from which is derived from an other from, the tool tip is not... more >>
usage questions
Posted by ranip at 6/23/2004 6:22:18 PM
Hi all,
i have a questions :
1. I am working with forms in designer mode, and would like to run only a
given form how do i do that ? Currently i compile and run the entire
project.
Thanks
... more >>
Re: Icon question
Posted by Alexandre Pinhel at 6/23/2004 6:17:30 PM
U have some in VS.net installation folder under common files/graphics if i
remember.
Alex
... more >>
Application Signed with strongname cannot use an assembly which is not signed?
Posted by Özden Irmak at 6/23/2004 1:27:27 PM
Hello,
I came across with a problem...
I had developed a component which it's assembly does not have a keyfile for
strong name...
One of my customers tries to use it in an application where he attaches a
keyfile for strong naming it and when compiling it he gets "Does Not have a
strong f... more >>
Open Form Issue
Posted by ranip at 6/23/2004 11:10:05 AM
guys i have an issue.
i have 2 form in a project:
Form A
Form B
In form A i've created Menu buttons and i would like to declare an on click
event that will open Form B
this is the code i'm using:
Dim FormB As New Form
FormB.Show()
End Sub
Form B as a start location and backcolor s... more >>
PictureBox with transparent regions
Posted by mnlarsen at 6/23/2004 9:46:02 AM
Hi,
I'm trying to extend PicutreBox to support transparent regions, specifically .gif files that have transparent regions. My problem is that the transparent region is not repainted when a control in the transparent region invalidates (e.g. TextBox in transparent region changes text to smaller t... more >>
How to have No radio button checked by default in a group
Posted by Manish Soni at 6/22/2004 9:35:11 PM
Hi,
I have 3 radio buttons. I have set the checked property of all of them to
be false.
Still when executing the first one is selected by default. I want none of
them to be
selected by default to startwith. How can I do that?
Manish Soni
... more >>
Embed windows forms in IE web page.
Posted by Lei Jiang at 6/22/2004 6:27:21 PM
It seems only .net control could be embeded in web page and could be shown
in IE. How can I directly embed a form in web page? Or is there any work
around to do that?
... more >>
Form scrolling problem
Posted by Bernie Yaeger at 6/22/2004 4:32:02 PM
I have a child form that has autoscroll set to true. However, when the mdi
parent is maximized and the child form is maximized, no scroll bars appear,
even though there is more controls and data below the visible area. Is
there a way to scroll the child form and/or the mdi parent when both are
... more >>
DataGrid Column Sorting
Posted by Mark Vergara at 6/22/2004 4:04:12 PM
Hi!..
Please help me on this, how can I disabled the default sorting
of each column I added on my datagrid ? is there anyway of
trapping the sorting of each column? Please help me on my problem.
Any answer will be highly appcreciated.. thanks allot..
Mark..
... more >>
opening a form from a menu button
Posted by ranip at 6/22/2004 3:39:11 PM
guys i have an issue.
i have 2 form in a project:
Form A
Form B
In form A i've created Menu buttons and i would like to declare an on click
event that will open Form B
this is the code i'm using:
Dim FormB As New Form
FormB.Show()
End Sub
Form B as a start location and backcolor s... more >>
|