all groups > dotnet windows forms controls > september 2005
Filter by week: 1 2 3 4 5
Auto-Size a User Control
Posted by JezB at 9/30/2005 9:19:28 AM
I want to auto-size a user control based on RadioButton. How do I do this ?
Currently when AutoSize is true it's sizing the control according to the
base RadioButton class and how big IT thinks it should be - so how do I
override this and set my own size? I want to perform a MeasureString in t... more >>
.NET Custom Control rendering problem
Posted by crazee NO[at]SPAM gmail.com at 9/30/2005 2:46:40 AM
Hi all,
I've developed custom controls for a project at work. All the buttons
inherit from a base class that itself is derived from the Control
class. The base class handles all state changes and triggers some
virtual function calls that must be implemented by derived classes.
All derived class... more >>
Transparency in custom controls
Posted by JezB at 9/29/2005 12:21:31 PM
I'm creating a custom control (inheriting from base windows control
RadioButton). I want the background for the control to be transparent, so in
the OnPaint method the first thing I do is clear the client rectangle with a
transparent colour:
protected override void OnPaint(PaintEventArgs pea)
... more >>
VS2005b2 - I think TextBox.Cut, TextBox.Paste etc should not work with ReadOnly = true...
Posted by AndreB at 9/29/2005 10:04:39 AM
Hi,
VS2005b2 - I think TextBox.Cut, TextBox.Paste etc should not work with =
ReadOnly =3D true...
Because of that missing, I have to add tests in my code to prevent that.
Am'I missing something ?
TIA, AndreB.... more >>
Insert Files into RichTextBox Control
Posted by Microsoft at 9/29/2005 8:12:33 AM
Hello all,
I'm working on a WinForms app and I need to provide my users with the
ability to insert files into the RichTextBox control. I have successfully
implemented the drag & drop as well as being able to Paste a document into
the control. However, I can't seem to find a way to allow the u... more >>
how to add refered dlls in usercontrol hosted in IE
Posted by Sajjad at 9/28/2005 6:21:01 PM
Hi,
I am have an application which uses cotnrols and i want to expose it using
browser in an asp.net application.
Is there a way to specify referenced assembly in html object tag. part of
my classes are in different dll and when it gives exception that it cannot
load type etc and when i ... more >>
Fix for the TreeView / Horizontal Scrollbar Bug
Posted by Daniel at 9/28/2005 1:41:08 AM
I'm searching for a good way to avoid the bug that a treeview displays
a horizontal scrollbar in non-XP style when you fill its nodes e.g. in
the constructor of your form.
This seems to work:
public class MyTreeView : System.Windows.Forms.TreeView
{
//....
[DesignerSerializationVisi... more >>
ListView Header Control background color
Posted by raxlaxman at 9/28/2005 12:11:33 AM
Is there any way of changing the header control 's ( column header)
background color? I want to give different color to each of the column of
the listview's header. I know owner draw ia one way of doing it but I would
like to if there are any APIs available to do this .
many thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CausesValidation not working as expected.
Posted by Chris McKenzie at 9/27/2005 3:37:50 PM
This is a hairy one.
I have a situation in which the textbox.validating event fires when it
should not. The Text box is itself contained in a user control, which is
then loaded dynamically into a panel on a form. The form has some buttons on
it, some of which have CausesValidation set to Tr... more >>
MousePosition Property
Posted by Chris Y at 9/26/2005 11:41:23 PM
Hi, what is the MousePosition property of System.Windows.Forms.Control? I
tried reading it but I can't relate the Point values to the real position of
my mouse.
Thanks.
... more >>
OpenFileDialog - Preventing Browse
Posted by KarenP at 9/26/2005 1:56:07 PM
Hi,
I would like to use the OpenFileDialog to allow the user to select a file
for processing. Is there any way I can prevent the user from browsing to
folders other than the InitialDirectory? For security reasons, I cannot
allow users to browse to other folders on the computer.
Thanks,... more >>
problem displaying strings in a text box
Posted by DevX at 9/26/2005 10:07:47 AM
Hi to all,
I have a text box that must display a string readed from a MSDE database.
In Win2000/XP when a carriage return (e.g. where the user that entered the
string pressed ENTER) is encountered, I got a small box and the string don't
go to a new line.
In my developing machine, a Windo... more >>
cannot intercept onPaint/onPaintBG from inherited TabControl
Posted by VR at 9/25/2005 12:00:00 AM
Hi, I'm developing a custom tabControl and could not intercept the
onPaint/onPaintBackground events in the inherited class. Is there anything
I'm missing here?
Here's the code:
Public Class myTabCtl
Inherits System.Windows.Forms.TabControl
Protected Overrides Sub OnPaint(ByVal ... more >>
Changing Checkbox 'box' colour from white.
Posted by el_sid at 9/23/2005 8:15:01 AM
Is there a simple way to change the colour of the checkbox's background
colour from the default white to another colour for the actual box (not the
label which you can do at design time).... more >>
ErrorProviders - Icon Change at Run-Time
Posted by Steve Le Monnier at 9/23/2005 12:00:00 AM
My user interface design requires that ErrorProviders are used for errors
but also to indicate warnings to the users as well. In order to provide a
clear visual clue between errors and warnings its necessary to have two
differing icons.
I could place two ErrorProviders on my form, but wha... more >>
Syntax highlight
Posted by £ukasz at 9/22/2005 10:57:31 AM
Hi,
Do you know any free edit control that highlights C# syntax?
Thanks in advance
£ukasz... more >>
auto tab from textbox
Posted by ScottGX at 9/22/2005 9:06:05 AM
Is there a good way to automatically tab to the next control when the user
has typed in the max characters into a textbox? The idea is to flow from one
text box to another without the user having to use their mouse or tab key.... more >>
WebForm_DoCallback is not defined
Posted by Bernhard Wurm at 9/22/2005 8:29:42 AM
Hello!
I try to programm a webcontrol, which uses remote-scripting.
Therefore I implemented the ICallbackEventHandler interface.
I Registered the JavaScript-File as embeded Resource in the OnPreRender
method.
When I view the HTML source, my JavaScript File is included as
<script src="/Web/Web... more >>
Shortcut keys are not displaying
Posted by Dhana at 9/22/2005 12:00:00 AM
Hi All,
In my window application i used shortcut keys for my controls.
Until press Alt, the shortcut keys are not displaying.
Can any one help me out.
Regards
Dhana
... more >>
Datagrid functionality
Posted by 11Oppidan at 9/22/2005 12:00:00 AM
Please could someone show me how to do the following in VB .NET:
1. Freeze a column in a datagrid similar to the functionally in Excel where
you can 'Freeze Pane' - so when you scroll right you can see the first
column.
2. When a user selects all and copies the cells in a datagrid in o... more >>
How can I identify the thread where the main form is running?
Posted by Daniel Bello Urizarri at 9/22/2005 12:00:00 AM
Hi:
I need to Identify the thread (or context) where the main form is running,
so if the current thread is this thread, call BeginInvoke..
The idea is:
I need to Open a DbConnection and launch a query, but when the query finish,
it could possibly start another, so I do not want to close... more >>
UserControl in an app in design time
Posted by Luis Arvayo at 9/21/2005 1:49:03 PM
In Design time can I create a UserControl and then drag that UserControl to
one of the forms of the application ? How ? After I try to do this, then
cannot drag that control after full generation of solution.
If not, then it means that only solution is that I have to create a Control
Librar... more >>
Multiple columns in a combobox dropdown list
Posted by Jason Barnett at 9/21/2005 12:17:28 PM
Does anyone know of a way to display multiple columns in a ComboBox dropdown
list? I found one solution at
http://www.codeproject.com/vb/net/ControlsTest.asp, but the listbox that it
uses (in place of the combo's dropdown list) is not fully visible past the
boundries of the form.
Is it p... more >>
Text invisible at time in Dropdown
Posted by K L Nats at 9/21/2005 11:57:23 AM
In our windowsForm application, we use drop down boxes in many places. At
times, when the user clicks on the drop-down box, no text is visible, but as
the user moves cursor down, the correct text is shown as selected. Very
strangely this happens certain times but at other times all text is v... more >>
Custom collection was binded at design time, but does not populates datagrid at run time...
Posted by SammyBar at 9/21/2005 8:01:53 AM
Hi,
I'm trying to bind a custom collection class to a data grid, following the
guidelines from the article
http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx.
The problem is the article is in VisualBasic. I already get the collection
to be recognized as ... more >>
Best practice regarding localization without satelite assemblies
Posted by Thomas Due at 9/21/2005 1:01:08 AM
Hi,
I am wondering how to best perform localization without using satelite
assemblies. Globalization would of course also be nice. I don't think
the application will reach _that_ great an audience, but I might as
well be prepared for it.
What I really want is to add a component of some type... more >>
If Docked left, Height cannot be modifed
Posted by Chris Y at 9/21/2005 12:00:00 AM
After many hours troubleshooting a problem, I found that the problem lies in
Docking a Panel. If my
panel1.Dock = System.Windows.Forms.DockStyle.Left, the panel height cannot
be modified programmatically anymore. Is this a feature? If yes, why?
Thanks.
... more >>
Error using custom control in the Designer
Posted by thegrifman NO[at]SPAM gmail.com at 9/20/2005 12:06:18 PM
I've got a custom control called LabeledLine. It's a very simple
control as this is the first one I've ever done. It works perfectly
save for the fact that when I use it in the designer and try to run the
project, I get the following error:
'System.Windows.Forms.Control.ControlCollection' do... more >>
Get ALL controls on a Form
Posted by DraguVaso at 9/20/2005 9:19:59 AM
Hi,
Is there actually a way to get ALL the Controls on a Form? While using the
ControlCollection, it only returns the Controls that are directly on the
Form, not the controls that are on a (TableLayout)Panel etc.
I never found something like that, but it just would be nice in my opinion
:-)... more >>
Referring to a Control made during Run Time
Posted by Andrew Stokes at 9/20/2005 6:30:59 AM
Hi,
I asked this earlier but i'm not sure if i phrased it correctly.
I have downloaded and used ZoomPicBox from BobPowel, and i create this
control during run time.
During Run time the name of the control becomes ZoomPicBox & i, i being
a number depending on the amount of images being add... more >>
Chart
Posted by m NO[at]SPAM rio at 9/20/2005 12:00:00 AM
Hi,
Where can I find Chart control with source for C# or VB.
thanks
mario
... more >>
how to get the number of milliseconds between two System.DateTime objects
Posted by Daniel at 9/19/2005 5:02:26 PM
how to get the number of milliseconds between two System.DateTime objects
... more >>
Exposing custom collections as datasources for VS in design time... how to do that?
Posted by SammyBar at 9/19/2005 8:57:26 AM
Hi all,
I have some custom collections (ArrayList of custom Objects) and I want to
display them using typical Windows form controls (DataGrid, Combo). What
should I do to expose them as valid datasources to these controls? What if I
want that these collections work with Visual Studio on des... more >>
IE Embedded Control Does not Work When its run From Localhost
Posted by Markus Kling at 9/19/2005 2:58:01 AM
Hi,
I have a Windows Forms Control which gets hosted by IE. The control requires
most of the available permissions and is therefore assigned the "FullTrust"
Permission via its strong name. The zone the Control is run from is "Local
Intranet" (= 1 ?).
When the Control is hosted by a remot... more >>
How to get the Active MDIchild form..
Posted by AravindManohar via DotNetMonster.com at 9/19/2005 12:00:00 AM
Hai,
I am creating MDI Application which uses Docking, Actually I downloaded
this project and implemented in my application. But i cannot able to get the
Active Mdi child which returns null. Help me What i have to do... more >>
PureComponents EntrySet Extenders
Posted by David Veeneman at 9/16/2005 11:44:16 AM
This message is posted for the Google crawler. No reply is required
I want to caution other developers about a product called
"EntrySet.Extenders" by a small controls house called Pure Components. The
developer makes heavy use of testimonials to market their product. Since I
don't think the... more >>
Spaning Cells in datagrid
Posted by Rich Denis at 9/16/2005 6:50:02 AM
Hello all,
Been doing web programming for some time now and have recently made a
transition to winform programming. I am looking to use the datagrid control
to load some data with a twist. I would like to have a datagrid where I can
add a row that has a cell that I can span across two cel... more >>
IntelliSense TextBox Control
Posted by abcabcabc at 9/16/2005 12:00:00 AM
I want a textbox control which support like-as IntelliSense feature to allow
user select a word when inputting text. Is textbox control support it? Or
Are there any third party control support it?
... more >>
ListView LargeIcon View problem
Posted by Amos Zhang at 9/15/2005 9:50:08 PM
Hi all,
I am trying to display a bunch of thumbnails of images in a listview
control. I set the View to LargeIcon and set the LargeImageList property.
But the icon displayed is pretty small. I changed the View to SmallIcon and
set the SmallImageList to the same ImageList I used in LargeIcon Vi... more >>
changed Property of Public Control a Designtime on UserControl disapears!
Posted by DraguVaso at 9/15/2005 12:00:00 AM
Hi,
I'm having some weird behaviour, and I can't find any solution to this.
I made a UserControl (uclCommands) which contains a Toolbar (ToolBar1) with
Modifiers = Public.
I put this usercontrol on my form and call it Ucl1. In the Property Window
in the Windows Forms Designer I change Ucl1.... more >>
How do I add another folder in the FileDialog Folder Icon list.
Posted by JimM at 9/14/2005 12:31:03 PM
I don't know it this can be accomplished. I have looked in the news groups,
MSDN and did not find an article about this. If there is one please point me
to it.
What I want to do is add icons for additional folder paths to the list of
folder icons on the left of the dialog under the "Look ... more >>
DataGrid Multiselect using keyboard
Posted by Aurin at 9/14/2005 11:31:09 AM
I have a requirement to disable/hide some controls when multiple rows are
selected in a datagrid. I can handle this very easily in the datagrid
clicked event by counting the selected rows. However, if the user selects
multiple rows by using shift + arrow or Ctrl+A then the clicked event does... more >>
question about handling selection in textbox/richtextbox
Posted by Nadav Popplewell at 9/13/2005 10:13:01 PM
Hi everybody,
When selecting text in a textbox by moving the cursor while holding the
shift key
there are two 'modes':
1. if you start the selection by moving to the right then the selection
extends to the right, and moving the cursor left&right moves the RIGHT end of
the selection, as if... more >>
PrintDocument drill down capability
Posted by Sri at 9/12/2005 6:06:05 AM
I am using PrintDocument to draw bar chart and I want to include drill down
capability. Is it possible? Please any one hep me with VB.Net code... more >>
attempt to center a picturebox
Posted by dennist685 at 9/11/2005 7:54:02 AM
attempt to center a picturebox
I was doing it the old fashioned way, as we learned in vb 4+
This was just the beginning of my code. I will eventually make it dynamic,
loading the images one by one.
Dim fx As Integer = Me.Width
Dim fy As Integer = Me.Height
Private Sub Fo... more >>
Finding a node in a treeview (C#)
Posted by Michael at 9/10/2005 9:45:25 PM
Just before I write the code to recursively iterate through the nodes....
....is there any quick way to find a node. Every node I have has a unique
integer value in the Tag. Surely there's something?
It's a basic Winforms TreeView
I'm using C# in VS 2003
Thanks in advance
... more >>
Can a Custom control call a function in the application?
Posted by Ronnie Smith at 9/9/2005 10:25:01 AM
I have a custom control which has mouse move and click event handlers. The
problem is that the control needs to somehow tell the application (i.e. the
form in which the control is located) when a particular event takes place.
Really I want the custom control to call a function in the app pas... more >>
Drag and Drop in TreeView Control
Posted by Jeff Gaines at 9/9/2005 8:40:30 AM
I have written a small app (in C#) for keeping notes.
It has a TreeView Control which is used for categorising the notes and
a ListView and RichEdit to keep the actual notes.
I want to give a bit more information when dragging a node on the
TreeView and I found a sample that uses a small bor... more >>
Seting de focus to a control
Posted by Daniel Bello Urizarri at 9/9/2005 12:00:00 AM
Hello:
I have a form with labels and textboxes, but some of the textboxes can
appear as read only, and I want that when the form gets loaded, the control
with the focus is the first textbox with readonly set to false.
I Could use Enabled, but in disabled form, the textbox text can not be
... more >>
Usercontrol or Custom control
Posted by Matt at 9/9/2005 12:00:00 AM
Hi
I'm developing an application with a tabview. Each tab there are a no: of
controls and control events.
I dont want to keep all tabpages in a single .cs file. Options are to create
usercontrols or custom controls.
I dont know which one to go for.
Also i need designer view to design tabs ... more >>
|