all groups > dotnet windows forms > june 2006 > threads for june 1 - 7, 2006
Filter by week: 1 2 3 4 5
"Global" objects
Posted by BobRoyAce at 6/7/2006 11:14:40 PM
I am new to .NET and am wondering how to accomplish having certain
global objects that could be referenced by other forms/user controls. I
have a main form on which I show various user controls depending on
which item the user clicks on in the NavBar on the left of the form.
Each user control ha... more >>
What is major difference between form and usercontrol?
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 6/7/2006 8:24:10 PM
Both of them are derived from Container Control Class.
But if I used a user control derived class, it cause a refreshment
problem, whereas everything was okay if used a form derived class.
I suspected user control had blocked some messages.
thx.
... more >>
Problem with MDI child form behavior
Posted by David Tilman at 6/7/2006 5:30:01 PM
I'm working on a C# program in Visual Studio 2003. The main form has a
treeview control on the left side, a splitter, and the right side of the
splitter has nothing and is used as the MDI client area. I have several MDI
child forms open (typically maximized) and can pick which child form has
... more >>
ClickOnce Double Install Prompt
Posted by Craig Grell at 6/7/2006 4:20:33 PM
I am trying to deploy an application using ClickOnce
The website appears to be correct. The user can open it in thier browser and
click on the install button
The user receives the Application Install - Security Warning prompt and can
click Install or Dont Install
The user clicks Install... more >>
.NET windows service does not autostart
Posted by Harv Hundal at 6/7/2006 4:16:01 PM
I have created a windows service in VS2005 .NET, which works well. The
service is set to "Automatic", however it does not autostart on bootup. The
eventlog shows the error "The service did not respond to the start or control
request in a timely fashion"
My service uses TCP/IP sockets, so I ... more >>
Is there a way to stop control events during the form load?
Posted by Eric at 6/7/2006 3:45:49 PM
I have a VB.NET app with a radio button that has check changed handler on
it, and the InitializeComponent() code sets the .checked value to true which
triggers the event handler. Is there a way to suspend event processing
until initialization is complete?
Thanks.
... more >>
BindingNavigator: does it have a 'Current Item Changed' type of event?
Posted by Marina Levit [MVP] at 6/7/2006 2:43:25 PM
I need to do something extra every time the position of what is the
'current' item changes. This could be the user clicking one of the buttons,
or typing in a new number
However, there doesn't seem to be an event that just says " the user
selected a different item from the navigator". In f... more >>
Active Directory Authentication in .NET2.0
Posted by suresh.csharp NO[at]SPAM gmail.com at 6/7/2006 2:22:50 PM
Hi,
I am trying to write Windows Form application in .NET 2.0, which
needs ActiveDirectory Authentication module integration. Can any one
point me to related links. Please suggest me what is the right way of
doing in .NET 2.0.
Thanks
Suresh Eddala
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
TreeView missing QueryContinue..Event
Posted by tb2000 at 6/7/2006 2:16:03 PM
I am trying to get a QueryContinueDragEvent per the MSDN tutorial on
Drag&Drop from a TreeView control.
My TreeView is at the same time source and destination (basically I am
trying to manually rearrange nodes). I try to abort the D&D when outside the
main form but I can not get the Query.. ... more >>
Suggestions on this problem? (List of controls / user controls)
Posted by Sam Martin at 6/7/2006 11:58:04 AM
Hi,
I have a problem where i need to show non-standardised information in a list
and would like to provide in place editing if possible.
for example
Line 1 A B C
Desc 1 3 5 6
Line 2 I II III IV
Desc 2 2 4 5 5
The numbers under thier respective headers are the... more >>
Need assistance with DSO
Posted by AMDRIT at 6/7/2006 11:56:10 AM
Hi gang, this is pretty critical to me. Any help you can provide is
appreciated.
I have a WebBrowser control placed on a form. I am not getting the same
results as I am in IE.
Here is the deal, I dynamically load the HTML into the WebBrowser control,
then I invoke a script that passes ... more >>
DataGridView non-focused selection appearance
Posted by Paul E at 6/7/2006 9:15:32 AM
I have two DataGridViews on a form. (I'm using .NET 2005)
When I run it, I can't tell which control has the focus because the
selection looks the same on both controls.
I'd like the selection appearance to work the way Windows Explorer does
where only one control has the regular blue selecti... more >>
MouseHover event during drag and drop operations
Posted by James at 6/7/2006 2:40:02 AM
Hi,
I am writing a classic, "Explorer"-like app in vb.net 2003 (dotnetfx1.1).
I have written code to handle the dragging and dropping of items from a
ListView on the right hand part of the form to a TreeView on the left part of
the form. When the user pauses over a node in the TreeView in... more >>
Gui thread, memory leak, and garbage collection
Posted by Bob at 6/7/2006 12:00:00 AM
Hi all,=20
I seem to be chewing up memory at a nasty rate when my app runs.
It has a polling loop and not surprisingly this is the part that keeps =
doing it.
I think I've located the line that is my main offender and its when I =
marshal to get back onto the GUI thread so I can update my con... more >>
Issues with multiple GUI threads (ó#, .NET 1.1)
Posted by Alexei Adadurov at 6/7/2006 12:00:00 AM
Hi!
I already posted this message in microsoft.public.dotnet.framework, but I
see almost no reaction, so I decided to re-post it to others newsgroups,
too. I just wonder if anybody has faced this problem before and could help
to troubleshoot it. Following is my original message.
Thanks f... more >>
Good "pattern" for data entry forms...
Posted by broy NO[at]SPAM omegasoftwareinc.com at 6/6/2006 9:28:22 PM
I am new to .NET Windows Forms but am currently using Visual Studio
2005 primarily with VB.NET. I am in the process of creating an
application that is going to have several different forms that allow
for editing records in a table in my SQL Server 2005 database, each
form serving a different pur... more >>
Show method of Panel is very slow
Posted by illegal.prime NO[at]SPAM gmail.com at 6/6/2006 7:16:02 PM
Hi all, I'm looking at trying to improve the performance of showing a
bunch of controls on a panel.
I have a class that extends Panel. In that class, I do the following:
this.SuspendLayout();
this.Hide();
//add controls to "this"
AddControls();
this.ResumeLayout();
this.Show();
I hav... more >>
Found GDI leak in TreeView (anyone know about it?)
Posted by Greg at 6/6/2006 11:37:02 AM
I have found what seems to be a leak of GDI resources in the .NET
TreeView. I'm not entirely sure it's the .NET code or the underlying
OS Common control but here's the skinny:
If you use the Checkboxes property and set it to true on a TreeView it
will leak 1 or 2 bitmaps and 2 memDCs every ti... more >>
Embedding a resource at runtime
Posted by Dave Brown at 6/6/2006 11:31:23 AM
Hi there. Does anyone know if it's possible to embed a new resource into an
assembly at runtime as well as update an existing (assembly) resource. Any
assistance would be appreciated. Thanks.
... more >>
Smart Client Fails When Run On Machine With .NET 2.0
Posted by Kevin at 6/6/2006 10:34:33 AM
I have a Smart Client application that was written in .NET 1.1 long
before .NET 2.0 ever came out. It works great. It uses web services
and because we have many development environments, it dynamically gets
the base Url to construct the Url for the web services by simply
calling Application.Ex... more >>
ClickOnce Files
Posted by Chuck P at 6/6/2006 10:03:37 AM
I published a clickonce application and a couple new versions.
I was wondering what is the purpose of the
WinClickOnce_1_0_0_0.application
WinClickOnce_1_0_0_1.application
files on the web server is.
It looks like only the
WinClickOnce.application
file is used (maybe for rollback of... more >>
How to change the borderColor for a panel control
Posted by sajin at 6/6/2006 3:01:11 AM
Hi,
I am using VB .net 2005 to create my windows form application , i have
a panel control in my main form , i want to change the border color of
the panel to red color , could any one help me to resolve this problem
Thanks in advance
Sajin
... more >>
Cant determine Valid Ordering
Posted by Jared at 6/6/2006 12:00:00 AM
Hi,
I keep getting my VS installations stuck, it this is on a new system that
hasn't had any beta installed.
Message is like "Cant Determine valid ordering"
And the unistall tool doesn't work for the RTM
... more >>
ClickOnce and Firefox
Posted by Chuck P at 6/5/2006 2:22:26 PM
How can I get ClickOnce to work with a browser other than IE?
I was reading
http://blogs.msdn.com/saurabh/archive/2006/03/02/541988.aspx
But couldn't figure out how to "all you need to do is generate the
shortcut file " How do I generate the shortcut file?... more >>
Saving settings to app.config using C#?
Posted by Jeff Richardson at 6/5/2006 2:00:24 PM
Hi,
How do I save updated values for Application Settings defined with an
Application scope? I created the Application Settings using the Project
Properties dialog in VS2005.
I am trying to create a dialog box where users can save their preferences.
The dialog reads values from the app.co... more >>
CancelButton & ShowDialog
Posted by emorgoch.public NO[at]SPAM gmail.com at 6/5/2006 11:59:10 AM
Hello there,
I have a form that gets shown using the ShowDialog() method. This form
then has it's accept and cancel button properties set. If hte user hits
the cancel button / hits ESC, the form is closed and they're returned
to the parent form. If the use then clicks the accept button / hits
... more >>
ClickOnce and installaion icon
Posted by Julie Lerman at 6/5/2006 9:17:25 AM
When a ClickOnce app is being installed there is a window that says
"Installing" which has the application name, an icon (defult square windows
icon) and a progress bar. Our app does have a custom icon set,but it doesn't
get used in this windows. I have looked all over, even checking into cust... more >>
Dataviewgrid horizontal scrollbar not appearing?
Posted by james at 6/5/2006 12:00:00 AM
I have the scrollbars property of my grid set to "both". When I have lots of
records, the vertical scroll appears ok, but if the user resizes columns
wider so they go off the side of the form, the horizontal scrollbar never
appears.
Any clues what I am doing wrong?
... more >>
General Discussion About Successfully Implementing WinForms Apps
Posted by Robert W. at 6/3/2006 3:30:01 PM
I'd like to initiate a general discussion about implementing WinForms apps on
computers that one may never have access to.
I've initiated an Alpha version of a WinForms app. On all of my Windows
test machines it runs fine. On the machines of some of my Alpha testers, it
run fines. But so... more >>
Track Bar
Posted by Ben at 6/3/2006 11:43:01 AM
Hi,
I am trying to create a control that is similar in functionality to the
TrackBar control. I cannot figure out which event to use for sliding the
image that serves as a marker over the line. I have tried the MouseMove and
MouseDown without success.
Can anyone point me in the right dir... more >>
advanced color dialog
Posted by sajin at 6/3/2006 12:38:29 AM
Hi all,
I am using vb .net 2005 to implement my application , i am using a
color dialog box in my code , basically when it loads it shows "basic
colors" , "custom colors" and link button "define custom colors" . but
when i click define custom colors it shows the same thing above
mentioned as ... more >>
datagridview column sort question
Posted by JvCoach23 at 6/2/2006 6:02:02 PM
I'm using a windows form in Vb.net 2.0.
I have a datagridview that is populated with data. It is for viewing
only, i have turned of allowing edits, adding, deleteing and column
reorg. when i click on the datagridview and go to edit columns and
select a column and look at the SortMode, it's s... more >>
Form resource files
Posted by Dave Brown at 6/2/2006 1:08:42 PM
Hi there,
Given an arbitrary ".resx" file (not ."resources"), does anybody know how I
can identify that this file actually contains a Windows form (in code). Once
identified, I then want to collect information about the form and all its
controls. Presumably I would want to read this file in... more >>
Design time errors
Posted by Clive Dixon at 6/2/2006 12:28:10 PM
I'm looking for any information on precisely what the IDE does when opening
a form in design mode. I'm pulling my hair out trying to fix some bizarre
design-time errors screwing up some forms, and it would help if I knew
precisely how the IDE creates and initializes the form and what methods are
... more >>
BackgroundWorker and multiple Threads
Posted by Roger Crawfis at 6/2/2006 11:40:35 AM
I am using the new BackgroundWorker for an I/O intensive application and it
works great!!!
I have a few questions though that hopefully someone can answer. I know this
is possible with other components, but am curious as to what
BackgroundWorker can do.
1) All the documentation indicat... more >>
"Re" Configure DataSet with Wizard
Posted by michael at 6/2/2006 9:40:02 AM
Once you have created a dataset in the Data Sources tab, there does not seem
to be a way to change the Data Connection. When you open the Configure
DataSet Wizard for the second time you begin on the second screen (the first
is the "Choose Your Data Connection" which is not enabled). Subsequen... more >>
Annoying form flickering problem
Posted by Maya at 6/2/2006 3:34:08 AM
Hi all,
We have a windows forms application with different controls used
inside, each control has several input items such as textboxes and some
treeviews.. etc.
We have been trying to eliminate flickering issues when loading
different controls or switching to different views with no luck, ... more >>
ShowDialog and Load Event
Posted by dchman at 6/1/2006 4:20:01 PM
I am trying to troubleshoot an application I inherited. On a form, there is
a button, that when clicked loads a user control with ShowDialog;
btn_Click(object sender, System.EventArgs e)
{
ucForm1 UCForm1 = new ucForm1();
UCForm1.ShowDialog(this.ParentForm);
.....
}
in the ucForm... more >>
Signing the manifest with pfx file
Posted by Sajan NO[at]SPAM community.nospam at 6/1/2006 3:38:03 PM
Hello,
I have the Microsoft Authenticode certificates (PKCS #7 Certificates, .spc
and .pvk files) acquired from Verisign. How do I use this certificates to
Sign the manifest for ClickOnce deployment. IDE accepts only .pfx files.
Importing in Internet Explorer and exporting back doesn't seem like... more >>
Assembly Resource
Posted by Brady A. Williams at 6/1/2006 2:23:05 PM
Something has mysteriously :) happened to my resource file and now in =
InitializeComponent() of my form, it is throwing a =
MissingManifestResourceException when it attempts to retrieve an =
ImageListStreamer from the ResourceManager (code snippet below). I =
opened the .resx file and verified... more >>
Microsoft Web Browser
Posted by Neelay at 6/1/2006 2:20:01 PM
Hi,
I am using VS .NET 2003 and I have a .NET Windows Forms application in C++
..Net.
I want to add a web browser control on one of the forms. This is how I am
currently doing it:
1. Added the COM component Microsoft web browser to the form. This
actually generate a couple of wr... more >>
Panel Problem
Posted by lodhaakhil85 NO[at]SPAM gmail.com at 6/1/2006 2:14:49 PM
Hi
I'm a newbie to C# and GDI+.I am writing an application that will
display some strings from a file on a panel. There are a few of
problems I am facing :
1.How do make the panel re-adjust its size when maximizing the form
window ??
2. I'm drawing the strings on the panel. if the number o... more >>
CAS permissions problem
Posted by Barry Gilbert at 6/1/2006 12:46:02 PM
I have a line of code that looks at My.Application.Info.Version. When I hit
this line in the debugger, it passes just fine. After I publish the app, it
fails when run, saying I need FileIOPermission permissions. However, I've
explicitly included FileIoPermission in the CAS settings. Also, I ha... more >>
Redraws and flickering
Posted by paulo at 6/1/2006 12:39:39 PM
Hi,
I'm having some trouble with our .NET 2.0 Windows Forms application
regarding screen transitions. Suppose we have a form with some big and
crowded user control on it. Then we free this control and load another
one of the same size. This process causes a lot of flicker and redraw on
th... more >>
Sort indicator on label
Posted by Rob Oldfield at 6/1/2006 12:36:01 PM
Is there any way to get the little sort indicator (the up/down arrow that is
visible by the column header in Explorer when you sort by a column) on a
standard label?
Note that I'm not using a datagrid - I know that they show on those by
default. I'm using a data repeater control from a thi... more >>
Writing BLOBs (through C#)
Posted by Marc Gravell at 6/1/2006 9:03:58 AM
Following up on a question somebody asked a day-or-so ago...
When /reading/ BLOBs in C# I can use sequential access and GetBytes(); fine,
sorted.
However, is there a similar equivalent for /writing/ BLOBs? *Without* having
to buffer the entire thing into a byte[] to set into param.Value? O... more >>
Cannot set DataGrid RowHeaderWidth to less than 30
Posted by Scott at 6/1/2006 6:21:01 AM
I have seen this question asked elsewhere, but have never found an answer.
I'm adding a form to my app that has two datagrids - master and detail. The
dataset consists of two tables and a relation between them - parent and child
tables. One datagrid is bound to the parent table and the othe... more >>
Call function from second form to base form
Posted by GeertL at 6/1/2006 5:14:23 AM
Hi,
I think this is a very common problem :
I have a main form with a listview. From this form i call a second form
to add items to this list. (input form)
Private Sub cmdOpmerkingToevoegen_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmdOpmerkingToevoegen.Cl... more >>
ArrayList and PropertyGrid
Posted by Slowe at 6/1/2006 2:48:02 AM
I have a class which contains an arraylist of strings
I use this with a property grid to allow me to edit various parameters,
How every although it shows all the strings they aren't editable, is there
an easy way of making them editable?
... more >>
|