|
Textbox showing wider in Vista.
Hello all!
We have 2 TextBox controls in a group box in our WinForms application. In XP
everything displays correctly but in Vista the TextBox's right side is off
the right side of the groupbox so we cannot see the right edge of the
TextBoxes.
Also, we have a similar problem with Radio & Checkboxes in GroupBoxes. In XP
the GroupBoxes all display correctly but in Vista the GroupBoxes ...
|
4 |
12/31/2008 3:46:21 AM |
|
Context Menu with Treeview Node
I have a treeview with some nodes having the contextmenu property set to
point to a context menu item within my application. There is just one menu
item in the context menu, "Delete". Everything is fine so far and it
displays and works as expected. However, once a treeview node is selected
and then I right click and select "Delete" from the context menu, there
doesn't seem to be any way ...
|
8 |
12/31/2008 3:09:37 AM |
|
Standard Control Locations on a Windows Forms Form
I have a groupbox I am creating programmatically ... I add textbox controls
to the groupbox. There is a user-defined number of rows and columns for
these textboxes so the groupbox grows in height and width (as does the form)
depending on the total number of textboxes added to the groupbox. My
question is, when I create the GroupBox and TextBox controls, what location
should I place the...
|
1 |
12/30/2008 9:45:12 PM |
|
TableLayoutPanel in usercontrol
Dear Experts :
When I put the tablelayoutpanel into usercontrol and allow other developer
adjust row / column size into design time (so that they use mouse to adjust
inner controls layout).
How to do it ?
another question , if usercontrol inside contain 4 other control (like
textbox, label ..etc) how to explore one of control (like textbox) property
explorer
into design time.
Ca...
|
1 |
12/27/2008 3:15:44 PM |
|
OnResize()
Hi,
Two quick questions:
1) What's the best way to manually fire the OnResize() event of a
control? (for more info, a custom control that derives from
UserControl).
2) I'm overriding OnResize() in my derived class. I've read that I
need to execute base.OnResize() in my overriding implementation, so
that registered delegates receive the event. Beside the extra stuff
that I execute in my o...
|
2 |
12/23/2008 3:11:33 PM |
|
Read-only PropertyGrid
Hi,
I've been looking around for ways to make the PropertyGrid read only. I
found a sample here that's closely match to what I need but there's an issue
with this sample and I couldn't figure it out
http://dotnetfacts.blogspot.com/2008/06/how-to-set-propertygrid-as-read-only.html
I'm using more than one PropertyGrid and when I set one PropertyGrid
ReadOnly property to True, the rest o...
|
17 |
12/22/2008 4:22:15 PM |
|
Set focus to first column when adding row to DateGridView
This seems like it should be simple, but...
I have a DataGridView that is bound to a list of business objects. The
value of the first column changes the the available values in a combo box
contained in the row. Using cell validation, I can prevent the user from
leaving the first column until a valid value is entered.
What I can not figure out is how to set the current cell to the fir...
|
1 |
12/22/2008 1:02:01 AM |
|
Datagridview - keeping last row visible
I have an application that watches a file and as the file grows, adds
rows to the end of a DataGridView. The idea is that the most recently
added row should be visible and the DGV scrolled to ensure that.
Unfortunately, the DGV doesn't have a property that accomplishes this
directly.
Instead, I walk backwards from the last row calculating the row's
height (using Graphics.MeasureString...
|
6 |
12/15/2008 7:57:59 AM |
|
DataGridView.ScrollBars = None auto-scrolls when columns resized.
I am replicating Excel's splitter arrangement, which has led me to
implement my own scrollbars. Unfortunately DataGridView resets the
scrolling positions whenever a column is resized. I can reduce this to
a very simple example:
1. Drop a DataGridView on a form and add a bunch of columns.
2. Set ScrollBars = ScrollBars.None.
3. Programmatically scroll the grid to the right.
4. Resize ...
|
1 |
12/14/2008 11:08:36 PM |
|
Composite User Control and Custom Designer with Container for WinF
This is my first Custom Control / User Control in .NET, so please be patient
and detailed. Unfortunately, it appears I’ve jumped off into the deep end.
(For your sanity, I’ve explained the problem in detail…the current question
is at the bottom. Note that the environment is VS2005 and Framework 2.0 with
WinForms. I would have posted to the MSDN forums, but they're currently
moving ...
|
1 |
12/11/2008 9:59:01 PM |
|
DateTimePicker Help!
Brand new vb.NET developer here and having some problems with 2
DateTimePicker controls on a Windows form. After the two dates are selected
from the control, I am attempting to set 2 variables (sDate1 and sDate2)
which are used as parameters for an SQLCommand and SQLDataReader.
Unfortunately, the variables are not being set to the date the user selects
--- they simply get set to whatev...
|
2 |
12/10/2008 5:21:44 PM |
|
HELP - Position tooltip relative to mouse cursor
Hi
I want to manually show a tooltip (using Tooltip.Show method) under the
mouse cursor. I have the mouse location but I want to tooltip to be displayed
beneath the mouse. I tried m_tooltip.Show("my text",this,e.X,e.Y +
Cursor.Size.Height)
The problem is the cursor Size returns 32x32 where the actual cursor icon is
smaller so there is a gap and it looks the the tooltip is too far away f...
|
2 |
12/9/2008 4:51:05 PM |
|
listview item loses background color after I change selection
m.p.dotnet.framework.windowsforms.controls.
have recently upgraded from vb.net 2002 to 2005, and have
encountered the following problem.
I have a listview with say a dozen items. Following a user action I
programmatically update the background colour of the currently
selected item to red. Lets say in this case it was the 3rd row.
The 3rd row is still the current item, so its still go...
|
4 |
12/8/2008 5:05:01 PM |
|
Could I change the forecolor of combobox when it is disable?
I wanna change the forecolor of combobox when it is disable.I don't
know how.
thanks in advance!
Jack...
|
2 |
12/8/2008 8:20:02 AM |
|
TreeView AutoScroll
Hi,
I'm currently writing my own UserControl, based on the TreeView control that
ships with .NET Framework 3.5. (i.e. Inherits System.Windows.Forms.TreeView).
Everything works fine, especially the Drag & Drop operation.
Just one question regarding the AutoScroll function. It appears to me that
this control has already a built in AutoScroll-function ... but it only
scrolls down and n...
|
1 |
12/7/2008 9:29:01 AM |
|
extending webbrowser component
Hi all,
I would like to extend functionality of webBrowser component as it is
shown in this example: http://slingkid.blogsome.com/category/c-windows-programming/webbrowser/.
This one is C# source (works ok with ie7 installed), I need to achieve
the same functionality in c++. I'm not really experienced, so if
someone knows any references or has any ideas, post it please. Thank
you......
|
1 |
12/3/2008 4:46:51 PM |
|
Where to Post
Were do I post question for WPF controls for 3.5 framework SP1?...
|
2 |
12/2/2008 3:49:52 AM |
|
ContextmenuStrip ScrollIntoView
Hi Group,
I was asked recently if I knew of a way in which a ContextMenuStripItem
selected by keyboard press could be forced to ScrollIntoView if it were
currently not in view. To be honest I hadn't really really looked at this
class and so wasn't aware of it's limitations. I had a look at it this
morning and found that it was surprisingly lacking. There is no SelectedItem
property an...
|
1 |
12/1/2008 11:14:42 AM |
|
FolderBrowserDialog and Virtual Folders
The documentation for FolderBrowserDialog states that "Only folders from the
file system can be selected; virtual folders cannot. " without any comment
on how to work around this limitation.
Of course, I now have a project where I need to include searches in the
browser folder list.
Does anyone know of a component that allows browsing of all folders,
including virtual folders, or eve...
|
3 |
11/28/2008 8:39:36 PM |
|
COM Calling DotNet
I am unclear about what all the requirements are to call a simple vb.net
application, installed in the GAC, from COM (such as writing vba in Word to
call the dotnet dll).
I believe I have installed the dll in the GAC. It is in there and has a
public token. I did not create a key-value pair. I believe it is strong
named, as it shows up in the GAC.
How do I browse the objects of it? I ...
|
10 |
11/27/2008 11:30:06 PM |
|
Add controls to panel - Auto Scroll
Hi all,
I hope someone can help me with this.
I have a panel where I add controls programatically in what is basically a
list with a icon for each line to right
eg.
xxxxxxxxxxxxxxxxxxxxxxxxx icon
xxxxxxxxxxxxxxxxxxxxxxxxx icon
I use the autoscroll = true to add scroll bars where required. The X
location of the controls is 5 and the X location of the icon is 60.
...
|
3 |
11/27/2008 5:21:01 PM |
|
Drag Drop Cursors
I am executing arid Drag Drop operation on the header of a custom grid
control. When engaged in a drag I would like a "ghost" image of the header
to appear under the arrow cursor to display the object being dragged.
On commercial controls I have observed two behaviors that I can not create.
1) The cursor reflects the ghost image of the object being dragged.
2) The ghosted imaged can ...
|
2 |
11/27/2008 9:52:52 AM |
|
Always display "Dropdown" arrow in PropertyGrid
All,
We are trying to use a PropertyGrid to display a custom class to our
users. Things are working well; however, some of the users have a
complaint.
Some of the properties are Enumerations (ie, the user would pick an
item from a predefined list). When the user selects one of these
properties, they get a combobox and can select an item. Some of the
users (unfortunately, the "importa...
|
1 |
11/26/2008 1:47:34 AM |
|
Store Program Coordinates
I am storing the top, left, height and width coordinates of a winforms
application when the user exits the application, so it loads the same way
next time. If the user moves the application to the bottom right and sizes
it small, or even has multiple monitors set up and moves the application to
the next monitor, the application may come back and not be found. The user
can right click on...
|
4 |
11/25/2008 10:32:45 PM |
|
Force Center In Screen
I am storing the height and width of a form so it opens the same each time
based on how the user resizes it. I would like to have the form centered
each time it opens, but the form uses the hard coded coordinates to
determine the center, and I set the height and width after (even though it
is in the constructor). After the height and width is set, is there a way to
center the form?
...
|
2 |
11/25/2008 6:02:08 PM |