all groups > dotnet windows forms > april 2007 > threads for april 8 - 14, 2007
Filter by week: 1 2 3 4 5
Adding an event handler to a dynamically populated control
Posted by Elmo Watson at 4/14/2007 6:20:55 PM
I've got a subroutine that can do something when the image in the Picturebox
is doubleclicked, that works just fine
Private Sub pb1_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles pb1.DoubleClick
ShowImage(pb1)
End Sub
Private Sub ShowImage(ByVal ctrl As Contro... more >>
Datagridview help
Posted by Bill Angus at 4/14/2007 2:03:19 PM
I'm looking for help with datagridview. I have a form that works with a
Databale bound to a datagridview. However I only want to display and edit a
few colums (in a different order than they appear in the underlying
datatable).
When I set autogeneratecolumns to false, as in the example below, ... more >>
This code compiles/runs but breaks designer...
Posted by Charlie NO[at]SPAM CBFC at 4/14/2007 11:03:32 AM
Hi:
This code compiles and runs fine, but I get this error when try to open a
form in WinForm designer. Commenting it out fixes problem. Weird!
"Object reference not set to an instance of an object.
at RepairShop.DataService.get_ConnectionString() in C:\My
Projects\RepairShop\DataServi... more >>
minimize window problem
Posted by SushiSean at 4/13/2007 5:20:02 PM
ok. I use VS2005 and framework 2
i have some winform and in Form_Load event i try make this.Hide()
private void Form1_Load(object sender, EventArgs e)
{
bool logged = AutoLogin();
if (logged)
{
this.Hide();
}
}
But this doesn'... more >>
Graphics dpi not correct
Posted by MarcG at 4/13/2007 11:50:02 AM
I am in the load event of a user control. I get its Graphics with
this.CreateGraphics()
The DpiX and DpiY are both always 96.0 This does not vary, regardless of the
actual resolution of the screen. I have tested the value in code that is
executed after the load event, and the value is the s... more >>
Can't get reference to ConfigurationManager
Posted by Charlie NO[at]SPAM CBFC at 4/13/2007 9:01:17 AM
Hi:
How do you access ConfigurationManager? In the object browser it's listed
under System.Configuration, but I can't get to it using
System.Configuration.ConfigurationManager. Need to read connection strings
from an app.config file.
Thanks,
Charlie
... more >>
Undo, Redo, Cut, Copy & Paste
Posted by Charlie NO[at]SPAM CBFC at 4/13/2007 7:49:44 AM
Hi:
How do you implement Undo, Redo, Cut, Copy and Paste functionality within a
WinForm menu? Is there a command or do you have to write it custom? Also,
when doing ctrl+x (cut command) in a WinForm textbox, text is not cut.
Would like to add this functionality to my application.
Thank... more >>
Problems with BackGroundWorker
Posted by CH at 4/13/2007 1:53:42 AM
Hy,
I have a backgroundworker doing some work when the user presses a
button, the problem is when I quickly start and stop the
backgroundworker, after 3-4 starts the DoWork event doesn't fire
anymore.
What usualy happends is this:
1. start the worker
2. immediately stop the worker (everything... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to associate a menu item with a toolbarbutton?
Posted by supermonkey at 4/12/2007 10:20:53 PM
As we all known, a menuItem often has a corresponding toolbar button in a
windows form program.
I want to associate a menuItem with corresponding toobarbutton which has the
same action with it. So that when I check a menuItem, the toolbarbutton will
also looks like "pressed".
In MFC, we cal... more >>
Is it possible to set a TextRenderingHint for an entire appplication?
Posted by Keith at 4/12/2007 4:31:07 PM
Hello,
I would like to be able to have my app use Clear Type (or at least
antialiased) text rendering. Is there a way to enable this for an entire
application? I don't see any properties that allow for setting a
TextRenderingHint on an individual control (Label for example), but since
t... more >>
How to capture my form
Posted by Gregory Khra at 4/12/2007 12:52:03 PM
I am developing Windows Forms application in C# using VS 2005. The
application draws some shapes on the panel. I need to change color intensity
on pixel-by-pixel basis (to compensate for monitor flaws). It appears that
the most reasonable way is to capture the image to bitmap, update the bitma... more >>
How to capture keystroke
Posted by Larry Smith at 4/12/2007 10:51:21 AM
(Sorry for multi-posting this in "microsoft.public.dotnet.languages.csharp")
Hi there,
Can someone enlighten me on how to trap a keystroke in my "PropertyGrid"
override. I see functions or properrites at the control or form level
called:
OnKeyDown
OnKeyPress
OnKeyUp
OnPreviewKeyDown
P... more >>
(under Vista) program.exe has stopped working
Posted by gmb at 4/12/2007 12:10:19 AM
Hello,
Whenever I close my program, whether it is closed by executing
this->Close(); or window's close button
I do get this window informing that some "problem cause the program to stop
working correctly".
I tried running .exe with compatibility options and as administrator.
Compiled under V... more >>
Remove double quotes
Posted by Jared at 4/12/2007 12:00:00 AM
What the hell is going on here?
Dim s As String
s = "ja""red"
Trace.WriteLine(s.Replace("""","")
... more >>
Grabbing window messages
Posted by Darren Mar-Elia at 4/11/2007 10:49:09 PM
I've got a WinForms app. Essentially all this app is is a notification try
icon with an optional configuration form. I am trying to capture the
WM_SETTINGCHANGE window message coming to my app. Since the app has no form,
I'm doing this by adding a MessageFilter to the form. In my MessageFilter... more >>
user control hell (reverse migrating...)
Posted by Ariel at 4/11/2007 10:38:02 PM
Hi.
I bought a user control for .Net 2005 from a software company.
They say there is no way to use it in .Net 2003.
I can install 2.0 Framework, but the usage must be inside 2003.
How can this be done? I understood there was some way to wrap around it, and
create a new user control.
Tha... more >>
How many controls?
Posted by Darren Gulliver at 4/11/2007 6:14:24 PM
Hi,
Is there a limitation on how many controls can be displayed on a windows
form?
Currently I'm still using VB6 of which only 255 controls are allowed on a
form.
My company is looking to go over to .net for support reseasons.
Cheers
Darren
... more >>
Flash
Posted by VJ at 4/11/2007 5:10:38 PM
The flash that is played on HTML, can I use it embedded in a WindowsForm,
and also work with it as in a Webpage. Please provide any links to materials
that we can use
VJ
... more >>
SmartClient - ASP.NET Issue
Posted by Mike at 4/11/2007 6:02:20 AM
Greetings, I have an aspx page where on it is a link that calls my
smartclient (a windows form) that opens up. When the user is done in
the form, he or she hits a button that saves data and closes the
form. I want the smartclient to call the opened browser (IE6 and
maybe 7 down the line) and r... more >>
DataGridViewComboBoxColumn, selecting items in dropdownlist
Posted by Coen at 4/11/2007 4:08:03 AM
Hi, I'm using in a DataGridView the DataGridViewComboBoxColumn
(VS2005-VB.NET). My problem: selecting items in the dropdownlist don't
behave like I want. Example: the dgv-dropdownlist shows: "Red, red, Green,
green, Black, black". Now the user selects the 'green' item. Then, first
'green' b... more >>
Problem with class inherited from DataGridView (VS-2005)
Posted by uncle.serge NO[at]SPAM gmail.com at 4/11/2007 2:19:41 AM
In my app's form there are 8 instances of the same (functionally same)
grid which should handle data of URL type (same 3 columns, same
validations, same data classes, same visual behavior). Instead of
recreating in VS Designer this grid 8 times, I wrote a class UrlGrid
which inherits from standa... more >>
how to select a hilighted row from the listview.
Posted by shahla.saeed NO[at]SPAM gmail.com at 4/11/2007 1:00:08 AM
hi,
plz help me out how to select a hilighted row from the listview.
listView1.Items[i].Selected=true. does not solve my prblem bcoz "i"
is unkown to me. what i need is that user can select any row frm the
listview and from that selected row i want to retrive its first two
coloums.(both coloum... more >>
TextBox with highlighted words
Posted by Paul E Collins at 4/10/2007 11:47:21 PM
I'd like to highlight the current word as the user moves through a
TextBox. I don't mean *select* it, but give it a distinctive
background colour.
The code seems simple enough: whenever the caret moves, search
backwards and forwards in the text to find the next space characters
and highli... more >>
Implementing Drag and Drop in a drawing program in C#
Posted by jaffar.kazi NO[at]SPAM gmail.com at 4/10/2007 11:13:05 PM
Hi.
I'm implementing a drawing like program. The functionality I want is
something like this:
I have a drawing area. When I draw something on it, I have the ability
to move it around.
However, if I move it OUTSIDE the drawing area, a new drawing area
should be created and the drawing should ... more >>
Switching to another form
Posted by John. S. at 4/10/2007 4:22:34 PM
Hi,
I've created two forms at design time: Form1 and Form2.
Form1 is the main form.
I'd like to switch to Form2 if a button is clicked on Form1.
What is the proper way to accomplish that?
I know the Show() and ShowDialog() functions but don't
know how to use them.
Do I need to add some - #inc... more >>
Embedding Windows Media in Windows Forms App
Posted by Alex Maghen at 4/10/2007 9:54:01 AM
Hi. I want to embed a Windows Media control in a Windows Forms form but I'm a
little confused about the right way to do it. I want to set it up so that it
will use the version of Windows Media that the user has on his/her computer,
rather than needing to include the entire Windows Media packag... more >>
Funny CheckBox
Posted by Marius Horak at 4/10/2007 6:28:32 AM
A small UserControl, just 5 TextBoxes and two CheckBoxes.
Design mode
AutoSize = False
CheckAlign = MiddleLeft
FlatStyle = Flat
RightToLeft = Yes
Size = 128, 20
Text = VIP (Holding Bay)
TextAlign = MiddleLeft
But in Runtime mode the Text is "(VIP (Holding Bay" (excluding quotes).
And... more >>
Not enough storage is available to process this command
Posted by Spence at 4/9/2007 8:42:02 PM
at System.Windows.Forms.Form.UpdateLayered()
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Syst... more >>
Dynamicly loading displaying different controls on the form
Posted by WebMatrix at 4/9/2007 6:00:02 PM
I have 2 forms that I need to merge into one form. When user clicks button A,
controls (textboxes, dropdowns, etc) need to fill a form area, when user
clicks button B different controls should be displayed.
What's the best way of doing?
I put 2 panels that contain different sets of contro... more >>
ClickOnce : ApplicationURI is null, but Allow URL parameters to be passed to application is enabled....
Posted by Joe at 4/9/2007 12:00:00 AM
Hello,
I am trying to access the ApplicationURI property, but it seems that no
matter what I do, it is null. I have enabled the "Allow URL parameters to
be passed to application", but with no effect.
My test program is really simple:
if (ApplicationDeployment.IsNetworkDeployed) {
... more >>
|