all groups > dotnet windows forms > june 2004
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Minimize the main form to System Tray at start up
Posted by Dotnetjunky at 6/30/2004 11:00:01 PM
Hi,
I know how to make my form minimize to System Tray when users press the MinimizeBox (using the NotifyIcon control). But how can I do that at application startup ? What I want to do is similar to instant messaging programs (MSN, AIM, ...) whereas the application starts at Windows startup and a... more >>
ListBox
Posted by Jake at 6/30/2004 7:17:01 PM
I've got a ListBox control with SelectionMode = MultiExtended. How do I unselect all items within the code? The top item is highlighted on screen load, and I don't want it highlighted.
Your help is appreciated,
Jake... more >>
CausesValidation on Cancel button
Posted by jester at 6/30/2004 7:04:01 PM
I have code in Validating events of my textboxes w/c do usual validation and e.Cancel = True when applicable. My problem is with the Cancel button (w/c has CausesValidation = False). If I close the form inside the Cancel button code (i.e., Me.Close), the Validating events of the textboxes fire, pr... more >>
Listview scroll bar problem
Posted by velolewis at 6/30/2004 6:15:02 PM
I have an unusal problem with getting the vertical scroll bars to work correctly when I add more items to a listview than can be displayed in client area. It fills all the available client area and then starts wrapping from the beginning again. The scroll bar does show but there is nothing to scroll... more >>
XP-Style border for picturebox
Posted by Marco at 6/30/2004 5:05:30 PM
Hi to All,
Is it possibile to use an XP-Style border for a picturebox? I am referring
to the border that, under XP, listboxes and textboxes have (i.e. a single
blue line, if you use the default theme).
I have tried many ways, with no luck!
Can you please help?
Thanks.
Marco
... more >>
LockWindowUpdate in .NET
Posted by Mike at 6/30/2004 4:02:01 PM
Hi! I was curious if there was an equivalent of LockWindowUpdate() in managed code ?
Please let me know.
Many Thanks in Advance,
--Mike ... more >>
ActiveForm property
Posted by Elmo Watson at 6/30/2004 3:00:45 PM
in VB6, I'd have a MDI form (frmMain), with a midi CHild - -
then, I'd have dialogs that I run to change certain items on the rtb
(txtEdit) of the Active MDI child....
to do this, I'd say something like:
frmMain.ActiveForm.txtEdit.Seltext = "whatever"
in DotNet - - even though I have frmMai... more >>
Form Keypreview is not working when the focus is on combobox
Posted by Ramana at 6/30/2004 2:45:43 PM
Hi,
We are handling some keys in the form to perform some form based actions.
for example Ctlr+s will save the data on the form which is equivalent to
pressing the save button. But when the focus is on a combobox, then we are
not able to capture the keys (i.e form's keypdown/up events are not be... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Mdi question
Posted by BMax at 6/30/2004 12:52:54 PM
Hello
I created a form that is Mdi container another for child and a dialog form
which is suppose to open that child inside the container.
so i have :
1- main form (Mdi Container)
2- child form (Mdi child)
3- Dialg form (something like a menu to open the childes inside main form)
lets say d... more >>
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet)
Posted by Alex Stevens at 6/30/2004 11:09:34 AM
Hi All,
I have implemented my own toolbar on a form which houses the crystal reprot
viewer.
I would like to have a combobox to allow the user to change the zoom level
to say 25 / 50 / 75 / 100 / 200%
However the crystal report viewer only seems to allow two levels of zoom,
using the .Zoom ... more >>
Forms in Class Libaries
Posted by Wayne at 6/30/2004 9:35:55 AM
I have a class lib, that creates and shows a form. When the main app is
minimized the form from the class lib isn't. Also when pressing Alt+Tab the
class lib form shows in the window selection.
How do I make it minimize when the application is minimized and not show in
the alt+tab window?
T... more >>
MDI Form?
Posted by Larry Dodd at 6/30/2004 9:17:44 AM
I would like to create an application that has a TreeView docked on the Left
side of the form and based on what the user clicks in the Treeview have
another form use the remaining portion of the screen to display itself.
Currently I am setting the Parent property of the form to the MDI Parent and... more >>
Assign Events to dynamically generated TextBox
Posted by Zardoz at 6/30/2004 3:10:01 AM
Hi to all,
I am having a problem while trying to assign an event to a generated textbox control. This textbox is generated dynamically, its a variable which name is "txtCamp", for this variable I generate a certain number of instances in the layout screen in some differents positions, t... more >>
Express Version Kills Current Version
Posted by Lloyd Sheen at 6/29/2004 8:01:57 PM
Never mind what they tell you. Just installed 2.0 beta and no more 1.1.
Tried to run simple ASP app and doesn't work anymore. Ran aspnet_regiss -i
but to no avail. So anyone who tells you they run side by side needs to be
put in the stocks with the spammers.
No I can only hope that a syste... more >>
How to cancel ComboBox choice..
Posted by Pawel Janik at 6/29/2004 4:25:26 PM
Hello.
I'm currently writting a few dialogs, and stopped on canceling user choice.
Lets say, that i have ComboBox (working as a DropDownList). How to cancel
user selection, when his choice is invalid?
I'll try to use Validating event, and set Cancel property of CancelEventArgs
event argum... more >>
Dynamically create winforms
Posted by Walter Van Hecke at 6/29/2004 4:21:48 PM
Hi,
I've been looking for a good article or sample code to dynamically create
winforms,
I have to make a program that allows the user to add different products each
product has different
properties and values the only thing they in common is that they have a
price and a name.
Is it possib... more >>
Automatic build process + automatic NuNit (2 in 1 solution)
Posted by gicio NO[at]SPAM gmx.de at 6/29/2004 3:56:19 PM
Hi!
Can someone tell me can I use MsBuild with NuNit today?
Or is MsBuild only available for MSDN subscriptions ?
Or what do you for an automatic build process + automatic NuNit testing.
I looking for a 2 in 1 solution (build + NuNit)
gicio
... more >>
panel scroll
Posted by e-mid at 6/29/2004 3:35:34 PM
while i keep the scroll bar with mouse, and move it up or down, panel does
not scroll meanwhile.
is there property of panel for this?
... more >>
Modal & modeless forms
Posted by Yoav Ben-Yosef at 6/29/2004 3:02:27 PM
Hello,
Is it possible to open a modeless from from a modal dialog?
TIA
... more >>
What does MVP means?
Posted by Altramagnus at 6/29/2004 1:35:56 PM
Hi I'm new to microsoft newsgroups.
I see many post with the sender MVP
what does MVP mean?
... more >>
application setup package with .net redist package within
Posted by Sérgio_Almeida at 6/29/2004 12:53:40 PM
greetings
i'm creating a setup project for my application. so far so good. VS.NET
creates the MSI for my application. but what I want is to also
distribute the dotnetfx.exe package to install automatically the .NET
Framework on destination machine, if this machine does not have .NET
Frame... more >>
Controls Problem
Posted by Gigaworld at 6/29/2004 11:52:53 AM
I have this PROBLEM with controls collection:
The old VB 6.0 syntax was:
MyStr = me.controls("button1").text
VB .NET doesn't function in this way, because in .NET
I must know the index of the control! I need to use the
STRING NAME of the control to address the object, because
my target i... more >>
Audio control
Posted by VJ at 6/29/2004 11:50:38 AM
I am looking for a control or Library that I can use develop a control, that
will help me Record, Playback Audio .. just basic.. nothing fancy or
completed..
Thanks
Vijay
... more >>
Minimise form when the close [X] button is clicked
Posted by John O'Neill at 6/29/2004 10:41:07 AM
Hi
Instead of closing the form when the close button [X] is clicked, I want the
form to minimise. Does anyone know how to do this (using C#)?
Thanks for any help
John
... more >>
Upload Files to Web Server From Windows App
Posted by Matt Tapia at 6/29/2004 9:14:46 AM
I was wondering if it was possible in a windows app form to select a file
from my local desktop and post it to a web server using a web service or the
like. Any clues, or am I better off creating a web form for them to upload
the file?
Thanks!
... more >>
Strongly-typed CopyTo() implementation
Posted by pdavis68 NO[at]SPAM hotmail.com at 6/29/2004 8:05:40 AM
I have a collectiond derived from NameObjectCollectionBase. FxCop is
complaining that I need to implement a strongly typed CopyTo(MyObjectType,
int)
How do I do this? I can't seem to find any implementations of CopyTo() that
don't rely on Array.Copy or some other internal .NET method. Unfortun... more >>
WMI MSNdis_80211_ReceivedSignalStrength
Posted by Michael (Marine.ie) at 6/29/2004 6:14:02 AM
Hi,
I am trying to query a WiFi card to get signal strength. I am looking at WMI as a solution however I cannot access the MSNdis_80211_ReceivedSignalStrength namespace on windows 2000 professional (SP3) machine. I have downloaded the WMI tools and cannot see this namespace in the studion (unde... more >>
DataGrid on DataViewManager, no AllowNew?
Posted by waltborders NO[at]SPAM yahoo.com at 6/29/2004 5:54:13 AM
Hi,
I'm using a DataViewManager to sort the children of parent-child
nested tables in a DataSet. The DataViewManager and DataGrid work
very well doing every thing that is needed, except...
The DataGrid needs to:
AllowDelete = false;
AllowNew = false;
AllowEdit = false;
On the bas... more >>
email
Posted by RitaK at 6/29/2004 12:27:01 AM
I'm new to windos programming using vb.net. I would like to send a simple email message from my app for registration purposes. How can I do this without knowing what mail program the user has on their machine?
Any pointers would be appreciated.... more >>
Cannot drag Windows.Forms controls onto designer
Posted by Homer at 6/28/2004 9:43:01 PM
Hi,
I am using Whidbey Beta 2 (May) and I cannot drag any Windows.Forms controls onto the designer it tells me that "Make sure the assembly that contains the toolbox item is correctly installed..."
If I open a existing project with controls it compiles and runs. The problem is only with t... more >>
Strange behavior for listboxes and datagrids on Win98
Posted by Ron Fluegge at 6/28/2004 9:30:39 PM
I have a winforms app that has a number of listboxes and a datagrid that
work just fine 99.99% of the time.
However, when it is run on Windows 98, the listboxes display as if they each
"collapsed" vertically (the width is fine but it displays as just a "line")
.... the first item in the collec... more >>
databinding in winforms to listbox
Posted by Martin at 6/28/2004 8:47:15 PM
Hi,
I have been working with asp.net and have decieded to make the transition to
winforms.
At present the difference in databinding between the two enviroments is
throwing me.
I am trying to databind a dataset to a listbox control. I have the following
code. The dataset is not a strongly t... more >>
Window messages
Posted by Berndt Johansson at 6/28/2004 8:09:19 PM
Hi
I just stumbled into a strange problem that I don't understand. My launcher
application starts an executable after the load event. Actually I have the
Load event handler set a timer for 200ms and the timer's Tick handler will
do some work and then eventually start the application using ... more >>
How to Invoke when form is hidden?
Posted by altramagnus NO[at]SPAM hotmail.com at 6/28/2004 7:42:56 PM
I have a main thread which creates all my forms.
All my forms are hidden initially.
After that, I have some worker threads which will call BeginInvoke
to update and show the necessary forms.
However, it throws an exception saying that a handle is needed to be
created in order to use Invoke or B... more >>
datagrid
Posted by e-mid at 6/28/2004 6:00:16 PM
What is wrong here?
sometimes, it catches clicks but usually do not.
private void dataGrid1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
Point pt = new Point(e.X,e.X);
DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
if(hti.Type == DataGrid.HitTestType.Ce... more >>
Textbox Formatting???
Posted by Darryn Ross at 6/28/2004 5:05:37 PM
Hi,
I am trying to format the information entered into a textbox on one of my
forms.. i would like to make the information look like this..
(XX) XXXX XXXX - so if the typed in 0755123456 it would look like this (07)
5512 3456
I am not very familiar with the masking concept ( i think this ... more >>
TreeNodes
Posted by bobbyballgame at 6/28/2004 2:49:20 PM
Just started with the Windows Fomrm programming and I am running into
somethings that I feel should be done in a better way than I am now doing
them.
TreeNodes: Is there an easy way to get the level of the node?
I set up a hierarchy which is strict - something on the first level will be
a gen... more >>
Microsoft.Win32.SystemEvents.WindowThreadProc eating CPU
Posted by BlueJay at 6/28/2004 2:22:01 PM
Recently, we upgraded a .NET Windows client application to use the 1.1 Framework, along with some other changes.
If we minimize the application, and let it sit idle, after an hour, the CPU utilization jumps from 0% to 100%, and continues to consume 100% indefinitely. Using the Windows task manag... more >>
newbie: newline in Label
Posted by steve at 6/28/2004 10:42:16 AM
Hi,
two questions:
1) How can i have a multiline Label?
2) In VB.Net command buttons were replaced by buttons ? (trying to follow an
intro tutorial "transformed" from VB
TIA
... more >>
Can a WinForm render itself on a printer?
Posted by Jack at 6/28/2004 9:04:51 AM
We are moving some of our existing mainframe CICS screens to WinForms. The
user is used to being able to print these screens in order to capture
information and is asking for a similar capability with the WinForm
application.
Is there some way to send a WinForm to the printer?
... more >>
How do I automatically show dialog on form Application.Run
Posted by Richard Forss at 6/28/2004 6:19:01 AM
I wish to display a dialog form after the main form has started and display. Where is the logical place to put my display dialog code to show the my "Login" dialog after the main form has been display.
Thanks.... more >>
Form, ContainerControl and IContainer
Posted by netronproject NO[at]SPAM hotmail.com at 6/28/2004 5:39:25 AM
Why is it that the Form class does not implement the IContainer
interface? It inherits from ContainerControl but components are
attached to the 'components' field via the generated
private System.ComponentModel.Container components = null;
statement. Said differently, when should I implement... more >>
Forms Remoting
Posted by balg at 6/28/2004 4:54:01 AM
In Windows Forms, I need to spin off a form (say a debugInfoWindow) which will not close even if the main form / application closes.
This was achieved in VB6 by placing that form in an inproc server Exe and opening it with a load library / createobject. ( this also allowed data transfer between... more >>
how to access a variables
Posted by rt at 6/28/2004 2:36:02 AM
hi i want to access a variables from form1 to form2
how should i declare on form1
and how can i get those values on form2... more >>
End of form resize
Posted by MCzajk at 6/28/2004 12:54:57 AM
How to determine if user has ended resizing form? I need to invoke
time-consuming operation after the form's size has changed. SizeChanded
event seems to be triggered more than once during resizing.
MCzajk
... more >>
Activate event of multiple child in MDI
Posted by slaprade at 6/27/2004 10:01:01 PM
Create two mdi child forms to a MDI form
use the activated event to modify the text of both children (i.e. change title)
start the application
guess what
the activated event of either form will execute if that form is activated first but the other forms a ctivated event will never fire
Stopp... more >>
Row selection in datagrid
Posted by Andy at 6/27/2004 8:53:29 AM
How to catch row selection in datagrid?
TIA
... more >>
Windows DataGrid Child Tables New row Hide
Posted by sonia NO[at]SPAM mer.co.il at 6/27/2004 6:42:00 AM
Hi,
I use DataGrid.DataSource = dataview that it table is parent table
In dataset with relationships.
dataview.AllowNew = false hides last * row in datagrid parent.
But for child grids the last new row is visible.
The childDataTable.DefaultDataView.AllowNew = false don't help.
How can it be so... more >>
How to detect when the form is minimized ?
Posted by Dotnetjunky at 6/27/2004 3:39:01 AM
Hi,
How can I catch the event of the form being minimized by the user ?
Thanks in advance.
Kinh Luan... more >>
openFileDialog
Posted by e-mid at 6/27/2004 1:05:11 AM
why does not openFileDialog have closed event?
i want to do something; as soon as the dialog closes. is there a way to do
this?
... more >>
|