all groups > dotnet windows forms > may 2006 > threads for may 22 - 28, 2006
Filter by week: 1 2 3 4 5
Context menu strip
Posted by steffen_home_92 NO[at]SPAM hotmail.com at 5/28/2006 4:15:35 AM
hi ng,
I actually want to program an application whose main window contains a
menu strip and a tree view control. In the main menu there are items I
want to use for a context menu strip in the tree view but if I add a
menu item from the main menu strip to a context menu it disappears from
t... more >>
I just don't get it (Windows Forms that is). Please Help!
Posted by A Wieser at 5/27/2006 12:47:29 PM
I've just started climbing the steep learning curve from VC6/MFC to Windows
forms and C++/CLI.
But I just can't find the documentation that describes the philosophy of
what's going on.
A simple example:
I want to create a popup menu class that can be reused on multiple forms,
and star... more >>
Save settings ...
Posted by Gabriel at 5/26/2006 6:01:22 PM
Hello,
Is there an easy way to save the application ? for example :
- Application position on the screen
- Imagine if I have an "option" form
How save and restore these informations ?
Thanks,
... more >>
Programatically open a combo box
Posted by john conwell at 5/26/2006 10:54:02 AM
I'm trying to find a way to programatically open a combo box's drop down
window.
Any ideas?... more >>
JIT Debugger and WinForms
Posted by Jay at 5/26/2006 9:30:01 AM
I'm working on a windows forms application that has a wrapper around the main
execution code (in Main) to report any unhandled exception through a custom
dialog. This works fine on my machine but when I give it to a client the
dialog doesn't appear but rather they are presented with a "Ignore... more >>
DataGridViewComboBoxColumn - Requires multiple clicks to get menu to dropdown?
Posted by ESmith at 5/26/2006 8:28:59 AM
How can I pass the initial mouse click through to the dropdown control on a
DataGridView? Currently, the user needs to click on it - I guess first to
select, then again on it to see the dropdown choices (sometimes this
requires several clicks). The CheckBox doesn't seem to have this issue - ... more >>
anoying splitter behaviour
Posted by eduwushu at 5/26/2006 2:46:01 AM
Hi
I have put an splitter container in my form and have set its orientation
property to horizontal
The in the upper panel i have put a listbox wit dock property to fill .
The problem is that when i move the splitter up and down the distance
between the lower border of the listbox and the spl... more >>
Panels, UserControls, and component position in the UserControl
Posted by dchman at 5/25/2006 5:26:02 PM
I inherited a C# Windows app (.net 2.0) . There is a main form with a panel
and menu. When the user selects a menu item, a usercontrol form is added to
the panel and displayed. The User control forms have things like
datagridview and command buttons, as well as a panel that gets loaded with... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
UserControl Border Color
Posted by Craig at 5/25/2006 3:04:02 PM
Hi
I have a simple UserControl hosting a couple of other controls, the
BorderStyle = BorderStyle.FixedSingle. All I want to do is change the border
color of the control.
Anyhow got an example on the best approach to do this. I tried the
following which didn't make any difference:
pr... more >>
How to determine when a form is first displayed
Posted by curtsfakeguy NO[at]SPAM hotmail.com at 5/25/2006 2:14:56 PM
Hi, this question must have been answered many times before, but I just
can't find the answer in the groups.
How can I determine when a Windows Form is displayed on-screen? When
my application starts up I want to immediately display a "wizard" to
guide the user, but when I tell the wizard for... more >>
about MDIContainer's AutoScroll and background image
Posted by cok at 5/25/2006 10:12:36 AM
Hi, all
I have a question when I use form as MDIContainer
when I move a MDIChild out of edge of MDIContainer,
the Container's Scroll bar appear(yet "AutoScroll" property is "False"),
and the Container's background image look like error!!
How can I disable auto scroll of the Container or
Ho... more >>
Toggle form from editable to readonly and vice versa
Posted by J. Clay at 5/25/2006 8:24:48 AM
I know this has to be simple and I am missing something, but, I have a
windows forms application. The forms are bound to an object. I want to be
able to have the form open as readonly until an "Edit" button is pressed.
After all of the edits are done, they can then click an "End Edit" but... more >>
adding controls to fontDialog?
Posted by Lionel at 5/25/2006 8:04:03 AM
I'd like to declare a class that inherits from the fontDialog class and adds
a "Color..." button to the bottom of the dialog. However, fontDialog doesn't
seem to have a "Controls" property according to the documentation. In this
case how do I host the button?... more >>
Newbie - ListBox doesn't have OnChanged event?
Posted by moshaiov NO[at]SPAM gmail.com at 5/25/2006 7:09:30 AM
I have a ListBox control which is not bounded to any data source
automatically.
How can I intercept the event of adding/removing items to it?
- Tal
... more >>
VB.NET ebook needed
Posted by Pradeep at 5/25/2006 6:02:03 AM
hey
if anyone has any ebook for vb.net kindly send me a copy..
Im badly in need of it to refer to some concepts on data access,
storage and retrieval
pradeep.mani@gmail.com is my email id
bye
Pradeep
... more >>
Image in DataGridView Button Column
Posted by Coco at 5/25/2006 1:36:02 AM
Hi,
How can i put image as button in DataGridView column?... more >>
correct way to paint custom caption
Posted by + Kennedy Kok + at 5/24/2006 7:00:50 PM
What is the correct way to paint custom caption in .NET and XP?
I like the new custom caption in Office 2007, how do I do that?
Kennedy
... more >>
Controlling Read/Write Permissions Per User
Posted by Jeremy S. at 5/24/2006 6:47:54 PM
I'm writing a Windows Forms app (connecting to SQL Server db) that will need
to enable/disable access to various UI controls based on the particular user
that is currently logged in.
My question:
What are some of the building blocks that I should look to use? E.g., how do
I know who the cu... more >>
Opaque (semi-trasparent) control
Posted by Viktar Zhardzetski at 5/24/2006 3:37:02 PM
I neet to create a "Colored glass" effect, so I can cover a couple of buttons
on my form with an opaque (semi-transparent) shape and some text. I tried the
following:
1. Create a control that will support a transparent background and use ARGB
colors to set an opacity for the background (or ... more >>
TabControl.SelectedTab.Name issue
Posted by Terry at 5/24/2006 2:29:02 PM
Hello All,
I’m having a issue with the TabControl.SelectedTab.Name in the
SelectedIndexChanged method. All I want to do is keep track of what tab the
control is currently on. I have tried the following. I get an Index error or
Object is not an instance of a Object error. Is there a work ar... more >>
Showing Multiple Displaymembers
Posted by Nathan Guill at 5/24/2006 1:41:07 PM
I have a combobox that lists 3 columns of data. When a row is selected, I
need to show 2 of those colums to the user. I would like to show this in
the combobox, but the default ability doesn't allow this, I'm wondering how
others have handled this in the past and what suggestions others might h... more >>
fontDialog.Color
Posted by Lionel at 5/24/2006 1:31:02 PM
Hello,
the following
"fontDialog1.Color = Color.LimeGreen;"
fails. - the selected color displayed when fontDialog1 is shown is black.
It will work if I set the color to red, blue, etc but not LimeGreen. I
noticed that this particular color doesn't reside in the color drop-down
picke... more >>
ComboBox value as parameter for stored procedure?
Posted by Daniel Manes at 5/24/2006 12:07:28 PM
Ok, I have a DataGridView, and I want to fill it with data from a
stored procedure (which is on a SQL server express database). This
procedure requires a parameter called "Country." The user selects the
country from a ComboBox elsewhere on the form.
All seems to be working fine except one thin... more >>
DisplayMember is being ignored
Posted by Dundealing at 5/24/2006 11:29:03 AM
Hi,
I have the following code to set the DataSource of a ComboBox to a certain
table in an untyped DataSet, and I also want to set the DisplayMamaber of the
ComboBox to a certain column:
cmbID.DataSource = Me.Ds.Tables("Groups")
Dim str As String = Me.Ds.Tables("Groups").Columns("Cust... more >>
Mnemonic and Accelerator Issue
Posted by msoegrad NO[at]SPAM gmail.com at 5/24/2006 10:30:55 AM
In doing some development and testing I have found a curious issue with
the use of Mnemonics and Accelerators that I would like some input on.
If you create a form that has 2 buttons on it, one with text "&Button1"
and one with "B&utton2" and set up event handlers for both you will see
a curious... more >>
datagridview border column width
Posted by dchman at 5/24/2006 9:44:01 AM
In DataGridView control I want to set the width of the border column, i.e.,
that column that borders the grid on the left. At run time the user can
adjust its width, but is it possible to do it at design time?
thanks
--
dchman... more >>
Printing a report without print dialog. Beginner question. VB 2005
Posted by Federico Caselli at 5/24/2006 1:56:01 AM
Hi,
I made a local report (add New item -> report) bound to a oleDB data source.
I order to preview it, I made a form and added a ReportViewer control.
But now I need to batch-print it without showing print dialog. Is it possible?
Is it necessary to use the ReportViewer even if the user ... more >>
2.0 Web Browser Control
Posted by Amy L at 5/23/2006 7:52:32 PM
Does anyone know of a way to prevent images/cookies etc from being pulled
via the new web browser control. Essentially what I am looking for is html
rendering like what is done via outlook (it blocks images, etc) until you
tell it that its ok to download them. Does anyone know of anything (b... more >>
each control on a form
Posted by Gabriel at 5/23/2006 6:49:02 PM
Hello,
I'd like check all the control on my tabcontrol (all tabpages)
I tried this :
foreach (Control oControl in this.Controls)
{
if (oControl.GetType() == typeof(TextBox))
{
oControl.DataBindings.Clear();
}... more >>
RichTextBox.Enabled = False forces unwanted background color
Posted by ChrisUttenreither NO[at]SPAM gmail.com at 5/23/2006 6:07:02 PM
Hello folks. I'm writing a Roguelike game in C#. It contains a
RichTextBox which displays a map. The map is made up of multicolored
ASCII art. Since this control is displaying a map I do not want a
blinking cursor on it, so I set the Enabled property to false.
Unfortunately this forces the c... more >>
Problem with form activation
Posted by Laurent at 5/23/2006 5:02:52 PM
Hi all,
A problem occurs when I show a form (using method Show or Visible set to
true).
The form, when displayed is also activated and I do not want to.
The property Form.ShowWithoutActivation returns false.
How can I display my Form so that it does not activate when it is displayed
?
... more >>
AppDomain and Reflection
Posted by John Wright at 5/23/2006 3:14:01 PM
I have the following code that creates a new appDomain and loads an exe
using reflection. The problem I have is the exe file I pass in is still
locked by the application. I have showcopyfiles = "true" and specified the
locations for the appDomain to use. The shadowfiles and the original file is... more >>
BackgrounWorker component
Posted by Andy at 5/23/2006 1:54:21 PM
I'm using a background worker component to load a large amount of data
in the background so that the UI stays responsive and repaints.
I disable the form set the Cursor to Hourglass, then call the
BGWorker.StartAsync() method to load the data.
Everything works, except that for some reason th... more >>
Deployment & SQL Express
Posted by Demetri at 5/23/2006 1:49:02 PM
If I build a windows forms application using .Net 2.0 and SQL Express 2005 as
the backend database (mdf file). Will the machine that runs the windows app
need to have SQL Express 2005 installed?
--
-Demetri... more >>
Can't get a PropertyGrid to refresh
Posted by Noah Stein at 5/23/2006 12:01:31 PM
I've been fighting this for a solid 30 minutes now. When I change the value
of a property outside of the grid, I can't get the grid to change the
display. If I obscure the window behind another window and then return it to
the top, the grid displays the proper value. I call Refresh() on the
... more >>
Binding ReportViewer to a Data Source. Beginner question. VS2005.
Posted by Federico Caselli at 5/23/2006 9:03:02 AM
Hi,
I created a local .rdlc report and a simple Data Source by wizard.
Ad design time I went on 'Report' -> 'Data Sources...' menu and added my
Data Source in my report.
So I added the report viewer control in a form, set ProcessingMode to local
and ReportPath with my report.rdlc.
No... more >>
FillRectangle over Windows Forms Components
Posted by Stephan at 5/23/2006 1:41:02 AM
Hello NG,
I want to draw a rectangle on my panel:
Graphics g = panel1.CreateGraphics();
g.FillRectangle( .......
no problem.
But if I put Form-Elements, like a button, on this panel,
my rectangle is behind this button.
But I want to render it in the front.
What can I do to solve thi... more >>
setting window size based on screen resolution of the system
Posted by ShilpaM at 5/22/2006 10:55:01 PM
Hai,
I am working with windows forms in vb.net. i want to adjust window(form)
size based on screen resolution of the system(Resolution is small and
large).Is it possible to change .tell me some possible answer
Regards
shilpa... more >>
the look of the button is not good
Posted by Pradeep at 5/22/2006 9:48:12 PM
hi,
im using visual basic 2005 express edition to create my windows
application..the look of the button is not good..in the sense that..the
look of the button that i get in visual studio 2005 is not present in
visual basic 2005 express edition...is there a way to change the way
the button looks... more >>
Threading -
Posted by Leo W. at 5/22/2006 8:30:02 PM
Hi everyone,
I would appreciate any help concerning this threading issue.
I am using the comm port, and receiving data from the comm port fine.
I am updating the system.form controls, text boxes, using "begininvoke" and
the updates occur, no problem.
However after the update,, the form is a... more >>
treeview grid control
Posted by xocobonse NO[at]SPAM gmail.com at 5/22/2006 7:14:12 PM
Hi, my application needs to display a table of data that is organized
by categories. Additionally, I'd like to display small graphs in a
column for each row. Ideally, I'd like the table to have treeview
functionality. Can this be done with standard WinForms controls?
>From the research that... more >>
Exception with PrintPreviewControl while showing document
Posted by Bob Dankert at 5/22/2006 4:44:43 PM
Hello,
I have a control which utilizes the PrintPreviewControl class to provide a
more powerful print preview than the provided PrintPreviewDialog class. I
am having troubles when the default printer on the computer is a network
printer which is not currently accessible (for example, on a ... more >>
When to call Dispose
Posted by Zachary Turner at 5/22/2006 1:31:57 PM
Hello,
The question I have below was originally posted to
microsoft.public.dotnet.framework, as I mistakenly considered this a
question of more general nature. However, the discussion there quickly
turned into one that was very windows forms specific, and it seems
there is some confusion as ... more >>
Application takes time to load after a period Inactivity
Posted by ramadu at 5/22/2006 11:42:56 AM
Hi,
I am a developer in a company which makes a large scale .net windows
application. Recently, my users have been complaining that after a
period of inactivity of about 15-20 minutes, the next action that they
perform takes 30+ seconds to execute. The same action normally would be
done i... more >>
missing registry value
Posted by lynnGasch at 5/22/2006 11:37:26 AM
This article
http://support.microsoft.com/kb/813827
describes how to set a longer timeout for IE. In the app we are
developing, we want to see if the user has created the value
mentioned in that article. I created the key/value on my machine,
but when I try to get the value using the RegistryKe... more >>
SortCompare of DataGridView - how to?
Posted by Chris Botha at 5/22/2006 10:40:39 AM
VS2005 and I have a DataTable displayed in a DataGridView that needs custom
sorting, with the DataSource of the grid set to the DataTable and the
SortCompare event just won't fire.
Then I found this in the docs "This event occurs only when the DataSource
property is not set and the Virtual... more >>
Find angle between 2 points using 2d coordinates.
Posted by velu at 5/22/2006 3:47:01 AM
Find angle between 2 points using 2d coordinates.
I am trying to write a tool to find angle between 2 coordinates in 2d space.
I know the distance of adjacent side and hypotenuse.
Cos(angle) = adjacent side / hypotenuse
Angle = (adjacent side / hypotenuse) inverse of Cos
I exactly do... more >>
Batch printing application looses document order
Posted by Federico Caselli at 5/22/2006 3:41:02 AM
Hi,
I'm writing an application in vb.net 2005 to batch-print several .pdf file
to the default printer, using Process.Start method, without multithreading.
But the order of the documents queued in the printer is not correct and
every time different. For example, if the application prints, i... more >>
Which UserControl is loaded?
Posted by Zemp Dominik at 5/22/2006 3:12:01 AM
Hi
How can I determine which UserControl is loaded in the Panel control? (.NET
2.0)
Thanks and Regards
Dominik
-----------------------------
http://blogs.ecreation.ch... more >>
|