all groups > dotnet windows forms > july 2005 > threads for july 1 - 7, 2005
Filter by week: 1 2 3 4 5
Lock Radiobuttons
Posted by Lance Marrano at 7/7/2005 10:14:05 PM
How can one "lock" radio buttons to not allow the user to change the value?
With textboxes, one can use the Readonly property to prevent the user from
making changes to data. However, no such property exists for radio buttons,
and disabling the groupbox that contains the radio buttons makes a... more >>
Smart Clients: How is this done?
Posted by Chris Fink at 7/7/2005 1:29:03 PM
In the following example, click the "Real-Time Binary Streaming Using Flash,
SmartClient or Image" link
http://www.dundas.com/products/gauge/demos/index.aspx?Section=GaugeDemos&Body=Demos.aspx
They claim the middle one to be a smart client....But I don't see how this
is a smart client when ... more >>
TAB doesn't work for non-modal forms!
Posted by Dima67 NO[at]SPAM yahoo.com at 7/7/2005 1:19:03 PM
Hi group!
please, help me with the following problem:
When I open a non-modal form from a VB6 written MMC snap-in the form works
fine. But I can't use ob TAB key to navigate through its fields. The form
just ignores it.
I found some discussion about such case and they proposed a solution ... more >>
UserControl hosted in IE and Control.Invoke
Posted by Remigiusz Samosiuk at 7/7/2005 11:32:14 AM
Hi everyone!!
I have such weird situation/bug I don't know how to solve
2 weeks ago I've done user control that is hosted in Internet Explorer.
This control in Load event starts backgroundworker
(http://weblogs.asp.net/rosherove/articles/BackgroundWorker.aspx) to
load some data from web... more >>
How to lock a Form's Location ???
Posted by Protege at 7/7/2005 10:19:19 AM
Hello,
I have a special case where I must lock a form's location (i.e. can't be
moved by user).
I'm guessing that setting some form property or overriding some event(s)
should accomplish this. However, I'm not sure of a good way to do it. Any
ideas?
Thanks, Jeff
... more >>
Smart Client (WinForm) does not render in Browser (IE)
Posted by Chris Fink at 7/7/2005 9:09:10 AM
The following code is intended to display a winform (DateTimePicker Control)
in a browser. But, when the aspx page that contains the reference to the
winform in the object tag is run, all that is displayed is a blank
placeholder and not the control. Any ideas or help is appreciated!
DateT... more >>
Custom control container behavior in designer
Posted by William Sullivan at 7/7/2005 7:58:01 AM
Hey, created a custom control that includes a panel. I want to use the panel
as a container for other controls I drag into the custom control in designer.
I can't seem to find any information on how to do this. I've extended
UserControl and SetStyle containercontrol to true, but this doesn'... more >>
User Control Databindings don't work
Posted by NormD at 7/7/2005 6:37:03 AM
I have a user control and I have several textboxes on it. I build the user
control and dropped it on a window's application. I have a typed dataset in
the window's application. I'm trying to bind the controls within the user
control to this dataset. I have the following code in the user contro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Form's controls direction
Posted by Lev at 7/7/2005 12:00:00 AM
Hi all,
I need to develop multilingual WinForms application and one of the demands -
RightToLeft support.
When the user choose one of the RTL languages (hebrew or arabic), the form
will looks mirrored.
The implementation of RightToLeft property of the form and all it's controls
gets partly r... more >>
Desktop Form
Posted by fliversen at 7/7/2005 12:00:00 AM
Hello,
for some reasons like
- create a font (without a real form)
- dimension of desktop
I need access to a default Form / Desktop form.
In which way, it is possible with windows::forms.
In MFC I use 'GetDesktopWindow()'.
Is 'Win32-API GetDesktopWindow()' is only way ?
So long
... more >>
problems with big fonts
Posted by Gustavo Curve at 7/7/2005 12:00:00 AM
Hi,
if i set the windows fonts up 120dpi, my applications begins to act =
stange:
- Splitter an not visible, Pictureboxen are getting bigger and title an =
image etc.
Is it possible to use .NET Winforms Application with 120dpi?
Thanks in advance!... more >>
using a cookie with System.Net.WebClient
Posted by Jeroen at 7/6/2005 11:07:22 PM
Hi,
i use aan application to download an aspx file, and check ik for some values.
But there had been a change, there is a login script that checks if you have a cookie, if not it show a "username/password" screen (url remains the same)
i know the username password, and if i fill it once my br... more >>
Beta 2 Dual Processor Problem????
Posted by Paul at 7/6/2005 6:11:01 PM
My friend who sits next to me has a single cpu pc. He can edit the code in
the .net ide text editor with no problem. When I edit the exact same file
(after he cancels the check-out) my pc goes to 50% and just hangs for 3
minutes or so. I have tried everything to figure this out but the only... more >>
Open Form in a Form
Posted by Nassos at 7/6/2005 4:54:36 PM
Hi All,
i was wondering , how is posible to open a Form inside a Panel (for example)
not through MDI property, is a container the right tool for this? How am
MDIParent form is doing it?
thx in advance
... more >>
Scrolling problems in datagrid with invisible columns
Posted by Igor Mendizabal at 7/6/2005 2:28:40 PM
Hello,
We're doing our own datagrid based on the System.windows.forms.datagrid
control, and are having some problems with horizontal scrolling.
In general, we construct our datagrid adding a tablestyle and
gridcolumnstyles to that tablestyle. If we have invisible columns, we add
the gridcol... more >>
really daring subject! DataGrid MyBase.OnPaint -> content
Posted by DraguVaso at 7/6/2005 1:34:37 PM
Hi,
I want to override the MyBase.OnPaint(ByVal pe As
System.Windows.Forms.PaintEventArgs) of the DataGrid, to have some custom
property's designed (other column headers etc).
The problem is that I don't know the content of the original MyBase.OnPaint,
so I don't know what I need to put in ... more >>
Windows App w/ Cmd Line Parameters
Posted by Adam Kenney at 7/6/2005 12:40:10 PM
Hi,
I'm creating a windows forms application. Users will normally launch this
app from a Windows shortcut, but I need to give them an option of starting
with command line arguments for integration with another program.
I was able to do this by using Sub Main as a startup object, but the p... more >>
Control licensing issues when accessing from COM
Posted by Jim at 7/6/2005 12:15:05 PM
Hi, we have a Windows Forms control which uses the standard .NET licensing
mechanism (registry holds license key at design time, and key is embedded in
executable for run-time). This works fine enough when building regular
forms, and does even work with IE hosting.
The problem is, we have ... more >>
VS05 tutorial for newbie?
Posted by deko at 7/6/2005 12:00:00 AM
I just fired up VS05 and attempted to write a simple WinForms app in C#.
I not new to programming, but I am new to VS.NET. Can anyone point me to a
tutorial that will succinctly explain all this stuff I see in Solution
Explorer, and the relationship between the various files (Form1.Designer.... more >>
MDI - help w/image background
Posted by Developer at 7/5/2005 4:42:18 PM
I have a MDI app and I want to have a image in the client area. I can't use
the Picture control because it hides the MDIchild Forms. I tried to send the
Picture control to the back after I display the child form, but it
disappears. Even when I use just the image background the image dose no... more >>
MVP please help - ShowDialog() very slow when child list box has many items
Posted by Valerie Hough at 7/5/2005 3:11:49 PM
Hi,
Development is done under XP SP2, C# .NET, Visual Studio .NET 2003, .NET
v1.1
I have a System.Windows.Form that displays a dialog when a button is
pressed.
The dialog has a list box, a text box used as a typing helper, and two
buttons in it.
The list box has approximately 50,00... more >>
how to resize tab control?
Posted by Still Learning at 7/5/2005 3:02:02 PM
Hi,
I have a tab control (actually 3 levels of them) on a form. If I allow the
form to be resized, do I have to handle the resize of the tab controls, etc.
in code or am I missing some design setting that automatically handles this?
Thanks,
NJ... more >>
First Line of Combobox
Posted by jabailo NO[at]SPAM texeme.com at 7/5/2005 11:26:31 AM
I have a form with two comboboxes.
I populate the first one from a database.
When it's selected index changes, the second one is populated.
In the first combobox, the first item shows before anything is selected.
In the second its just blank, and you have to click on the drop down
... more >>
MonthCalendar
Posted by Lam at 7/5/2005 10:53:22 AM
Hi
I have a method to catch the event
private void calendar_DateSelected(object sender,
System.Windows.Forms.DateRangeEventArgs e)
{
}
Does anyone knows how can I get the selected date from MonthCalendar?
and rturn it as a string ?
Thanks a lot
Lam
... more >>
Unhandled Exceptions outside of VS
Posted by Bryce Covert at 7/5/2005 9:05:03 AM
Some of us on the .net framework were working on an issue that I've
encountered. It seems that in this code, the catch will not catch the
exception outside of Visual Studio. If run straight from the exe, it'll
generate an unhandled exception.
With some more testing, I've noticed this also h... more >>
Compare files: determine line differences
Posted by Rik Beacroft at 7/5/2005 7:45:03 AM
Writing a C# .net windows app to compare 2 code files (written in VB6).
Can anyone point me in the right direction as to how I can best determine
the differences between 2 vb code files. (much like windiff, but would like
to include a merge capability).
This would essentially be done prog... more >>
opening a file by clicking a treeview node
Posted by orit at 7/5/2005 7:20:01 AM
I added a treeview to my winform, based on an xml file.
I want that the treeview will act as a menu, so each time a user
click\select a node, a file will be opened. the pairs of node item - file is
defined in the xml file in the following example structure:
<?xml version="1.0" encoding="utf-... more >>
How to select first row in the listview control
Posted by Steve at 7/5/2005 5:56:07 AM
I have a form with listview control. The listview control is populated and
sorted in the begining. I want to select and highlight the very first row in
lietview control.
Unfortunately the following doesn't work:
m_FileList->Items->Item[0]->Selected = true ;
because Item[0] is not always d... more >>
Detecting a form's dialog
Posted by Michael Wong at 7/5/2005 12:00:00 AM
How can I detect if a form has a dialog showing?
For example, in form1, I have code to show a dialog:
private void FormProduct_Closing(object sender, CancelEventArgs e)
{
// ...
MessageBox.Show(...);
// ...
}
which is not closed yet. And in another thread, I would like to know
whe... more >>
First try at VS2005 - InitializeComponent question
Posted by Tom Dacon at 7/4/2005 4:29:05 PM
I just opened VS2005 beta 2 for the very first time and started out with a
good old Hello World windows forms application.
As was my custom in VS2002/2003, I added a call at the bottom of
InitializeComponent() to call my own initialization routine which I placed
over in Form1.vb, finding the I... more >>
do not display text border
Posted by jeff at 7/4/2005 12:32:02 PM
hi, all
I have a textbox control.
I do not want to display its border.
how to set the flag?
thanks... more >>
How to get the Icon for a file type?
Posted by DraguVaso at 7/4/2005 10:42:03 AM
Hi,
In my application I need to list some files (a little bit like in windows
explorer), and I wan't to show next to each file the right Icon, as used in
windows explorer. how can i find which Icon is used for each file-type, and
use that icon to be shown in my application?
Thanks a lot in ... more >>
DataGrid Rows Color
Posted by jeff at 7/4/2005 7:33:04 AM
hi, all
I want to make my DataGrid rows with different Color?
for example:
the first line is Blue, the second line is Green, and the header is Red
How to do it?
thanks... more >>
Drag & Drop - Performing "Copy" by default
Posted by Barry Moon at 7/4/2005 5:20:33 AM
Hi
I have (two) tree view controls that can work in either "read-only" or
"normal" mode. In "normal mode", items can be moved between the trees
using drag & drop. When a tree is in "read only" mode, items can only
be copied from it, not moved.
However, to get the copy operation to work, the... more >>
Images in menubar
Posted by Amey at 7/4/2005 4:17:02 AM
How does one bring images in menu bars in .NET 2003 like Office has.
Similarly how to have toolbars that can be moved and can turn into palette
windows... more >>
Access a form's control from another class
Posted by Samba at 7/4/2005 4:09:03 AM
I want to access a control (say a textbox) in a window (a form) from another
class (MyClass). Both my form class and MyClass are in the same project. Now,
since the controls are declared as internal (Friend in VB.NET), I shud be
able to acess them. Even though I'm able to get all the controls ... more >>
Problem with AfterSelect event in treeview
Posted by janezcas NO[at]SPAM yahoo.com at 7/4/2005 3:05:43 AM
Hi,
I have a form with a button, treeview and listbox. If I click the
button, some data is retreived from the database and treeview is
filled with nodes. I also have AfterSelect eventhandler on the
treeview that displays some additional list of data in the listbox
when particular node is sele... more >>
One-touch deployment starts always old version
Posted by Roland at 7/4/2005 2:51:01 AM
Regardless which Version of a Winform.EXE is on the webserver. On the user
side always the old version is executed. I tries several IE settings -
without success. Seems to be running always from the download assembly cache
even if the server version is newer. It's working well on my computer(a... more >>
Detect the change on a control's parent painting?
Posted by Ă–zden Irmak at 7/4/2005 12:00:00 AM
Hello,
I want to detect when my control's parent redraws itself. I know that this
will cause a repaint in my control but I want to detect this before a paint
event occurs in my control...
Does anybody know if any event is fired in my control (before paint event)
for this purpose? Maybe O... more >>
CurrencyManager.addnew
Posted by Donald at 7/4/2005 12:00:00 AM
when I use the cm.addnew method to add datarow, I know the editing can be
completed with bindingcontrol, such as textbox, if i have some columns which
I have not bind it on winform, how to edit them with coding? I cannot find
it in datatable, it looks like "unsave record". Thanks in advance.
... more >>
XP style controls in W2000
Posted by DraguVaso at 7/4/2005 12:00:00 AM
Hi,
How Can I have in my VB.NET-application XP-like Controls, when it is
deployed on Windows 2000? I don't think a manifest file will work than? Or I
didn't manage to get it work?
Any help would be really appreciated.
Thanks a lot in advance,
Pieter
... more >>
Complicated Data Binding Question
Posted by Dave Elliott at 7/2/2005 9:40:18 PM
I've included a picture below to show what I am trying to accomplish.
It is best to copy/paste into notepad to get the spacing correct.
I have a dataset that contains 3 tables. Two of the tables contain
data and the third links them together. The dataset has a constraint
setup as well.
T... more >>
Trouble eliminating flicker
Posted by grumfish at 7/2/2005 6:29:31 PM
I'm trying to write a simple Windows Forms based clock. Right now if
flickers pretty badly when updated both from the timer and resizing. I
thought the way I buffered the image before blitting would eliminate it
but it does not. What am I doing wrong?
import System
import System.Drawing
... more >>
MDI Children - Access Controls
Posted by Brian P. Hammer at 7/2/2005 3:47:43 PM
I have a MDI Children and want to access, lets say a label. I have seen in
other posts:
DirectCast(????, ????).MyLabel = "Label Text"
If MDIMain is the MDI and FormA is the MDI Child, how can I make it work?
Thanks,
Brian
... more >>
Newbie question (user data storage)
Posted by Vlad at 7/2/2005 2:51:05 PM
Hi all.
Spent 4 years in asp.net, have never used System.Windows.Forms.Form class
before. Now I need to create a simple winform that will use some web service
to get/send user info. Sorry if the question looks dummy :)
In winforms, what's the best way to locally store user info (for instan... more >>
reading barcodes with a wedge scanner
Posted by Leon at 7/2/2005 1:07:14 PM
I am trying to come up with a way to read a barcode using a wedge scanner, drop the value into a text field and then fire an enter event for the textbox. There is very little information
to be found about doing any of this expecially for c# programmers.
Thanks... more >>
control.HasFocus()?
Posted by Rica at 7/2/2005 12:00:00 AM
Is there a way to check if a specified control have focus beside
handling LostFocus/GotFocus events ?
I'm pretty sure there was in prev version of VB something like
control.HaveFocus() ...... more >>
OK to use FolderBrowserDialog ?
Posted by Kevin R at 7/1/2005 7:04:14 PM
Hi All.
Reading the help file for FileBrowserDialog class, It says
in red letters at the top of the page
Note: This namespace, class, or member is supported only in version
1.1 of the .NET Framework.
Does this mean it is not supported in versions prior to V1.1, or does
it mean that it wil... more >>
Capture a Cancel Event
Posted by joelcochran NO[at]SPAM gmail.com at 7/1/2005 3:13:42 PM
I have an application that executes SQL queries against a database.
When the user presses "Execute", I change the cursor to "Wait" while
the query executes and back to "Default" when it is complete.
Occasionally, a user will realize the query was mistaken and wants to
Cancel the query mid-reques... more >>
Create custom TaskBar
Posted by john conwell at 7/1/2005 11:01:04 AM
What I'd like to do is create my own custom task bar, very similar to the one
that holds the Start button, quick launch bar, and the system tray.
Basically i need a window that i can put whatever i want in, but other
windows will size themselves to it when they are maximized. They should doc... more >>
form cancel validation behavior
Posted by Brad at 7/1/2005 10:23:04 AM
I've got a form with OK/Cancel buttons and a control box "X" button. Cancel
is fully wired with DialogResult and all that jazz.
There is a textbox on the form with a Validating event.
The Cancel button has CausesValidation = false.
If I click the Cancel button, validation is skipped and ev... more >>
collision detection
Posted by (cmrchs NO[at]SPAM yahoo.com) at 7/1/2005 8:46:23 AM
Hi,
I'm writing a graphical program in which I let shapes (rectangles, regions, ...) move around.
how can I detect if two shapes 'collide' ?
thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comp... more >>
Clipboard Persistence
Posted by Scott W at 7/1/2005 7:25:04 AM
We are adding clipboard support for an exception handler we use, so users can
paste the information about the exception into an email or document. I am
using the following method:
Clipboard.SetDataObject(sb.ToString()); (after building the stringbuilder of
course)
The problem is, once t... more >>
Custom ComboBox DataGridColumn: on Tab combo gains then loses focu
Posted by jlavallet at 7/1/2005 6:46:02 AM
Hello,
I have a custom DataGridColumn that displays an editable ComboBox instead of
a TextBox when the control is edited.
Everything id working great except for one thing: when the focus is in the
column to the left of my custom column and the Tab key is pressed, my control
gains focus... more >>
Dialog & top-level forms
Posted by Michael Wong at 7/1/2005 12:00:00 AM
Hi there,
I have an application which creates several top-level forms (single
threaded application).
When creating a dialog (with ShowDialog()) on one of them, all other
forms get freezed, which is not the wanted behaviour. Only the form
creating the dialog should get freezed.
Is ther... more >>
bug with ScrollableControl & AutoScrollPosition in 2.0 beta2 ??
Posted by Lloyd Dupont at 7/1/2005 12:00:00 AM
I have a scrolable control
I set its scrollable position to
this.AutoScrollPosition = new Point(20, 20);
if I get the position after that, it's inverted!
Console.WriteLine(this.AutoScrollPosition);
=> {X=-20, y=-20}
and if I try to set negative value, they are zeroed....
this.AutoScrollPo... more >>
|