all groups > dotnet windows forms > august 2005 > threads for august 22 - 28, 2005
Filter by week: 1 2 3 4 5
Toolbar questions...
Posted by Cynthia Dough at 8/28/2005 11:28:03 AM
I have 2 questions with toolbars
1. How can I set a button to 'disable' mode. I want to see an icon, but I
dont want to be 'clickable'. If I set the enable property to 'false', the
icon disappear
2. Whenever I resize my windows, the toolbar flickers a lot. How can I
reduce that flickerin... more >>
How to stop resizing a form?
Posted by Joanna Clark at 8/28/2005 10:48:03 AM
I have a form, that I want to be sizeable, but not smaller than a specific
size.
How do I enforce this?
Right now, in the ResizeWindow event I check for the size, and set the
minimum size whenever it gets under it. But the result is awful -- with a
lot of flickering.
Any tip?
Thanks.... more >>
Enumerating instantiated WinForms
Posted by Emily at 8/28/2005 12:00:00 AM
Hi All,
Relativley new to .NET and I'm wondering if its possible to enumerate all
instantiated WinForms so I can determine if a window has been created, and
if possible obtain a reference to that window. Basically having knowing if a
non-modal dialog is open without having to use variables ... more >>
Anchor Layout Oversizes Controls
Posted by Ian Evitable at 8/27/2005 12:00:00 AM
Hello
I have controls on a winform that use top,botton left achors. Once i save
the form and close and reopen it (in design mode) the controls are all
oversized such that half of them disappear beneath the panel/tabcontrols in
which they are contained. This occurs with both user controls and t... more >>
Access to project directory thwarted when trying to build a Web App in .NET
Posted by Richard Lionheart at 8/27/2005 12:00:00 AM
Hi All,
[I mistakenly posted this to microsoft.public.inetserver.iis first.]
Is there on-line documentation for the permissions available in IIS for a
Virtual Directory's Local Path? Specifically I want documentation in
relation to developing Web Forms using Visual Studio .Net.
I'm devel... more >>
Windows Forms v2.0 Beta 2 vs. v1.1 performance
Posted by Mark N. at 8/26/2005 4:50:02 PM
I recently started a new solution and decided that it was time to give Beta 2
a try. I encountered a situation that is more than slightly disturbing and
I'm hoping it's simply something that I'm missing.
Try this:
1) Start a Windows Forms application
2) On the default form hook the Resize... more >>
Enumerate and Kill Processes in VB.Net
Posted by Shariq at 8/26/2005 12:23:04 PM
How do I enumerate all running processes in Windows TaskManager and kill a
specific process using VB.Net on an XP?
Thanks... more >>
Character encoding problems reading Html from Clipboard
Posted by Tim_Mac at 8/26/2005 11:41:36 AM
hi,
i am accessing some html (originating from MS Word) in the clipboard in
my winforms app. i catch it before the paste, clean up the html, set
the clipboard with the cleaned Html, and then paste.
here is my (simplified) code:
string html =3D
Clipboard.GetDataObject().GetData(DataFormats.Ht... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
UserPainted SplitContainer and Focus-Rectangle
Posted by Roemer at 8/26/2005 8:15:06 AM
Since the visual display of a SplitContainer is not that great, I'm trying to
do the drawing myself. I made it that it will paint a nice 3D border arround
the rectangle that can be dragged (SplitterRectangle) and three 3D Lines in
the middle of this Rectangle.
This works so far but the Spli... more >>
scroll datagrid programmatically
Posted by GatesOfIshtar at 8/26/2005 7:20:03 AM
Hi,
In my program, I'm displaying a data grid with 1000 rows. The 100th row
should be selected, so I use select method of datagrid to select it. However,
I also want the datagrid to scroll that row. How can I accomplish? So far
could not get it.
Thanks... more >>
Windows form always stays on top of desktop
Posted by John Bailo at 8/25/2005 3:58:18 PM
I built a windows form c# application.
If I launch another application, such as a Firefox browser, and select
that application, my windows form application stays top most.
I have to minimize it to the task bar to get it out of the way.
How can I make it "play well with others"?
... more >>
How to use scrollbar control in panel
Posted by moondaddy at 8/25/2005 2:56:05 PM
I have a vb.net 1.1 winforms app and want to put a vertical scrollbar in a
panel for a scrollable container. are there any code examples showing how
to do this?
Thanks.
--
moondaddy@nospam.nospam
... more >>
return value
Posted by Jose at 8/25/2005 11:55:12 AM
Does anyone know how to return a value from a form?
Thanks,
Jose... more >>
2nd Try : Is it possible to have Min/Max buttons AND Help button on a form's title bar?
Posted by Keith at 8/25/2005 11:01:32 AM
Hello,
Is it possible to have Min/Max AND Help button in the title bar?
If so, how is this accomplished?
If not, why does this restiction exist?
Can the functionality of the HelpButton ("?" cursor, control specific help,
etc.) be assigned/mapped to another button or control?
Can the question... more >>
e.Cancel is True on Entry to OnClosing
Posted by John Yale at 8/25/2005 10:28:40 AM
I have an MDI child form which sometimes refuses to close. When the problem
occurs, e.Cancel is set to True on entry to the OnClosing method. I could
just set this False which fixes the problem, but would rather find out the
cause of this.
It only seems to happen under the following conditi... more >>
Refresh parent from Modal window
Posted by vinay at 8/25/2005 9:21:07 AM
Hi
I am opening a Modal window from parent window.
I am adding some data in the Modal window and closing it.
When the modal window closes, i want to refresh the parent window to see the
latest changes made in modal window??
i tried Me.Parent.refresh()
But nothing happens??
Thanks
... more >>
Reading from a set of dynamically generated textboxes
Posted by Meghana at 8/25/2005 8:18:01 AM
Hi,
I am creating textboxes on a windows form at run-time as:
For intCount = 1 To intNumberOfBoxes - 1
Dim txtNew As New TextBox
txtNew.Name = "txtChild" & intCount + 1
txtNew.Location = New Point(intInitialTextX, intInitialY + (intCount *
25))
txtNew.Size = New Size(intTextWidth, int... more >>
C# app works perfectly on XP but not on 2003 server
Posted by OfurGørn at 8/25/2005 6:35:04 AM
Hi everybody - here is an easy one (hopefully)
I have a funny error, that is driving me nuts !!! I have a application that
I have written on a Windows XP SP2 machine, and tuned to near-perfection -
then I copied the program to the target system, a Windows 2003 standard
server, the program w... more >>
vertical text in header of the datagrid
Posted by Wili Whitelaw at 8/25/2005 1:42:06 AM
I need to know if its possible to make the text for column headers in a
datagrid to be vertical.
Could this be done in a Listview with View set to Details?
If necessary I could use images if this is feasible?
Does anyone know of a 3rd party control that does this?
Does anyone have any i... more >>
How to Host a Windows Form in a User Control
Posted by Charles Law at 8/25/2005 12:00:00 AM
Can anyone think how I could get a user control to host a Windows form? In
fact, what I actually want to do is have a docked toolwindow within a user
control, along with another user control.
The reason I want to do this is because I am creating an add-in for the VS
IDE, and when creating a... more >>
GraphicsPath.PathTypes question
Posted by Lloyd Dupont at 8/25/2005 12:00:00 AM
I want to follow a GraphicsPath and put little visual mark every.. some
distance...
I found 2 handy properties:
GraphicsPath.PathPoints
GraphicsPath.PathTypes
where the data seems to be stored as curve, line, bezier, and so on.
I have one problem with GraphicsPath.PathTypes thought.
It h... more >>
Windows Forms .Net 2.0 samples\Quick start
Posted by Reshma Prabhu at 8/25/2005 12:00:00 AM
Hi,
Can any one point me to any Windows forms 2.0 quick starts/samples?
Thanks and Regards,
Reshma
... more >>
How commit databindings on instant form closing?
Posted by Andreas Zita at 8/24/2005 11:25:41 PM
Hi
I often have a form with a number of databound textboxes. The problem is
that when the user edits a textbox and then closes the form without first
leaving the textbox, the databinding is not commited and the property not
set in the bound object. What I do now is to run EndCurrentEdit() o... more >>
Datagrid problem in VB.NET
Posted by Dennis T. Holm at 8/24/2005 11:19:43 PM
HEy
Im having problems with setting the width of my columns of my datagrid.
Here's the code
resultatGrid.DataSource = getFirms(0) // gets metaData from database
Dim tableStyle As New DataGridTableStyle
tableStyle.PreferredColumnWidth = 100
tableStyle.RowHeadersVisible = False
ta... more >>
Cannot call Close() while doing CreateHandle()
Posted by Gav at 8/24/2005 7:36:36 PM
Is there a way around this error message?
Example (not what I'm actually doing but similar, this is a simple version):
Lets say you are creating some sort of calendar application you create a
form which is a MDI container, another form which is the 'events' form and a
dialog form which sim... more >>
RichTextBox.Select = SLOOOOOOOOW ?
Posted by jim at 8/24/2005 1:37:59 PM
I'm iterating through several hundred words/lines of text.
I select a particular word or line with the RichTextBox.Select method
and then change the color.
For some reason, RichTextBox.Select is extremely slow to return (using
C#).
myRichTextBox.Select(pos, len); <----... more >>
App won't start
Posted by yuriy_zubarev at 8/24/2005 9:22:07 AM
Greetings,
I have a Windows Form application (C#, .NET 1.1) that I distribute to
my clients and everyone can run it successfully but those who have
international versions of Windows XP (German, Norwegian, Russian, etc).
When they try to launch the app after an installation they get the
follow... more >>
Multiple EXE module
Posted by Pierre at 8/24/2005 8:59:06 AM
Hi, i am an vb.net programmer, I need to do a projet with multiple EXE module
loaded in memory. This modules have to talk to each other and I need to buil
an general graphical interface for monitoring all thes exe module. Can
someone can give me some link on article or sample code to begin wit... more >>
Treeview highlight
Posted by Tony Byers at 8/24/2005 7:45:04 AM
Hi,
I know this has been asked before but no one responded so I thought I give
it another go.
I can set the ForeColor and BackColor on a TreeNode however when it is
highlighted I get the default highlight colour which I cannot alter. Is there
any way round this? I realise that ..Net 2.0 h... more >>
ReportGrid.Rows(i).Visible = False VC Currency Manager
Posted by ToyMaker at 8/24/2005 4:37:24 AM
I bind my datagridview to a dataset returned from a web service:
ds = WS.testReport(param1, param2)
ReportGrid.DataSource = ds.Tables(0)
The data displays fine.
Now, what I want to do is to hide all rows that match some specific
criteria (every row whose column has a value of 1).
So I try:... more >>
Urgent Help required - Dear MVP Plz Help
Posted by mf_sina at 8/24/2005 1:08:25 AM
Hi!
I need a sample code or sample application in vb.net for scanning an image
directly from scanner
using TWAIN driver or anything else which may work.
i was offered a link (http://www.codeproject.com/dotnet/twaindotnet.asp)
which had an article about that but unfortunately in C# , since i... more >>
Problem with mnemonics
Posted by Blake Johnson at 8/23/2005 11:55:21 PM
I recently added mnemonics to a couple of buttons on my program, but when I
run the program, the letters do not appear underlined until I hit tab. How
can I make it so that they are underlined from the start?... more >>
Display Bitmap from HttpStream
Posted by Andreas Zita at 8/23/2005 11:14:18 PM
Hi
How do I display a bitmap which is available from a .aspx-response stream in
a .NET Form?
Thanks for any help!
/Andreas
... more >>
How to hide form from Alt-Tab dialog
Posted by Dotnetjunky at 8/23/2005 7:00:03 PM
Hi all,
I'm creating a borderless form by setting this.FormBorderStyle =
FormBorderStyle.None
When I show the form, if users press Alt-Tab to switch among applications,
they can still see it. How can I disable that ?
Any help is very much appreciated.
Kinh Luan... more >>
want to capture whn control is being disposed..
Posted by Support at 8/23/2005 2:58:47 PM
Hello:
in vb.net 1.1
I have a UserControl that I embed in an application.
I want to run some code - from within the user control - when the
application is shutdown - hence destroying the usercontrol ...
I can get a messagebox to run on: MyBase.Disposed but not code in a
called function ... more >>
Display columns in DropDownList
Posted by John Cosmas at 8/23/2005 11:32:34 AM
I would like to display more than 1 column in my dropdownlist. How do I do
that? I have it bound to HASHTABLE now, but will move to TABLE once I've
figured out how to show more than 1 column. TIA.
... more >>
Toolbar seperators
Posted by John Cosmas at 8/23/2005 10:04:52 AM
How do I add a seperator between buttons on a toolbar. I know that with
menu items you use "-" for a seperator to distinguish groups.
... more >>
How to hide Tab titles
Posted by John Cosmas at 8/23/2005 12:46:04 AM
Is there a way to hide the titles portion of the tabs in a tab collection.
That way, I can quickly switch between one tab to another, but I want to
hide the titles itself. I using a treeview to delegate the switching.
... more >>
Prevent Tab navigation in Datagrid
Posted by Antonio Paglia at 8/23/2005 12:00:00 AM
How can avoid Tab navigation on cells in Datagrid. ? I want Tab keys acts as
Control navigation.
TIA
Antonio
... more >>
MouseEnter and MouseLeave problems in UserControls
Posted by Dave at 8/22/2005 5:05:33 PM
I have a UserControl with several subcontrols inside of it. I can't
seem to find a single elegant way to trap a single MouseEnter and
MouseLeave for the entire instance of the control. I need all of the
code to be inside the control, but have it raise each event to the
outside also. This is b... more >>
DataGridComboBoxColumn
Posted by Optikal at 8/22/2005 12:55:09 PM
I'm trying to create a DataGridComboBoxColumn. I have used the code from
this article as my base:
http://msdn.microsoft.com/msdnmag/issues/03/08/DataGrids/default.aspx
I had to port it to VB.Net, and I modified it so it can support binding to
non-dataset objects (eg. an array of custom obje... more >>
How to enumerate all controls in a window form?
Posted by Andrew at 8/22/2005 12:37:13 PM
Hi, friends,
I tried to enumerate each control in a window form like the follows:
for (int cnt = 0; cnt < this.Controls.Count; cnt++)
Console.WriteLine(this.Controls[cnt].Name);
However, it did not show any menu items I created when doing form design.
How to enumerate all menu items... more >>
Custom Painting a tab control
Posted by Brad at 8/22/2005 10:53:02 AM
I want to do some very basic customization of a tab control. I've
successfully painted the tabs but want to change the background color of the
control itself and cannot find anything that gives me that ability. Am I
stuck getting a third party control that has more power built into it?
--
... more >>
disabled treeview looks ugly
Posted by Tim_Mac at 8/22/2005 10:25:19 AM
hi,
i have a treeivew with items the user can click on to load a page into
a htmleditor. while the page is loading, i don't want the user to be
able to click on other nodes (they can cancel the load another way if
they want to), so i tried disabling the treeview. but it looks very
bad while i... more >>
DataGrid RowHeaderClick
Posted by Terje Myklebust at 8/22/2005 7:25:12 AM
I need to know when the user click on the RowHeader in the DataGrid control.
I have look at the RowHeaderClick event and OnRowHeaderClick metod.
But they are Protected, in I am not allowed to use them. Is there a solution?
... more >>
Tab Control SelectedIndexChanged event and ComboBox.DropDown
Posted by dlyle at 8/22/2005 7:21:06 AM
Given a tab control with one of the tabs having a ComboBox, cb , it is
desired to display the ComboBox's list as a dropdown list via:
cb.DropDown = true;
However setting this property from within the Tab Control's
SelectedIndexChanged event doesn't work since that callback gets called
b... more >>
StackOverFlowException
Posted by Niggy at 8/22/2005 4:10:01 AM
I keep getting this error. Is there a way to clear the stack? TIA.... more >>
WM_PRINT Problem with TextBox control
Posted by WM_PRINT with TextBox control at 8/22/2005 1:16:02 AM
Hi,
I tried WM_PRINT to take the snap shot of TextBox control on a device
context, it does not work with the following combinations
TexBox.Visible = false;
TextBox.Multiline = false;
But works for the following combinations
TexBox.Visible =true;
TextBox.Multiline = false;
&
TexBox.Visibl... more >>
|