all groups > dotnet windows forms > october 2006 > threads for october 8 - 14, 2006
Filter by week: 1 2 3 4 5
TreeView is displaying two root Nodes
Posted by erik little at 10/14/2006 3:24:18 PM
I have a treeview that is displaying two root nodes..
Can someone give me a pointer on what this might be?
I have created a componet and i inherit form system.windows.forms.treeview
There are no errors and all starts fine; however i am seeing double.. :)
help! please!
here is my test... more >>
listbox event lost
Posted by JB at 10/14/2006 9:03:01 AM
I have a form with a DeptList, an EmployeeList and a panel containing a bunch
of textboxes for employee data, e.g. name, address, etc. The textboxes are
bound to a datatable in a dataset. The DeptList SelectedIndexChanged event
handler is used to populate the employeeList and its SelectedInd... more >>
Howto distinguish the Return- and Enter keys
Posted by Harald at 10/13/2006 5:02:35 PM
Hi everybody!
In a GridView I have a key down handler like:
CtrlDataGridView_KeyDown(object sender, KeyEventArgs e) {
switch (e.KeyValue) {
case Keys.Return:
....
case Keys.Enter: // ERROR! same value as Keys.Return!
...
}
}
How ... more >>
Finding control's Parent at Design Time
Posted by Suraj Guptha at 10/13/2006 8:30:03 AM
I have created a CustomControl that inherits from Textbox
When i drag and drop my custom control on to a UserControl/ form i want to
read the UserControl's property / form's property at Design Time
Ex : When i drag and Drop my Custom Control, i want the constructor of my
control to read my par... more >>
PropertyGrid and INotifyPropertyChanged .NET 2.0
Posted by Stuart Carnie at 10/13/2006 8:26:23 AM
Does the property grid listen for these events or some other form of notification that a property has changed for a selected object?
My object implements INotifyPropertyChanged, and all other subscribers update except the property grid.
Cheers,
Stu... more >>
Panel scrollbars reset when control receives focus
Posted by RobA at 10/13/2006 1:17:01 AM
Hope this is the right place for this question. I'm using VB.Net 2003 and
have a Panel with it's Autoscroll property set to true that contains an
undocked panel. When this second panel is larger than it's 'parent', it's
parent shows scrollbars. However, if the second panel receives focus, t... more >>
Identify the Path of a Running Windows Service
Posted by Ragu at 10/13/2006 1:06:02 AM
Hi All
I have to get the path of a Running Windows Service from another application.
How to do this ?
... more >>
30 day trial source code
Posted by JB at 10/12/2006 9:47:02 PM
Hi,
Does anyone have some code that will shut my application down after
trialling it for 30 days?
Any help would be much appreciated!... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
MDI child window state and icon problems
Posted by Alex Broide at 10/12/2006 7:00:01 PM
I'm developing a MDI application in VB.NET 05
First probelm.
When MDI child is shown it should appear maximised. If i set WindowState for
MDI child after it is created but before it is opened, it doesn't appear
maximised when it is shown. The only workaround i found is to set WindowState
in... more >>
How to ensure Form title visibility?
Posted by Paolo Pagano at 10/12/2006 1:23:28 PM
Showing a form as:
Form f = new Form();
f.Text = "Very very very very very very very long title text...";
f.Width = ???;
f.howDialog();
is there a safe way to set the form Width so that it's text is fully
visible?
This way should take in account title bar font, sys... more >>
Databinding and Dataset
Posted by kzoltan at 10/12/2006 11:36:02 AM
Hi,
I am trying to determine the name of the datatable that a control is bound
to using code. For example: I have a textbox which is bound to a
bindingsource. The bindingsource is either bound to a dataset's datatable or
another bindingsource and a relation (typical master detail setup).... more >>
ContextMenuStrip - DataBinding to one of the items
Posted by cisco at 10/12/2006 11:36:02 AM
I'm trying to do basic data binding to a ToolStripComboBox but the
items aren't being populated. If i put a break point i can see that
the data source has information in it but it's not being displayed. So
the DataSource does have the BindingList associated with it. This is for a
ContextMenuSt... more >>
Minimizing load time for explorer hosted winforms
Posted by Carlo Folini at 10/12/2006 8:14:02 AM
Hi,
I'm trying to minimize the load time of a winform hosted in ie.
This winform calls a webservice.
It needs to download the XmlSerializers.dll, when doing this it start
probing in some wrong places (but not on the directory where the original dll
was downloaded).
If it didn't find an ass... more >>
Windows Form application and MFC application communication
Posted by batista at 10/12/2006 3:23:31 AM
I need suggestions and possibly solutions to the problem stated below:
I have an application written purely in .NET ( Windows Form
Application) and another application that is supposed to be written in
MFC(Visual C++) or Win32 GUI Application. The problem is to communicate
data between the two... more >>
UserControl property's DefaultValue for type Size
Posted by pompair at 10/11/2006 11:19:26 PM
Hello,
Is there a way to assign a defaultvalue for a Size-type in a
UserControl's property?
For example this code won't compile:
[Description("Size of buttons"), DefaultValue(Size(114,48))]
private Size ButtonSize
{
get { return toggleButton1.Size; }
... more >>
How to clear a bound combo box
Posted by Lamborghini at 10/11/2006 1:58:01 PM
Hi,
I have a combo box that is bound to an ArrayList. While the application is
running this ArrayList gets loaded with new values each time discarting the
old ones.
I have done the following:
ArrayList.Clear();
LoadArrayList();
comboBox.DataSource = ArrayList;
comboBox.Refresh();
Wh... more >>
"XHTML: The name contains uppercase character, which is not allowe
Posted by Dominique at 10/11/2006 12:44:03 PM
Hello,
After upgrading from VS 2003 to VS 2005 I am getting an error:
"XHTML: The name contains uppercase character, which is not allowed"
Where can I locate this kind of issues between the two products?
What is concerned?
Thanks
--
Dominique... more >>
DataGridView Commit
Posted by Dave T at 10/11/2006 12:08:02 PM
When you start typing in a DataGridView cell, a little pencil shows up in the
margin. When you move to another cell, it goes away. Does anyone know what
happens that results in the *pencil going away* and what event(s) get raised
in the process?... more >>
A control just like Visual Studio's multi-tabbed docking/floating one
Posted by Jon Clements at 10/11/2006 10:03:35 AM
Hi All,
I'm really not quite sure what I need to search for, to get a
walk-through on something like the above. I'd like to have in my own
application the kind of 'panel' on the left (Solution Explorer/Class
Viewer/Properties... the multi-tabbed jobbies in VS 2005) which has
document tabs at ... more >>
User Control messes designer when used in other projects
Posted by pompair at 10/11/2006 5:36:04 AM
Hello,
I've a VS 2005 solution that contains a few User Controls. The project
originated in VS 2003 .NET and was transformed into VS 2005. Some of
the user controls have been written in VS 2005 and some date back to VS
2003 .NET era.
There's also a tester app within the UserControl -dll, th... more >>
checking hardisk space...
Posted by Ginny at 10/11/2006 12:15:26 AM
Hi,
I want to check the hard disk space on c drive and raise an alra or email
notification if the free space goes below a permissible level. How can I do
this? Can I use performance counter or WMI or Win 32 api?? PLease assist.
Shall I implement this is as a windows service or in my windows appl... more >>
MDI titlebar text
Posted by AnikSol at 10/11/2006 12:00:00 AM
Hello,
With reference to an MDI form in VB 2005,
During the runtime, the Title bar of the MDI form shows the mdi.text plus
the childform.text
So if the MDIForm.text = "Main"
and if the childform.text = "Products" or "Orders" etc
then at runtime, the MDIform titlebar display " Main [Products... more >>
Winform inside a SplitContainer Funny Behaviour
Posted by AnikSol at 10/10/2006 9:22:13 PM
Hi,
I have a split container with the left panel having the navigation menu and
the right panel displays the required winform.
When the form is displayed inside a splitcontainer panel, the textboxes
behave a bit funny. There is no way I can have the mouse cursor placed
inside a textbox in... more >>
Thread marshalling - changing a control's thread affinity
Posted by Martin Maat at 10/10/2006 9:20:22 PM
Hi,
I have a notification window that uses its own thread to animate itself. It
also fires events to the main UI.
The trouble (getting it thread safe) is not with the events fired, I can
marhall them just fine using (Begin)Invoke. It is with the internal thread
which updates the form its... more >>
Positioning control on runtime
Posted by Sudhee at 10/10/2006 5:55:03 PM
Hi,
I have tab control on my base form , I want to position this always at the
bottom of the screen. The inherited forms change height on run time , is
there any way or any event on which I can position the control on runtime so
that always it appears at the bottom of the screen
thanks
Sudh... more >>
Positioning Control
Posted by Sudhee at 10/10/2006 5:50:02 PM
Hi,
I have tab control on my base form. This control should always appear on
bottom of the screen. This is inherited by many forms , the height of these
forms change dynamically , On baseform load I have put code to positon the
tab control at the end of form , but still the tabcontrol posit... more >>
Vertical Listview Scrollbar
Posted by Jason at 10/10/2006 5:25:11 PM
I have combed these forums looking for this answer but had no such
luck.
The question is how can I make the bertical scrollbar visible at all
times in a list view? Even if there are not enough items to require
it, I would like it to permanently be there. Any ideas? Thank you in
advanced.
... more >>
Stupid Typed Dataset Question
Posted by Dave T at 10/10/2006 2:57:02 PM
I have a DataGridView whose dource is a typed dataset. Before I call
TableAdapter.Update, I want to make sure that the a value in the underlying
datatable is not null. For some reason I can't get to it and check it
I wanted to do this
if not
typeof(Me.CTSData.dtActions(Me.DtActionsBindi... more >>
Problems with binding to binding source on base form in VS 2005
Posted by Jim Tilson at 10/10/2006 11:06:01 AM
I have a base form for performing searches. The base form has a protected
BindingSource object called searchResultsBindingSource.
On my derived forms (for example, CompanySearch), I instantiate a dataset
and set the base form's binding source to the dataset with no problem.
On one particul... more >>
tab control bug?
Posted by JB at 10/10/2006 9:41:02 AM
I have a form with a tab control containing several tabs. Using the tabPages
Collection editor (in design mode) I reordered the tabs using the up/down
arrow keys. When I click OK, the tabs are reordered in the design view as I
wanted. But, when I build the app, the tabs are put back in the ... more >>
XP themes for WindowsForm invoked from dll (Shell)
Posted by geo24 at 10/10/2006 6:31:36 AM
Hi,
have a windows form (form with progressbar) called from dll which is a
Shell Extension. The problem the progressbar is not XP style. The
progressbar control has flatstyle property set to System.
Tried to use manifest file for .dll but it doesn't work...
Any ideas?
... more >>
UserDeletedRow
Posted by Neil Steventon at 10/10/2006 2:37:02 AM
Hi ,
I want to get the value of a cell returned when the UserDeletedRow event
files, but for some reason cannot get anything to return.
Thanks
Neil
Private Sub dgridProducts_UserDeletedRow(ByVal sender As Object, ByVal e As
System.Windows.Forms.DataGridViewRowEventArgs) Handles
dgr... more >>
convert lowercase pathname to 'true casing'
Posted by Mike at 10/9/2006 10:54:01 PM
Given a pathname that is all lowercase, what is the best way to recover the
"real pathname" as used by the filesystem.
This is for a Windows-explorer-like tool which has to store filenames in a
config file, and the "real paths" might have changed since the config files
were written.
... more >>
i want create a panel dynamically
Posted by koti at 10/9/2006 9:52:07 PM
hi all,
i want to create a panel in the user control of windows application.
the panel should have textboxes lables, radio button, checck box's etc
can u please tell me is it possible do like this
Thanks
Koti
... more >>
Cookies and web services
Posted by Laurent Bugnion at 10/9/2006 4:50:49 PM
Hi,
I got a problem when I try to connect to a stateful web service using a
Windows Forms application (actually, a WPF application, but it's the same).
Simplified code:
SERVER:
[WebService( Namespace = "http://www.galasoft-lb.ch/" )]
[WebServiceBinding( ConformsTo = WsiProfiles.BasicP... more >>
Programmatically move a Form ?
Posted by Paic Citron at 10/9/2006 2:52:24 PM
Hi,
I'd like to know if it's possible to programmatically move a Form ... I
tried the Location property, but it doesn't work, and I can't find
anything on the internet / documentation ...
Thx in advance for any help.
Damien... more >>
Slow Painting
Posted by Brian P. Hammer at 10/9/2006 12:51:25 PM
All - I have a form with a tab control. On several of the tab pages, I have
user controls with 50+ controls - A label, textbox and checkbox * 17. Each
time the tab page is selected, you can see each label, textbox and checkbox
drawn on the form. I have set doublebuffered on each item. How ... more >>
Show only minimize button
Posted by dbcuser NO[at]SPAM gmail.com at 10/9/2006 12:34:58 PM
I am writing a tray program. I want to enable only the minimize button
both maximize and close button to disabled. How can I do that?
I tried disabling the control box and maximize button then all 3
buttons disappeared. If I enable control box alone, then I get my
minimise button but that make... more >>
Win Forms Woes
Posted by Brad at 10/9/2006 8:56:55 AM
Background:
I've made a wizard like Win form to drive the user through some repetitive
tasks. The program has a single form with an always visible panel on the
left edge (logo etc.) and three larger panels that fill most of the
remaining form. There are some buttons (back, cancel, next) at the... more >>
Form's font not propogated to user-control
Posted by Lee at 10/9/2006 8:40:53 AM
(Initially posted in microsoft.public.dotnet.framework.controls, but I
am posting it here after not having gotten a response after 3 days.)
Visual Studio 2005 + Windows XP (with all service packs)
I have a user control defined as follows:
==========
namespace ControlLibrary
{
public... more >>
letting child control handler mousewheel event
Posted by sammartin at 10/9/2006 7:40:02 AM
hi,
I've got a custom control which I've overriden the OnMouseWheel event and
made it scroll. Simple enough.
This control has a series of child controls which I'd like it to pass on the
MouseWheel events to if the mouse if over the control (assuming i need to do
a hit test?) (at the mom... more >>
FormClosing not fired
Posted by Bart at 10/9/2006 6:48:01 AM
Hi,
When I close a specific form (not the main form) , the FormClosing event is
called.
When I close via the main form while another form is open, the event on the
above form is not fired.
What could be the problem?
Thanks
Bart... more >>
How to develop Add-in to visual studio 2005.
Posted by Jaya Kumar at 10/9/2006 5:40:18 AM
HI All,
I am planning to create Add-in for visual studio 2005 , I am planning to create some control and when user drag and drop the control , it should automatically write some code ( auto generation code). Is there any possibility to achieve in visual studio 2005?
Thanks ,
Jayakumar A
EggHea... more >>
adding new settings to user.config at run time in C#
Posted by HansJ at 10/9/2006 2:35:02 AM
Hi,
I've tried the following code to add new settings to the user.config file at
run time but it does not actually save the new settting in the file. It's
only there for this session.
SettingsProperty hostDefaultSetting = new SettingsProperty("host" +
i.ToString());
hostDefaultSetting.P... more >>
Default colors for link column cells?
Posted by Jan Aagaard at 10/9/2006 2:08:27 AM
How do I get the default LinkColor and VisitedLinkColor values for a
DataGridViewLinkCell?
Right now I'm using the hard coded values Color.Blue and
Color.DarkBlue, and this works fine, but it would just seem more right
to use the system's default values in stead of hard coded ones.
With a n... more >>
GDI+ and GDI interop mix failing on Graphics objects
Posted by Oskilian (oskilian ~at~ rapapaing #dot# com) at 10/9/2006 12:37:44 AM
I'm developing a small image editor as a component in my app in C#. I have the following Image
Image srcImage
Which is currently loaded with the image in the file, and I'm painting it into the Graphics of a PictureBox basically doing the following
private void pictureBox_Paint(object sender, P... more >>
how to architecture a windows forms application
Posted by Bob Speaking at 10/8/2006 10:14:30 PM
Hi at all,
I've always programmed asp.net solutions and now I must pass to Windows
applications.
I was wondering on how to....
E.g. in my asp.net applications I can implement pagemaster inheritance to
write common functions or I can create a structure based on ascx to divide
functions. I ... more >>
New 2007 look of WindowsForms
Posted by michael at 10/8/2006 9:23:01 AM
When Vista and Office 2007 are finally released, what's the process that will
give developers access to the new visual formats? Is it about .NET 3? A new
release of VS?
--
Michael Hockstein... more >>
WinForms v2 - How to scale a form manually?
Posted by MobileMan at 10/8/2006 8:43:01 AM
I have a form that contains various UserControls (these are rendered simply
as boxes on the screen in different colors). I am trying to figure out how
to make the Controls within this form "scale" depending upon how large the
user has made the form.
I have found that by changing the fonts ... more >>
uncleared code
Posted by vijaiyanb NO[at]SPAM gmail.com at 10/8/2006 6:07:19 AM
please explain the following code
Dim rt As String =
"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
Arial;}}\viewkind4\uc1\pard\qr\f0\fs20 "
... more >>
Comboboxes and mdi child window overlay
Posted by Jared at 10/8/2006 12:00:00 AM
Hi,
notincing SelectedIndex is getting mixed up with my forms when I overlay
another MDI child window in my MDI app.
Is there a reason for this?
... more >>
|