all groups > dotnet windows forms controls > june 2007
Filter by week: 1 2 3 4 5
DataBinding Question
Posted by ESmith at 6/29/2007 3:50:23 PM
I have a schema that defines a STRING variable: TimeLimit
On my data collection form, there are two numericUpDown controls - one for
hours, one for minutes.
Internally, the program does the conversion, hours * 60 + minutes to get the
TimeLimt in minutes.
Is it possible to DataBind in thi... more >>
Double click not change TreeView expand
Posted by David Thielen at 6/29/2007 1:06:02 PM
Hi;
How can I set a TreeView to not expand/contract a TreeView node when it is
double clicked on?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
... more >>
Text box size
Posted by John at 6/29/2007 12:00:00 AM
Hi
I am using Tahoma 8 size for my text boxes which is changed to Tahoma,
8.25pt by the system. The height of my text boxes is 21 with this font size.
Is there a way to reduce the height to 20 without much effecting the font
size?
Thanks
Regards
... more >>
PictureBox, setting SizeMode = StretchImage
Posted by Gaz at 6/27/2007 6:51:45 PM
Is there any way to get the image displayed in a PictureBox to stay sharp
when the SizeMode property is set to StretchImage?
When the PictureBox to image size ratio is 1:1 the image is sharp, when I
double the size of the PictureBox the image size is doubled but the pixels
of the image are ... more >>
Wrong row selected when pressing down arrow key after sort
Posted by Simon at 6/27/2007 12:00:00 AM
Hi everyone,
I'm having a frustrating problem with the datagrid control.
I have added code so that the currently selected row remains highlighted
even after a sort. This seems to work perfectly in all but one respect.
After the sort, the row will move position and will remain selected. Th... more >>
A little delegate help
Posted by pek at 6/26/2007 4:25:12 PM
Well I've been looking for an example on how to use the delegate
method but all I have found doesn't work like I want it. All the
examples assume you have a main form and a class file which the class
file will be called from the main as a thread etc. etc.
My problem is that I don't want the us... more >>
Combobox with check items
Posted by Tasneem Jappie at 6/26/2007 3:09:20 PM
I am searching for an example where a combobox is extended to contain
checkbox items. I've looked all day now, and so far the best links
are:
1) http://www.codeproject.com/useritems/CheckComboBox.asp
and
2) http://www.codeproject.com/combobox/checkcombo.asp
The first CheckComboBox examp... more >>
tab oder within tab control
Posted by MunchingBill at 6/26/2007 12:10:02 PM
Working with Visual Studio 2005. I have a Windows Form with several text
boxes and a tab control with several tabs. Using the View -> Tab Order, I
have set the tab order, but can't seem to find a way to set the tab order for
the tabs within the tab control. Currently, when tabbing through the ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marquee ProgressBar with backgroundworker
Posted by mmcd79 NO[at]SPAM tampabay.rr.com at 6/25/2007 8:33:15 PM
I'm hoping someone can help me. The only information (aside from the
limited MSDN help) seems to reference older technology/methods which
I'd like to stay away from.
VS 2005 (.net 2.0) has a ProgressBar with Marquee mode. This mode
confuses the H out of me. I fully understand how the 'norma... more >>
XP themes and Visual Styles on Application under Windows Classic
Posted by Notre Poubelle at 6/25/2007 5:47:01 PM
REPOST: I posted this last week, but it seems to have gotten lost. Hopefully
this one is found!
Hello,
I expect this is not possible, but can anyone confirm if it is possible for
a given application to use XP themes and visual styles (on an OS that
supports it like Win XP and Win 2003) ... more >>
checkedstate and checked conflict: why?
Posted by Beemer Biker at 6/25/2007 10:14:06 AM
I have a checkbox on a form that determines which of several controls will
show up at runtime. I set a user property so that the context the user
selected shows up the next time the program is run and the inappropriate
controls made invisible. VS2005 put together a Designer.cs page and it s... more >>
Writing control properties to xml
Posted by John at 6/25/2007 3:23:22 AM
Hi
I am trying to right all control properties on my form to an xml file. My
complete VB code so far is given at the end below. I have two problems
currently.
1. On the line PropValue = Prop.GetValue(Ctrl) I get the error "Conversion
from type 'Padding' to type 'String' is not valid." wh... more >>
Writing/reading control properties to a file
Posted by John at 6/24/2007 4:28:43 PM
Hi
I am trying to save settings of controls on my form to a file so I can read
them back later and recreate the controls on the form. I have figured out
how to go through all controls and get their properties (see code below).
What I am not sure is; how and what type of file format I need t... more >>
Transparency on Non-Client Area
Posted by Juan Pedro Gonzalez at 6/22/2007 5:40:58 PM
Hi,
I've built a control to mimic WindowsXP collapsible panels. In order to do
this I had to change the client area of the control so the child controls
can dock on my control. Using WM_NCPAINT I get to draw the border and the
headers... But I can't get the rounded corners as I can get thos... more >>
controls appears differently on different PCs
Posted by Ed White at 6/22/2007 4:19:14 PM
I have an application that uses a Windows form, and I run exactly the same
application on my desktop and my laptop. On my desktop, when my program
shows the form, labels appear fine, but on the laptop, two labels next to
each other overlap. Both the desktop and laptop have Windows XP Profess... more >>
Disappearing Text in Windows Vista
Posted by Henrik Skak Pedersen at 6/22/2007 3:35:02 PM
I have encountered a bug that I can reproduce in a simple test application
that is constructed entirely in the designer within Visual Studio 2005, with
not one line of code written by me. Briefly, all the text in a TextBox
disappears whenever the mouse cursor enters or leaves the box. I've only
... more >>
Button with arrowdown (acting as a combobox)
Posted by Soeren D. at 6/22/2007 2:28:57 PM
I have seen WinForm applications with a control, that I am pretty sure is
standard in .NET 2.0
It is a button with a leftadjusted text followed by an arrow pointing down.
When the button is pressed, a menu is shown benieth and the text of the
selected menuitem becomes the new buttontext.
... more >>
How can i use the editor attribute?
Posted by Sam at 6/22/2007 1:36:00 AM
Hello there,
Please I need help on how to use the editor attribute. I am trying to learn
how to create User Controls? I created a UserControl using VB.NET. It
Contain a TreeView control and I want to expose the TreeView nodes
collection
and support the design-time environment by using t... more >>
TabControl.Select(TabPage) does not trigger Selecting Event
Posted by Eric Cathell at 6/21/2007 10:24:41 AM
Am I doing something wrong here?
Me.TabControl2.SelectTab(DoctorInformationTabPage)
Private Sub TabControl2_Selecting(ByVal sender As Object, ByVal e As
System.Windows.Forms.TabControlCancelEventArgs) Handles
TabControl2.Selecting
Select Case e.TabPage.Name
Case "DoctorInformation... more >>
Deleting and creating controls via code
Posted by John at 6/20/2007 6:19:36 PM
Hi
Is it possible to enumerate all controls on a form and then save the info in
an xml file via code? Is it possible to reverse the process i.e. read info
from and xml and recreate all controls on a blank form? I am just trying to
find a way to cerate "templates" so users can choose which c... more >>
Third party treeview recommendations ?
Posted by Oriane at 6/20/2007 3:40:02 PM
Hi there,
we need to handle and display nested stucture in a .net Winform application.
We would like to display the tree in different modes/layout.
Have you heard of something nice ?
Oriane
... more >>
How to deny switching to another TabPage (C#.NET 2.0)
Posted by nvx at 6/20/2007 12:39:03 PM
Hello everyone,
is there a way to deny switching to another TabPage of a TabControl in
case a certain condition is not met?
Any help would be much appreciated...
Regards
nvx
... more >>
Disabling TextBox Context Menu
Posted by Chuck B at 6/19/2007 8:09:27 AM
I have a UserControl that inherits from TextBox. I want to use the Right
mouse button to do something besides open the default TextBox context menu.
Is there a way to disable the menu or bypass it on the MouseClick event?
... more >>
Loading usercontrols at runtime
Posted by Dahab at 6/18/2007 4:01:41 PM
Hi,
I have some user controls that implements an interface with some predefined
methods.
Is it possible to load these usercontrols dynamically with reflection or
other mecanisms?
The interface methods needs to be included.
D.
... more >>
SetWindowTheme and Windows Form controls
Posted by Notre Poubelle at 6/18/2007 3:48:00 PM
NOTE: I posted this earlier to the same newsgroup, but it appeared to have
gotten 'lost' so I'm reposting it.
Hello,
I've got a simple VS 2005 (i.e. .NET 2.0) Windows Form application. On the
form, I've placed a Tab control, a button and a check box control. By
default, when I have Win... more >>
How to put bold items in a ListBox ???
Posted by Francois at 6/18/2007 12:00:00 AM
I have tried :
MyListItem.Attributes.CssStyle.Add("color", "red");
MyListBox.Items.Add(MyListItem);
This correctly add a red item in my listbox.
But
MyListItem.Attributes.CssStyle.Add("font-weight", "bold");
This seems not to change any visual effect.
I have also tried "font-size". ... more >>
Drop down button
Posted by John at 6/17/2007 12:00:00 AM
Hi
I am looking for a drop down button control like Infragistics's ultra drop
down button but I don't want to purchase the whole suit for one control. Any
recommendations would be appreciated.
Thanks
Regards
... more >>
Options in making controls look 'nicer'
Posted by Notre Poubelle at 6/14/2007 4:18:01 PM
Hello,
I apologize if this is the wrong discussion group for these questions, but
I'm not sure where would be the best place to post the questions. I know
some of the questions are pretty open ended too, but I appreciate your
comments.
I'm using Windows From 2.0 controls in my applicati... more >>
How to customize the Label and set the property of AutoSize to False?
Posted by Ryou kaihou at 6/14/2007 12:00:00 AM
Hello All,
As we known, in Visual Stdio 2003 or 2005, the property of Autosize is set
to True by defaut, how can I customize this and set property of Autosize to
False?
Any ideas?
Thanks
... more >>
Displaying Custom Control
Posted by JT at 6/13/2007 10:41:01 PM
The dropdown behavior of a combobox that is at the inferior edge of its
container (eg, a group box), when dropped down, will extend beyond the
inferior border of the container, and of the form itself, if necessary. I am
building a few custom controls that expand down when in edit mode, but my... more >>
SetWindowTheme & Windows Form controls
Posted by Notre Poubelle at 6/13/2007 9:36:01 PM
Hello,
I've got a simple VS 2005 (i.e. .NET 2.0) Windows Form application. On the
form, I've placed a Tab control, a button and a check box control. By
default, when I have Windows Theming enbabled (on Windows 2003 the Theming
service is enabled and running) and I select the display to us... more >>
ControlStyles::Selectable doesn't seem to work on ListView
Posted by robintw at 6/13/2007 1:39:00 AM
Hi,
I am making a custom control derived from System::Windows::Forms::ListView,
and I want to make it so that it cannot get focus. Apparently to do that I
use the SetStyle method to set ControlStyles::Selectable to true. This
doesn't seem to have any effect though.
Does anyone know why t... more >>
addhandler Listview
Posted by Luc at 6/12/2007 7:14:02 AM
I'm always getting an error on the addhandler I've created for the listview
control which is added during runtime
(Error :Method 'Private Sub LISTV_ItemSelectionChanged(sender As Object, e
As System.Windows.Forms.ListView.SelectedListViewItemCollection)' does not
have the same signature a... more >>
DataGridViewRow fully displayed?
Posted by Jeff Johnson at 6/11/2007 3:11:01 PM
Is there any way to tell if a DataGridViewRow is completely visible
on-screen? The Displayed property returns true as long as the row is even
partially visible. Do I have to resort to a bunch of math?
... more >>
Saving a panel to a Graphics (Printing)
Posted by she_prog at 6/9/2007 10:58:26 AM
Dear All,
I need to save the content of a panel to a bitmap. The panel can have
many child controls which also need to be saved. The problem would be
solved if I could have the panel saved to a Graphics object, which is
the same as if I'd need to print it. It'd be easy using
Control.DrawToBit... more >>
Drawing App Question
Posted by news.microsoft.com at 6/7/2007 10:03:59 PM
I need to be able to display something similar to the way Crystal Reports
allows you to link tables. I want to display tables in rectangles with
fields listed in the rectangle. I need to be able to draw lines between the
rectangles to indicate relationships. I just need help in gettng start... more >>
comboBox control with treeview
Posted by Sam at 6/7/2007 1:52:00 PM
Dear Sir,
I needed a comboBox control with treeview style and I found one in the web
as an example. But it’s written in C#. I don’t understand C# very will so I
started to rewrite the code in vb.net 2005 until I faced to problem that I
could not resolve.
1. Please in the following pr... more >>
dropdown control that contains treeview control
Posted by Engin POLAT at 6/7/2007 12:00:00 AM
hello,
i need a treeview control which contained by a dropdown control, by this
way, i'll have a treeview that requires a small place on a form..
perfect for toolbar, filter screens, etc..
is anyone know component like this??
... more >>
Question on inserting a control on to a form
Posted by news.microsoft.com at 6/6/2007 2:21:20 PM
I have a panel which has from top to bottom has a label, a list box, a label
and a property grid. They are all set to dock fill. I want to take out the
list box and place a treeview there instead. the only problem is that when
I remove the list box all the over controls move to fill the emp... more >>
How to create a user control container?
Posted by Joseph Geretz at 6/6/2007 10:56:24 AM
Don't get me wrong - I'm a fan of .NET; I am enthusiastic about the richness
and elegance of the environment. However, richness and elegance should be
dedicated toward making development easier for developers, not more
difficult. In many ways this goal is achieved. However, I've run up against... more >>
How to select particular Node and its child nodes in TreeView of VS 2005 ?
Posted by Luqman at 6/5/2007 6:53:47 PM
I have filled a treeview with parents and childs, using Hashtables.
Now, how can I check the required Parent and its Child Nodes.
for example, I have following data
Group
Item A
Item A1
Item A2
Item B
Item B1
Item B2
Now, I want to check the ... more >>
"SafeArrayTypeMismatchException" - .NET MASTERS PLEASE HELP
Posted by Phoenix at 6/5/2007 8:14:45 AM
Hi .NET Masters :-)
Please help me to get out of following situation ...
There is a function in one of my dlls whose signature is as follows :
my_function(integer X, integer Y, char* Z, HAD A, HAD P)
Here HAD is defined as follows in one of the header files as :
#define HAD ... more >>
datagridview
Posted by DJE at 6/4/2007 8:57:37 AM
A datagridview has a checkbox column in column0. In another column is
a date. When the user clicks button "Select All", all the checkboxes
in the grid are checked. When the user then clicks on the the date
column to sort by date, all the checkboxes become unchecked. I don't
have any code to do t... more >>
KeyPress in DataGridView
Posted by Herb at 6/4/2007 8:38:02 AM
Is there a direct way to make a letter KeyPress jump to a value in a
DataGridView or do I need to program it into KeyPress or KeyUp?
The first column in my bound DataGridView is an integer(which is not
visible), the second column is a string. I would like to be able to press a
letter key a... more >>
Context menus and the default item with ContextMenuStrip
Posted by Jeff Johnson at 6/3/2007 11:16:32 PM
Has MS changed the rules again? Are we no longer supposed to indicate the
default (bolded) item in a context menu? It would appear that way, since the
DefaultItem property no longer exists in the ToolStripMenuItem class, which
is the "new and improved" menu item. Why why why?
... more >>
Panel.Enabled
Posted by David McCallum at 6/3/2007 7:11:21 PM
I have a panel on a form when I set panle.Enabled to false, all the panels
child controls are disabled, as expected.
Is there anyway to override this for one component (actual a list of phone
number. The user will want to be able to scroll through them)
TIA
David McCallum
... more >>
Add number to Trackbar
Posted by Samuel at 6/3/2007 3:14:27 PM
Is it possible and how to addd numbers to Trackbar control
... more >>
DataGridView fails on binary data
Posted by AlexS at 6/3/2007 10:53:29 AM
Maybe I am missing something simple, but I am getting internal exception in
FW 2.0/3.0 when setting data source for a grid to data table, which contains
binary data. Looks like grid wants to paint them as image and throws
exception when data are not image - see stack below (not complete).
H... more >>
PictureBox Control Needed
Posted by Samuel at 6/1/2007 4:21:57 PM
I need a PictureBox control that I can scroll a large image with the mouse
wheel,
Additionally, I would like to drag the picture using the mouse (Left Click,.
move the mouse and then release)
Thank you for your help,
Samuel
... more >>
File Identity Lost After Download
Posted by Thomas Weise at 6/1/2007 3:58:49 PM
Hello,
My application uploads files to an FTP server. Before uploading, I
calculate the hash value of each file. After downloading, the hash value is
checked.
This works fine when I'm using the FTP protocol for download as well. In
order to avoid the FTP credential overhead, I ahve tried t... more >>
|