all groups > dotnet windows forms > august 2007 > threads for august 22 - 28, 2007
Filter by week: 1 2 3 4 5
Programmatically click on the treeview node
Posted by Sanjin at 8/28/2007 4:24:31 PM
Is it possible to programmatically click (and make node checked also) on the
desired treeview (System.Windows.Forms.TreeView) node.
I.e. pseudo code:
myTreeview.Nodes[0].Click();
This code has to trigger the treeview AfterCheck event.
Thanks in advance
Sanjin
... more >>
Question on ClickOnce Deployment
Posted by BillG at 8/28/2007 1:53:52 PM
I have an app which I deployed last week. If I make a change to the app and
it only affects changes to existing code. what I mean by that no new
projects/dlls, no new controls etc. What do I need to copy up to the
deployement site, just the new .exe?
Bill
... more >>
A *generic* progress bar dialog with BackgroundWorker?
Posted by Jugalator at 8/28/2007 8:00:03 AM
Hi!
I'm having some trouble with BackgroundWorker objects and making some
"heavy" work that is *not* supposed to be in the progress bar dialog itself.
I basically want to do something like this:
ProgressForm form = new ProgressForm();
form.Show();
// ... Do heavy work here ...
form.Upda... more >>
Graphics.DrawImage breaks with "Parameter is not valid"
Posted by Chris at 8/28/2007 7:42:06 AM
Hello
I'm trying to draw a PictureBox with an image of size 40000 x 200 pixels.
Because the image width is larger or equal to 2^15, drawing the image will
crash.
Code snippet:
Bitmap bmp = new Bitmap(40000, 200);
pictureBox1.Image = bmp;
Exception Text:
System.A... more >>
How to programmatically call the Windows Picture and Fax viewer?
Posted by B. Chernick at 8/28/2007 7:20:03 AM
I'm writing a Winforms program in VB, Dot Net 2.0. I have a datagridview on
a form and I've defined a column as a DataGridViewLinkColumn. (I have the
usual programmer's problem. I am not sure what sort of machines this code
will run on so I am shooting for the lowest common demoninator.)
... more >>
set focus on the first control
Posted by Michele Len at 8/28/2007 3:24:03 AM
I need to create a method to set focus on first control in a windows form How
i can do it?... more >>
need some advice in creating a plug-in type architecture fro windows app
Posted by milsnips NO[at]SPAM gmail.com at 8/26/2007 3:36:32 PM
Hi there,
I would like some advice in how to go about creating a plug-in type
windows form architecture, this is what i had in mind:
a form similar to windows explorer with the grouped navigation items
on the left, each group in the left nav section will represent a plug-
in application wit... more >>
The background color of DataGridView looks incorrect after Alt+Tab, Alt+Tab
Posted by zlf at 8/25/2007 10:06:02 PM
Hello,
I just implement a custom control that extends from DataGridView, every cell
has different background. I found a problem, for now it seems to be erasing
background incorrectly after selecting a cell, when switch to different
application(hit Alt+Tab) and then once more to back. The back... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Winforms version of User.Identity.Name
Posted by Elmo Watson at 8/24/2007 4:40:09 PM
In Webforms, I can access the user's network login (windows authentication)
by:
User.Identity.Name
What is the Winforms way of doing this?
... more >>
Login Dialog
Posted by Amigaso at 8/23/2007 4:25:16 PM
I am new to C#, but not new in programming.
I am trying to add a Login form to a test Win forms application.
Somewhere in the internet I found a post suggesting using LoginDlg, I added
the code provided
LoginDlg ld = new LoginDlg();
ld.ShowDialog();
but I am getting... more >>
How can i find out if a control is databound
Posted by Martin P at 8/23/2007 2:44:50 PM
Hi all
Firstly, sincere apologies for cross posting this, I did post on the
DataBinding forum but the traffic there is very low so I'm not
confident of a reply.
Anyway, I'm trying to put together a method to loop through all
controls on a
form and see if any of them are databound.
For... more >>
Transparent Forms?
Posted by Howard Swope at 8/23/2007 2:40:50 PM
We recently converted our .Net 1.1 app over to 2.0 and now our transparent
forms are behaving differenctly. I was hoping someone might be able to shed
some light on this issue...
We have a windows form that is transparent. We set the background image to
be a gif image that contains a transp... more >>
submitting a form with a webbrowser control as the target
Posted by Doug Salomon at 8/23/2007 1:38:01 PM
I've come across a problem with the Webbrowser control that I am hoping some
of you folks might be able to help me with. FWIW, I am using VB.Net in Visual
Studio 2005.
On my company's website, we have a situation where a new window is opened
(in this case, we actually use ShowModalDialog to... more >>
Playing multiple sounds continuously and simultaneously
Posted by TheCuriousOne at 8/23/2007 12:58:06 PM
I need to play multiple sounds (.wav files) simutaneously in my windows
forms application. I have already taken a look at System.Media.SoundPlayer
class. I tried the following but it didn't work:
- Create two instances of SoundPlayer.
- Called PlayLooping on the first one to play fil... more >>
Application.Run() without parameters, form doesn't stay open.
Posted by Oleg Ogurok at 8/22/2007 9:47:53 PM
Hi there,
I need to start my Windows Forms application without showing the form
initially. Then at some point, the application will be signaled to
generate and display the user interface.
I'm trying to use Application.Run() without parameters. Since this
method doesn't return I start a separa... more >>
Windows Forms + System.Threading
Posted by jdkc4d at 8/22/2007 5:46:00 PM
I am working on a program where I need 2 things to happen at the same time.
The form needs to load and at the same time I want to start a timer which
after a certain amount of time kills the entire application. The user has to
click submit on the form within 2 minutes, or else I want somethi... more >>
Windows Forms Designer Error
Posted by PHether at 8/22/2007 10:12:04 AM
I just recently converted a VB 2003 project to VB 2005.
The project compiles and runs fine but whenever I try to view any forms in
the designer I get a "Object instance not set" error.
If I create a new Form I can view it fine though, the issues is only with
pre-existing forms.
I also conve... more >>
Control.Invoke and anonymous methods
Posted by Lee Crabtree at 8/22/2007 9:47:07 AM
I'm a little confused about using Control.Invoke with an anonymous
method. It seems like the compiler is able to generate whatever glue
code is necessary to turn an anonymous method into a delegate type in
several situations, such as starting a thread:
Thread workerThread = new Thread(dele... more >>
Smart client in Citrix environment
Posted by AutoTrackerPlus at 8/22/2007 9:40:26 AM
I'm trying to install a .net 2.0 smart-client application that uses the
"click once" deployment method in a Citrix environment.
If we log in as the admin on Citrix, we are able to install the application,
but when we use a "normal" account that has very few privelages, we get the
following ... more >>
Check if an event is already handled
Posted by mj2736 NO[at]SPAM yahoo.com at 8/22/2007 8:22:40 AM
I created a windows form control that inherits from the standard .Net
DataGridView control, to which I've added custom functionality.
Instead of using the standard control in my applications, I use my
customized version. I have an event handler in the custom control for
the KeyDown event that si... more >>
Detecting when user clicks Red X button
Posted by ssg31415926 at 8/22/2007 4:23:36 AM
Is there anyway to detect when the user has clicked the red X button
to exit an application (as opposed to triggering some other event
which runs code which sends the Close() message to the form?
I know I can use the CloseReason property of FormClosingEventArgs but
that shows UserClosing wheth... more >>
How to show only Year using DayTimePicker in C#
Posted by Sandeep Singh at 8/22/2007 12:00:00 AM
Hi Everyone,
How to show only year on UI using VS DayTimePicker in C#.
Looking forward for your response.
Thanks
Sandy
... more >>
|