all groups > dotnet windows forms > may 2005 > threads for may 1 - 7, 2005
Filter by week: 1 2 3 4 5
Directory Selection dialog???
Posted by Alex Fennell at 5/7/2005 8:08:03 AM
Hi all,
I am building a tool and one of the things that I want to do is allow users
to select a directory to set a path. Do I have to use the gimpy .NET 1.1
FolderBrowserDialog or is there something more similar to the OpenFileDialog
format. I would prefer that my dialog for selecting files... more >>
binding array to listbox
Posted by bean at 5/7/2005 7:54:53 AM
Hi,
I'm having problems binding an array of objects to a listbox. The
objects are from a webservices class running on our web server.
The array is coming from the website fine, and the data is binding ok
to the listbox, but when I run the program, the listbox just comes up
with the name of the ... more >>
Open form minimized
Posted by Armin Zingler at 5/7/2005 12:00:00 AM
Hi again,
in the designer, I set windowstate = minimized, but when I start the app -
the form is the startup object - the form is first shown in restored state,
then minimized immediatelly. How can I prevent it from being shown in
restored state first?
Another problem: In it's resize event,... more >>
Deployment - vdproj editor
Posted by jon morgan at 5/7/2005 12:00:00 AM
Hi,
The format of vdproj files looks like good old ini files. Where can I find
any documentation that tells me what the line item options are ? And is
there an editor that works on these files directly ?
The SDK section on the msi seems pitched at ground up deployment software
developmen... more >>
String.Format Help Please
Posted by Brian P. Hammer at 5/6/2005 11:30:42 PM
All - I am trying to name the column headers of a Component One Flex. What I
want to do is to name it much like the column names you'd find in Excel:
A,B, C.... AA, AB, AC and so on. I am trying this:
For c = 1 To flex.Cols.Count - 1
Dim hdr As String = String.Format("{0}", CChar("A"c + c -... more >>
Strange threading behavior
Posted by Jon Shemitz at 5/6/2005 3:26:41 PM
I'm experimenting with a WinForms peer-to-peer .NET Remoting project.
Each of the forms exports an object that can put messages in a
RichTextBox, using SelectionText. The remote "client" form calls its
proxied version of this object, to put text in the "server's"
RichTextBox.
Now, the remote ... more >>
Multiple bindingcontext on winform
Posted by clorentson at 5/6/2005 1:52:05 PM
Hi All,
Does anyone know of a reference for adding panels with there own binding
contexts and keeping them synchronized with the form's bindingcontext?
Thanks,
Carl... more >>
Xml file content is lost if ...
Posted by Nad at 5/6/2005 11:38:06 AM
In the following snippet if an error occurs after XmLTextWriter is
instantiated I will lose the content of my Xml file!
// validation ...
// writing data into dataset
dataSet.AcceptChanges();
XmlTextWriter xmlWriter = new XmlTextWriter("myFile.xml", Encoding.UTF8);
throw new... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGrid's DataView remains intact after sorting!!!
Posted by Nad at 5/6/2005 11:31:03 AM
Hello,
When I click on a column header of a dataview, it sorts fine but the new
view is not reflected in the dataview.
For example: before sorting, ID of row[0] was 1
after sorting this row moves down the grid
but I still get 1 for row[0].
Any c... more >>
listbox control - change font color of a single row
Posted by pothik05 at 5/6/2005 7:11:11 AM
Hello
I have a listbox on a winform. Based on some event at run time I want to
change the color of a row in the listbox. I will appreciate if anyone can
give me any idea how to do that.
Thanks... more >>
Putting a Form on a new thread
Posted by Brandon Owensby at 5/6/2005 12:00:00 AM
If I try to start my form on a new thread it doesn't stay up. You see it
appear on the screen but then it disappears after just a second or so. How
do you go about putting a form on another thread without that happening?
Any help is greatly appreciated.
Thanks,
Brandon
... more >>
Closing a form programatically which was opened with ShowDIalog
Posted by Iain at 5/6/2005 12:00:00 AM
I have a form (that I open with ShowDialog) which I wish to close either
with a button or through my program (after an event occurs in the main
program).
How do I do it?
Close doesn't work and I'm fairly sure that simply calling the click event
won't work.
It must be easy ....
Thanks
... more >>
Why "GroupBox", "Panel" can contain other Controls ??
Posted by Stan at 5/6/2005 12:00:00 AM
How to see if the control is a "container" control ?
Are there any other "container" controls except "GroupBox" and "Panel" ?
Thanks!
... more >>
CreateInstance Contructor Parameters??
Posted by Bud via DotNetMonster.com at 5/6/2005 12:00:00 AM
How do you pass parameters to the contructor using create instance
Type t = Type.GetType("MyApp.Class1");
object obj = Activator.CreateInstance(t);
now all contructors for Class1 take at least one parameter
public class Class1
{
public Class1(Employee emp)
{
}
}
s... more >>
Flickering
Posted by Robot at 5/6/2005 12:00:00 AM
Hello,
I am creating an application using C# .NET.
In the main form is has got a few labels, panels,
buttons and treeView.
While changing size of window (by handling
right-bottom corner), everything is flickering in
horrible way. Each component is flickering in its
own way.
Of course, I ... more >>
Rounded Rectangle
Posted by JezB at 5/6/2005 12:00:00 AM
I want to draw a rounded rectangle on a windows form's surface. Since there
don't seem to be any drawing shape controls provided, can I achieve the same
effect by adding some dummy control on the form to look like a rounded
rectangle? Or is my only option to get into custom controls and OnPain... more >>
Save image to file
Posted by JezB at 5/6/2005 12:00:00 AM
I have a reference to an image via an http url. How do I save (cache) that
image to a local file from a windows forms application ?
... more >>
System.DateTime.Parse("Thu, 05 May 2005 14:50:52 EDT") Fails
Posted by Michael S. Scherotter at 5/5/2005 3:16:53 PM
How do I use the .Net 1.1 System.DateTime so that it will parse the string
"Thu, 05 May 2005 14:50:52 EDT"
Currently System.DateTime.Parse("Thu, 05 May 2005 14:50:52 EDT") Fails with
a FormatException:
The string was not recognized as a valid DateTime. There is a unknown word
starting at... more >>
Background color of TextBox control
Posted by Steve at 5/5/2005 12:47:35 PM
I have windows form with the few TextBox controls.
Under certain conditions I disable or enable this controls by setting Enable
property to true or false: For example:
this.m_txtIP.Enabled = false ;
The controller become disabled, and I can't enter any data. The problem is
that the backgr... more >>
Need to disable "Print progress" popup dialog when previewing
Posted by Davis at 5/5/2005 10:55:24 AM
Does anyone know how to disable "Print progress" popup dialog when previewing
w/ the PrintPreviewDialog, or better yet the
PrintPreviewControl? I've tried setting the printDocument's printController
to a standard and preview printController, but the status box still appears.
Thanks,
Davis
... more >>
Threading question
Posted by Scott Simons at 5/5/2005 8:12:10 AM
Is it safe to create a form in a worker thread and then have the UI thread
display and take control of it? I would think that this would not be safe.
However, .net 2.0 does not give me a cross threading error and it works
consistently with all of my forms except for one.... more >>
Remote access
Posted by jy at 5/5/2005 12:48:05 AM
Hi,
I have a windows forms application, developed under .Net 2003. This
application mainly accesses a remote Oracle database to generate reports. To
be able to run my application, I have to install it on every PC that needs to
use it, along with the .Net framework 1.1 and all the libraries it... more >>
Communication between threads
Posted by Kosmas Nikolaidis at 5/5/2005 12:00:00 AM
Hi,
I want to fill a datagrid from a separate thread.
How i use the invoke method?
thanks
... more >>
Process.Start Excel File Does not Open.
Posted by Abhijeet Kumar at 5/4/2005 11:10:05 PM
Hello
I am Using Following Code to Open Ex cel File From my C# Windows based
Application.
myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = strFilePath;
myProcess.StartInfo.UseShellExecute = true;
myProcess.Start();
This Works Fine when I Open the File FirstTim... more >>
Advanced: Bug with Owner Drawn Context Menus and ComboBoxes
Posted by Andrew Baker at 5/4/2005 10:50:16 PM
I posted this a while back, but thought I would give this another go:
Have a look at the code below. It's a really simple example where I
have added two controls to a form, a textbox and a combo box. Both add
owner drawn context menus to the controls, but the the custom drawn
context menu item... more >>
How to get the selected rows
Posted by cindy liu at 5/4/2005 4:58:03 PM
Hi,
I have a DataGrid. I can select multiple rows and want to know which rows
are selected. How do I do this?
Thanks in advance!!!
Cindy... more >>
Name property being modified at runtime ???
Posted by Brad at 5/4/2005 4:51:02 PM
Hey all - thanks in advance for the help.
I am messing around with layout management and have a naming issue I cannot
seem to track down. I am handling the layout event (Layout()) for my controls
and, when checking the Name property for any of the children passed in (via
e.AffectedControl.C... more >>
Help Hiding Maximize Button on Form
Posted by webbertsolutions NO[at]SPAM newsgroups.nospam at 5/4/2005 3:21:52 PM
I am trying to hide >> JUST << the Maximize button.
I want the Minimize and Close to still show up and work.
This is what I tried. The call to GetWindowLong() always
returns Zero as the value.
Thanks,
Dave
// ------------------------------------------
[DllImport("user32.dll")]
s... more >>
textbox data format
Posted by nbohana at 5/4/2005 1:38:03 PM
I have a windows form that display's telephone numbers and dates. I am using
C#. I cannot find a way to format a phone number "(xxx) yyy-zzzz". Can
someone point me in the right direction!!
--
Norm Bohana... more >>
Adding transparency support to WinForms control?
Posted by David Veeneman at 5/4/2005 9:54:53 AM
Can transparency support be added to a WinForms control that does not
natively support it?
I'd like to add a TrackBar control to my Windows form. But the form uses a
gradient background, so I can't simply set the BackColor property of the
TrackBar to match the form. I have tried inheriting ... more >>
REPOST: MDI OnMouseLeave Problem
Posted by jon morgan at 5/4/2005 8:58:13 AM
Hi,
There seems to be a problem with mouse event handling in controls located on
MDI child forms in .net v1.1. When the control is first made visible it
receives the OnMouse Enter and OnMouseLeave events. If the child form is
then hidden and re-shown only the OnMouseEnter event fires - thereaf... more >>
Pressing Enter in DataGridTextBox Column
Posted by ramnadh_nalluri NO[at]SPAM semanticspace.com at 5/4/2005 7:26:23 AM
Hi,
I had written a TextBox Column by extending the DataGridTextBoxColumn.
I need to enable a feature in the TextBoxColumn. The feature is to
allow the multiline in the textbox column. So i kept the multiline ,
wordwrap,scrollbars properties of the textbox to true. It's working
fine. I handle... more >>
Read the username of the current user in a domain
Posted by news.microsoft.com at 5/4/2005 7:20:24 AM
Hello
I read many security articles and most of them are targeted at webbased
apps.
To what I learnt, .net supports 2 types of security, Role Based & Code
Based.
What I wanna do is, I want to retreive the username of the current user.
Also as to which groups they belong to.
Is the... more >>
Windows.Forms.Timer hangs cpu to 100%
Posted by alexliv NO[at]SPAM elbit.co.il at 5/4/2005 6:12:52 AM
Hello,
I am working on a big project with multiple work threads and one UI
thread,
In the UI thread i have some forms that use timers.
After a time of working on the application it hangs in 100% cpu.
the timer is used as a switch when an operation is needed meaning when
a button is clicked the... more >>
problem combobox
Posted by jonathan at 5/4/2005 2:01:09 AM
Hi All!!
I'm troubled with Combo Box.(WinForm)
I'am Coding
Public p_frm As Form9
p_frm.ComboBox2.Items.Add(MonthCalendar1.SelectionStart.ToShortDateString().Replace("-",
""))
I want to select a last-Added-Item!!
In VB6.0,I guess existing NewIndex Property..
How can I solve a prob... more >>
force datagrid save?
Posted by Jonathan Crawford at 5/4/2005 12:00:00 AM
Hi
I have a datgrid and when I click the toolbar or menu
which has a save action, the last change is ignored.
Is there anyway to force the datagrid to save
the current record?
thanks
jonathyan
--
===============
Jonathan Crawford
01273 440018
07799 068570
fax 01273 380221
jc@... more >>
Threading Error
Posted by JezB at 5/4/2005 12:00:00 AM
I'm writing a windows forms application which receives events from an
external application, and then responds to those events by modifying things
on the form. It's capturing the event but on trying to modify the controls
on the form I'm getting the error:
[System.InvalidOperationException] ... more >>
Create a windows application as a DLL
Posted by Chakra at 5/4/2005 12:00:00 AM
We have a situation where one windows form application needs to invoke forms
in another windows form application. Is it possible for the output of a
windows forms application to be a DLL ?
... more >>
Getting changed value in a DataGrid cell with out moving cursor
Posted by Techstudent at 5/3/2005 1:41:02 PM
I have a editable DataGrid which is bound to a datatable.I use functionkeys
to handle save and other functionality.
IssueDescription:
When i change a cell and with out moving away from that cell if hit any
function key.
the datatable doesn't have any modifed rows, it think no data has changed... more >>
Transparent background problem
Posted by David Veeneman at 5/3/2005 12:23:45 PM
I have created several UserControls with transparent backgrounds. To enable
transparency, I've added the following statement to the constructor for each
control:
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
On most of the controls, transpanency works fine. But on a ... more >>
Custom Drawn ComboBox: DrawFocusRectangle doesn't always work???
Posted by TT (Tom Tempelaere) at 5/3/2005 9:55:04 AM
Hi there,
I made a custom drawn ComboBox. The DrawItem event handler is (explanation
follows)
<code>
private void OnDrawItem (
object sender,
System.Windows.Forms.DrawItemEventArgs e )
{
ComboBox theCombo = (ComboBox) sender;
DataRowView drv = (DataRowView) theCombo.Items[... more >>
Limiting rows in a datagid
Posted by Oldman at 5/3/2005 8:45:02 AM
How do you show only the top n rows of a datable in a datagrid without
actually removing the rows from the datatable. Is there the equivalent of
the SQL TOP command for filtering the rows?
Thanks,
Oldman... more >>
click button on user control that will change text on parent form
Posted by thomasamillergoogle NO[at]SPAM yahoo.com at 5/3/2005 8:35:32 AM
I have a simple problem I have a user control that I added to a main
form.
When I click a button in the user control I want to change the text of
a label that is in the main form.
This is the code in the user control:
private void button1_Click(object sender, System.EventArgs e)
{
Fo... more >>
Impersonate user using VB.NET and win2000?
Posted by Chris at 5/3/2005 7:37:48 AM
We are building a distributed vb.net winform application.
We don't want to add the user to a NT group that has sql
permissions as the user will be able to open query
analayzer and view/execute sps. Looking into impersonating
a user that does have SQL permissions when the application
is runnin... more >>
Form Location
Posted by RbanBph at 5/3/2005 12:34:02 AM
Hi,
I have developed an application vb.net. I have a tab control
placed on a form(Base form). On click of each tab different forms are
dispalayed in front of base form. I want to set the location of base form and
display form such as it should look like a single form. For this I... more >>
q: Localazition of an Button
Posted by Norbert Thek (News) at 5/3/2005 12:00:00 AM
Hi
I'm trying to localize my App.
My problem is, I have a Button which switch the text (Start/Stop)
How can i Localize this?
Because if I want to add an string to Formxxx.resx file
I get the Error that this file belongs to another (to the Formxxx.cs )
and added strings probably get lost.
... more >>
HTML Text Display
Posted by JezB at 5/3/2005 12:00:00 AM
I'm receiving some text from a web service which contains HTML tags, but I
want to display this in a Rich Client Windows Form. Is there any easy way to
do this ? The only way I can see currently is some complex processing which
will convert the html tags to the appropriate RichTextBox selectio... more >>
How to set Column headers as row headers in Data grid control
Posted by VR Ravinuthala at 5/2/2005 2:04:03 PM
All,
New to the Data grid control.
i have to display the data in reverse. Column headers as row headers and row
data as column data. Is there any flag besed setting i can use ?
Appreciate any suggestions/help.
Thanks
VR
... more >>
saving app size and location
Posted by shefali at 5/2/2005 1:50:07 PM
Hi,
I have an app developed using Windows Forms. I need to save the size that
the user resizes the app to, so as to open the app window to that size when
the user restarts the app. I also need to save the desktop location of the
app, so as to display the app window at that location when the... more >>
helpButton...
Posted by SteveB NO[at]SPAM lakefront.com at 5/2/2005 12:00:08 PM
hi:
is there a way to have the helpButton appear on the form title bar and yet
still keep the min and max buttons?
the documentation states that both min & max properties should be set to
false inotder for the helpButton to appear.
thanks...... more >>
HOW to prevent app from crashing when Shdocvw is corrupted or miss
Posted by Vico at 5/2/2005 9:17:42 AM
Hi everyone!
I have a WindowsForms application which has a form that loads the Web
Browser control using interop.
Is there any way to prevent the program from crashing when the shdocvw.dll
(installed by IE) is corruputed? Where could I place a try catch statement
to
handle this?
Th... more >>
Auto Hide Toolbar
Posted by RbanBph at 5/2/2005 12:31:03 AM
Hi,
How can I autoHide a Toolbar in vb.net?
Thanks in advance,
-RbanBph... more >>
Windows on top like 'Taskbar'?
Posted by Sirius at 5/2/2005 12:31:01 AM
How i do with vb.net??
I find some code in visual basic 6.0... but not in vb.bet
thanks Luca... more >>
DroppedDown
Posted by Chandra Kotha via DotNetMonster.com at 5/2/2005 12:00:00 AM
Hello Sir,
This is Chandra and Working as Software Engineer. I got a really weird
problem with ComboBoxes.
I have set the ComboBox DroppedDown Property to true.
Now the actual problem is When the ComboBox DroppedDown is Shown I have to
actually click twice to get out of the form or need t... more >>
question about automatic logout with winform
Posted by YongSeung Kim at 5/2/2005 12:00:00 AM
Hi,
I would like to achieve automatic logout after a certain period time with no
activity.
I made an public variable (e.g IsAcccessGranted ) and set it from a
database.
I want to make a logged-in user log-out when He does not do any action with
the application.
Is there anyway good way t... more >>
Toolbar Images
Posted by Saleh Al-Shammari at 5/2/2005 12:00:00 AM
Hi All
I Have a windows from with a toolbar with ImageList set and ImageIndex is
set for every button, IN normal state everything is displayed as it should
be.
But when I add the line
Application.EnableVisualStyles();
The images on the toolbar are not displayed.
Any help would be ... more >>
Prevent form opening twice
Posted by Jonathan Crawford at 5/2/2005 12:00:00 AM
Hi
I have a button in a data grid that opens a frm and
puts some data into it. I wanted to stop the user clicking the
row below and opening another copy of the form.
Dialogue won't work as it won't allow me to put the data in
the rich text box of the newe form
I tried declaring the new ... more >>
Data grid even handler firing multiple times
Posted by Jonathan Crawford at 5/2/2005 12:00:00 AM
Hi
I have a data grid with a fdata button which has three event handlers
I set the event handlers in code when I reset the table style. This works
perfectly
the first time. Unfortunately I have to reset the tablestyles regularly.
Each time
this happens something goes wrong and and HandleCell... more >>
MDI Forms - Children Calling Children of Parent
Posted by combo cas at 5/1/2005 11:56:27 PM
Hello,
I have an error message when trying to call a child form from a Mdi
child form. I am trying to keep all forms within the same mdiParent
form.
I get the error:
An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll
Additional informatio... more >>
Raising Keydown events
Posted by Derk Jan at 5/1/2005 6:15:04 AM
Hi,
We're developing for touchscreen, and created a homegrown keyboard that
receives events based on what's clicked on the screen.
Now we want to pass on this keycode to another form/field
Can we raise our own keydown events(having trouble trying to arrange this)
that the other form/field c... more >>
Minimum practicle time for Timer Control
Posted by Harassment Panda at 5/1/2005 3:59:01 AM
Im am using the timer control in a C# application and seem to be getting some
strange results relating to the timer event fire.
So whats the minimum practicle time for the fire? Is 20 milliseconds
practicle?
Failing that is there any way to measure when the event fires compared to
when it... more >>
cancel event
Posted by Shawn at 5/1/2005 12:00:00 AM
Hi.
I'm having trouble with my ListBox. This is what I want to do. I have two
listboxes. When I click on an item in the first one I want the second one
to fill up with values depending on which item was clicked in the first
listbox. The problem is that ListBox1_SelectedIndexChanged fires whe... more >>
|