all groups > dotnet windows forms controls > december 2005
Filter by week: 1 2 3 4 5
Making a control editable at design time
Posted by cab0san at 12/31/2005 7:54:30 PM
I would like to make a my own control that can be added to other
projects and used by other developers. When the developer is using the
control at design time, I would like for him to use a "wizard" style
program that would make the property settings for him, rather than
using the propertygrid e... more >>
Parent Control
Posted by David A. Schramm at 12/31/2005 3:59:21 PM
How do you find out the parent control that has the subject control in its
controls collection?
... more >>
Absolute Control Location
Posted by David A. Schramm at 12/31/2005 2:59:11 PM
If a control is inside a group box, how do you find its absolute location on
a form?
The location values show its location relative to the group box upper left
corner.
Thanks.
... more >>
Display data from richtexbox control
Posted by den 2005 at 12/30/2005 3:29:03 PM
Hi everybody,
The data (Richtextbox) has format like indentation, Butted list, Font
Style and others.
Is Windows.Forms.Label control be able to display the data with ints
format intact? How do I do that, the usual way of using its Text property and
just that.
Thanks.
Dennis
M... more >>
Assigning a selected value to a combobox
Posted by Brad Simon at 12/30/2005 8:46:02 AM
Hi all,
I am developing an app in VS 2005 and SQLServer 2005 Express
I have a user control that is not bound to any data. I have a combo box on
that UC whose list is databound to a clients table. Data is something like
this:
Value - Display
1 - ABC
2 - DEF
3 - GHI
Sometimes I wa... more >>
Controls are resized from one computer to another
Posted by Romain at 12/29/2005 2:45:02 PM
Hi,
I am developing a Windows Forms application which is the client of an XML
Web Service.
When running this application on my development system, forms and controls
are showing as designed in the IDE.
When I run my application on any other computer, every forms and controls
are a little ... more >>
DataGridViewComboColumn with variable items
Posted by Ramez at 12/29/2005 2:18:42 PM
Hi
What I need to do is as follows: I need to have a combobox in a grid with
its list of items vary depending on another cell value in the same row. For
example assume we have a table containning a person name, country, and city.
When bounded to a datagridview, I need the city to be a combobo... more >>
Debugging Custom Conttrol
Posted by AviD at 12/29/2005 12:53:03 PM
I'm having a problem debugging a custom control. My breakpoints are not
working with a message "The breakpoint will not be currently hit" etc. The
fun point here, that when I test the application that contains the control, I
can stop in the control.
Only when I make the control a startup pro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
I don't want the focus rectangle!
Posted by Montezuma at 12/28/2005 5:54:10 PM
How do i prevent the focus rectangle being drawn over a Button control?
I don't want it!... more >>
What functionality does Infragistics controls offer, which don't come with VS .NET 2005?
Posted by Rod at 12/28/2005 12:01:29 PM
We're looking at the possibility of replacing our very old third party
controls, which we used in two Windows apps written in VB6. We've been
using controls from Infragistics (they used to be called Sheridan back when
we purchased them) controls, so we're likely to stay with Infragistics.
... more >>
How to show a ContextMenuStrip without displaying at taskbar?
Posted by Seraph Jiang at 12/27/2005 6:55:50 PM
I am writing a NotifyIcon app.
I want to use Left mouse click to pop up a ContextMenuStrip.
Currently, I use
ContextMenuScrip.Show(x,y) to display it.
But it always show a windows at taskbar like I popup a window form.
Did I use the wrong method?
SeraphJiang@hotmail.com
27th,Dec
... more >>
Treeview AddRange problem (vs2003 - vs2005)
Posted by sajithpt at 12/26/2005 10:20:01 PM
What I am doing is:
1. To a treeview, a number of nodes using AddRange method (Items are
displayed in the treeview in the order in which added)
3. Remove some of the nodes using Remove() method
4. Again, add a number of new nodes using AddRange() method. This time the
items are displayed in... more >>
Image editor
Posted by Radoslav Robe¹ at 12/26/2005 6:06:55 PM
Hi.
Does anybody know where can I find somewhere on internet, source code of
appliacation similar with Ms Paint, or something easy for drawing.
Thanks a lot.
... more >>
hide tab selector of tabpage control
Posted by Esmail Bonakarian at 12/26/2005 4:35:03 PM
[I posted this elsewhere earlier, but this seems a
more appropriate group]
Hello all,
I have a tabcontrol with 3 tabpages. I want to
hide (not just disable) the 3 actual selection tabs that
allow a user to select a given tab page, but keep the
page around and active.
Instead I will be... more >>
ContextMenu for ToolBar
Posted by MuZZy at 12/25/2005 12:55:08 PM
Hi,
The problem i have is to show a ContextMenu on a toolbar depending on
which ToolBarButton is currently under cursor. Is there any way to find
out which ToolBarButton mouse is pointing? ToolBar.GetChildAtPos()
doesn't work as ToolBarButton is not a child control fo a toolbar...
I am i... more >>
Multiple Acceptbuttons ?
Posted by Fred at 12/25/2005 4:44:52 AM
Hi all,
On my Windows Form, I'm having a SplitContainer control. Each panel
(top & bottom) has a ToolStrip that contains a TextBox and a button.
When a user enters text in the TextBox and presses return, the action
that belongs to the corresponding button should be fired. Therefore, I
could u... more >>
FontDialog Question
Posted by Chris at 12/23/2005 10:42:03 PM
Hi all,
I've been trying to update the font style in a RichTextBox using FontDialog.
But when I use this method (Rather than change each attribute individually)
all the text in the RTB changes to the new font. Is there any way to just
make the selected text change or the text from that point o... more >>
WebBrowser in .NET 2.0: !DOCTYPE gets overwridden
Posted by Joubert Nel at 12/23/2005 5:27:57 PM
Hi,
I have an XHTML document that I wish to display to the user in the .NET =
2.0 WebBrowser control, and allow the user to edit it.=20
I got everything working beautifully but noticed that the control =
tampers with the !DOCTYPE definition.
Here is the XHTML that I pass to the WebBrowser c... more >>
16-bit Limit in the Height of a TableLayoutPanel Control
Posted by Jim Meyer at 12/21/2005 4:35:00 PM
I'm using a TableLayoutPanel to hold +1000 rows at a time. With a row
height of 36 px the total height of the table should be 50924 for 1414
rows, which "PreferredSize.Height" indicates correctly. However, when I
assign this value to the "Height" property of the table it remains at
32767 eve... more >>
TabControl in VB.NET 2005 not using XP style
Posted by AbsolutG at 12/21/2005 3:52:30 PM
I'm trying to use the new tabcontrol in VB.NET 2005. While in design
mode, it looks fine, using the same XP theme as the one I have set in
Windows.
The problem is that as soon as I run the program, the tabcontrol
changes its style to the old gray classic-windows style. I tried
playing around ... more >>
How to format a textbox?
Posted by Tore at 12/21/2005 1:06:04 PM
I have a textbox named textboxSum in a windows form.
How can I format this textbox to show its value in local currency (from the
control panel settings) with no decimals?
Regards
Tore... more >>
User Control Properties
Posted by Bill at 12/21/2005 12:07:15 PM
Hi all,
I have created a user control and exposed a property on the property =
window whilst in design mode. I would like to know if it is possible to =
make this property in the property window have a drop down associated =
with it so that the user using this control can only select a number... more >>
Session getting expired in windows usercontrol embedded in ASPX page.
Posted by bharathchandra NO[at]SPAM gmail.com at 12/21/2005 3:06:12 AM
Hi All,
I'm embedding a windows user control in aspx page and showing the user
control in the IE, the problem that I'm facing is that the user session
of the parent application is getting expired even if I'm working on the
usercontrol window.How to handle this situation and how can I keep the
m... more >>
How to detect when code is running at design time?
Posted by Benton at 12/20/2005 4:02:57 PM
Hi there,
I have a custom component class already in the toolbox. When I add it to a
Windows form, it seems that an instance is created by VS, as the code in the
constructor gets executed.
Is there a way to avoid this behavior? I have code in the constructor that
needs the application to... more >>
Adding controls to a panel wrapped by a user control
Posted by David Veeneman at 12/20/2005 11:34:35 AM
I'm trying to add controls at design time to a panel that is wrapped in a
user control.
I'm creating a user control replacement for the .NET GroupBox control, and I
want it to behave just like a GroupBox control--at design time, I want to
drag it from the toolbox to a Windows form, then dra... more >>
determine TreeView node from within ContextMenu popup eventhandler
Posted by Nabeel Moeen at 12/20/2005 6:35:02 AM
Hi,
I want to show a context menu when a treenode on a TreeView Control is clicked
When a MenuItem is clicked i want to be able to determine the Treenode that
was clicked from within the MenuItem eventHandler.
I'd appreciate it if any one can point me in the right direction.
Regards,
N... more >>
Changing ComboBox text
Posted by Michael J. Salamone at 12/20/2005 3:46:41 AM
Reposting to a larger audience - hope someone can help!
This may seem a bit odd, but I'd like to set the text in a ComboBox control
when an item is selected from the drop down list. I want the text to be
different than the display text of the selected item.
For example, if "x" is the di... more >>
Prevent 'Enter' being pressed in multiline textbox...
Posted by Daren at 12/20/2005 3:22:13 AM
Hi,
How can I ignore the Enter/Return being pressed in a multiline textbox
*if* the current line is empty?
ie, to stop people adding blank lines?
Regards,
Daren
... more >>
User controls
Posted by Fox at 12/19/2005 6:02:39 PM
Hi
I am writing (practicing) a small game using user controls
and some time my control whould become over another same type
or another type user or windows control
how can I modify the layout , some thing like Z coordinating in my
controls???
Thank you
... more >>
Display properties in PropertyGrid
Posted by at 12/19/2005 3:37:21 PM
Hi, NG!
Does anyone have any hint on how to get the PropertyGrid control to display
more user-friendly "property" names, i.e. names that contain spaces, just
the way the VS IDE does when you select a file in Solution Explorer to view
its properties ("Build Action", "Copy to Output Directory" e... more >>
How to refresh a DataGridView?
Posted by Jaime Stuardo at 12/19/2005 4:47:02 AM
Hi all...
I have a windows form with a DataGridView on it. I have some texboxes on the
form that are used to filter data shown in the grid after pressing a button.
At the moment, I have not found the way to refresh the DataGrid in order to
show the filtered data. I have tested a lot of thi... more >>
Treeview Checkboxes
Posted by Neil at 12/18/2005 11:15:38 PM
Anyone got a solution for having checkboxes on some (eg leaf nodes) and not
on other nodes, in a winforms (not asp) treeview control
Neil . . .
... more >>
How to remove default context menu
Posted by Tore at 12/18/2005 4:20:01 PM
I have a datagrid where I have created a contextmenu. It works, but when I
select one cell in the grid I sometimes get a "default" context menu with
menuitems like select all, copy, paste, delete etc. I don't want this default
menu to be visible in my datagrid. How can I switch it off?
The ... more >>
Remove plus sign (+) from rowheader in datagrid
Posted by Tore at 12/18/2005 4:13:02 PM
I have 2 tables in a dataset with a relation between them. The parent-table
is shown in one datagrid, the child-table in another.
The datagrid with the parent-table shows a plus-sign in the datarow header.
Pressing the plus sign shows the child rows in the same datagrid as the
parent row. I... more >>
RaftingContainer is missing
Posted by Markus Schertler at 12/18/2005 3:49:08 PM
Hello,
i installed Visual Studio 2005 Professional Edition today. Before i had Beta
2 Installed. When i open my solution i get the following Error-Messages in a
MDI-Form:
Type 'System.Windows.Forms.RaftingContainer' is not defined.
'Raft' is not a member of 'System.Windows.Forms.MenuStrip'.... more >>
inherited windows forms user control
Posted by Ryan Liu at 12/16/2005 12:44:33 PM
Hi,
Can someone give me a hlep on inherited user control?
I try to inherite windows forms user control, like ListView.
From Visual studio 2003, I right click a folder and selct "Add inherited
user control ...", then I browser to
c:\winnt\microsoft.net\framework\v1.1.4322\system.wind... more >>
Windowsforms control hosted in asp.net page...
Posted by Larry Beall at 12/16/2005 11:57:15 AM
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ok I'm trying to host a small windows forms control in an asp.net page.
The control grabs an image from the clipboard with the click of a button
displays it on the page and then allows the user to upl... more >>
Inheriting from TabPageCollection and TabPage visibility?
Posted by TCook at 12/16/2005 12:49:43 AM
Hello All,
First I tried to inherit from the TabPageCollection class but received the
following error message:
No overload for method 'TabPageCollection' takes '0' arguments
I also tried implementing a custom collection and the tabpages show up
during design time in the properties but t... more >>
Adding a "drop-down list box" to a windows form
Posted by CSTGuy at 12/15/2005 9:41:02 AM
I would like to use a "drop-down list box" on a windows form, but it does not
seem to be available in the tool box. I get it available in the tool box
when I develop a web page and an InfoPath form. When I check to add it to
the tool box, it is all ready selected - but does not appear. Does... more >>
Reset on Image based property
Posted by JezB at 12/14/2005 8:28:23 PM
I've extended (subclassed) a Button control and given it two new Image
properties (for mouse over and mouse click images). These work fine but I've
noticed that once I set one of my two new Images in forms designer, I cannot
clear it since the Reset option is disabled on the right-click menu i... more >>
Diff/Compare for the enduser
Posted by John Sitka at 12/14/2005 2:39:08 PM
I was looking for the visual representation control to use on a windows.form.
Much like the VSS Diff screen or the Wikipedia history screen. The user experience would be one
or comparing evolutions of file versions, like browsed to csv files or I may persist each one of those
csv as a version in ... more >>
exporting the datagird to excel,text and html files.
Posted by Ravindra at 12/14/2005 10:04:11 AM
hi all,
how to export datagrid to excel, html, texte files.
ravindra
... more >>
Hide tabs on TabControl
Posted by Justin at 12/13/2005 1:41:57 PM
I'm using C# and .net 2.0.
I want to use a TabControl, but I want to hide the tab (the part that sticks
up with text and/or images) from view. Programmatically, how do I hide the
tabs?
Thanks,
Justin... more >>
textbox control's TAB length
Posted by Abubakar at 12/13/2005 12:10:09 PM
Hi,
the tab character in a textbox is about I think 8 or 10 charcters long. Can
I change that to 2 or 3?
Thanks.
-Ab.
... more >>
How to let a combobox act as a label in run-time?
Posted by Frederik Vanderhaegen at 12/12/2005 5:07:38 PM
Hi,
I'm trying to create a control that inherits from combobox and that can act
as a label.
This might confuse you but I'll try to explain what I mean.
The control has a property "ReadOnly":
public bool ReadOnly{
get{
return _ReadOnly
}
set{
this.SetStyle... more >>
BorderStyle of ToolStripStatusLabel?
Posted by Jakob Lithner at 12/12/2005 12:25:01 AM
I have a StatusStrip where I added a couple of ToolStripStatusLabels.
But when I try to change their BorderStyle it has no effect ....
... more >>
Text Box Control - Letters / Numbers only
Posted by cd at 12/11/2005 7:33:02 PM
Is there a way to get the Control + C (copy) and Control + V (paste) back
when building a custom control to only display letters and numbers in a text
box? I have built a new control and it works fine to limit input to
backspace, letters and numbers but I can't figure out how to enable the cop... more >>
getting the current row in a richtextbox...
Posted by JohnnyGr at 12/11/2005 2:25:16 AM
Is there a way to get the current row (the row the cursor is on) without
using sendmessage or some other unmanaged piece of code...
i found the .lines() collection but i cant really find wich row im
currently on...
Thanks.... more >>
Modify Request Header
Posted by Dave Slinn at 12/10/2005 11:15:57 PM
I have a VB app hosting the Webbrowser control. I would like to add
"something" to the requests that app is submitted to our web application to
indicate that its from this webbrowser and not a separate instance of IE.
Is this possible, keeping in mind that I cannot add anything to the
regi... more >>
Listen event on the different thread and update data on the control
Posted by Rajat at 12/9/2005 6:08:01 PM
Hi,
I am receiving data in a separate class and I need to forward that data into
a usercontrol on which datagrid has been applied. I need to listen to the
forwarded event, extract the data which is coming up, very very fast and
send it to usercontrol to bind into the datagird.
I am giving ... more >>
|