all groups > dotnet windows forms > january 2006 > threads for january 22 - 28, 2006
Filter by week: 1 2 3 4 5
Security Model
Posted by Jeff at 1/28/2006 2:04:23 PM
I am designing a new Windows Forms client application (with SQL Server db on
the back end) for which users will authenticate via NT authentication
(network), or SQL Server authentication. Users who are granted access to the
application must also be granted access to specific forms and controls... more >>
'DisplayMember' is not a member of 'System.Windows.Forms.ListView'.
Posted by Lynn at 1/28/2006 12:00:00 AM
Hi,
I am trying to display the processes running on my system to a listbox. but
i got 'DisplayMember' is not a member of 'System.Windows.Forms.ListView'.
during debug.
any clues? below is the code
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handl... more >>
code clean up
Posted by Lynn at 1/28/2006 12:00:00 AM
Hi,
I have added some buttons and boxes on the VB.net form. After deleting these
buttons and boxes from the form, I find that the code is still there.
Does VB.net have a feature to clean up these unwanted codes?
thanks
... more >>
ToolStripStatusLabel blinking tooltips
Posted by flagrant99 at 1/27/2006 9:31:26 PM
Does anybody know how to get the blinking to stop. When I hover over the
ToolStripStatusLabel sometimes it blinks and sometimes it doesn't. So the
tooltips seem to behave inconsistently. The blinking is very annoying and
makes the tooltip unreadable.
And what does AutoToolTip property do.
... more >>
Recommendations for graphical application
Posted by CraigH at 1/27/2006 4:28:43 PM
Hi,
I am at the early stages of defining the technology requirements for a
graphical, 2D Windows Forms application with display features along the
lines of MS Visio. It has a requirement to display it's data in a number of
tree or network like formations.
The "workspace" will take up the... more >>
Databinding between two forms in .NET 2.0
Posted by Henrik Skak Pedersen at 1/27/2006 4:24:02 PM
Hi,
I would like to data bind two different forms with each other. I would like
to have employees on the first form and orders on the second. When the
selected employee changes, the orders should change two. It is easy to do on
a single form where you can add a new bindsource which points t... more >>
Recommendations for graphical application
Posted by CraigH at 1/27/2006 2:09:17 PM
Hi,
I am at the early stages of defining the technology requirements for a
graphical, 2D Windows Forms application with display features along the
lines
of MS Visio. It has a requirement to display it's data in a number of tree
or
network like formations.
The "workspace" will take up th... more >>
Outlook Frame
Posted by NOT_SO_CLEVER at 1/27/2006 12:32:29 PM
Hi There,
Hope everyone is well? Im after a sample Application where the front screen
looks like the Outlook 2002 or 2003 screen, ie with the Frames etc.I would
like this to be free if Poss. Anybody got any Ideas?
Many Thanks
Si
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Project Data Source Using Derived Interface
Posted by Mike Livenspargar at 1/27/2006 10:34:28 AM
I've created a project data source based on an interface that in turn derives
from another interface. When in Visual Studio Data Sources view I examine the
properties exposed by the data source, I see only those properties in the
derived interface and none from the base interface.
A data so... more >>
multiple forms/common menu structure
Posted by Jeffrey at 1/27/2006 10:25:02 AM
I have project where I need multiple forms using a common menu structure
(like a web solution but with WinForms). Is there a best way to do it? I'm
currently trying inherited forms, but I'm not sure that's the best way as it
seems to present challenges.... more >>
DoubleClick Event Won't Fire
Posted by LucidObscurity at 1/27/2006 9:49:04 AM
I have a form with labels that can be dragged and dropped onto
different regions of the form either individually or in groups. I
signify labels which have been selected by toggling the BorderStyle
between FixedSingle and Fixed3D. Upon a single click the toggle
occurs. Upon a double click I di... more >>
Odd behavior with .NET 2.0 winforms
Posted by NFXBeats NO[at]SPAM gmail.com at 1/27/2006 8:38:49 AM
Maybe this is normal, but as I type in the code file, the designer tab
shows the little asterisk indicating the file has changed in the
designer as well.
Normally this wouldn't bother me, but in my case the designer files
(including the .licx and resx) are also tagged as changed and get
check... more >>
Combo box selected index
Posted by RbanBph at 1/26/2006 11:08:03 PM
I have set a datasource to a combo box. COmbo box style is drop down list. I
am trying to set it's selcted index to 0 at run time bit it is throwing
following error :
An unhandled exception of type 'System.OutOfMemoryException' occurred in
system.windows.forms.dll
Additional information:... more >>
datetimepicker question
Posted by ken at 1/26/2006 9:57:02 PM
How to get the month or day of datetimepicker
e.g if day 1 it show 1, i want it to be 01
Moveover, can i change the datetimepicker into three combo box, one is day,
month, and year?... more >>
BindingSource - Detail view - Is Current record dirty?
Posted by A.M-SG at 1/26/2006 9:34:59 PM
In a Windows Form, I have a set of detail controls bound to a table in a
dataset through a BindingSource. I cannot figure out how to tell if the
user has edited any data in the controls that needs to be saved to the
database.
The EndEdit method will force any changes to update back to th... more >>
NullReferenceException in Windows.FormsUnsafeNativeMethods.CallWindowProc in .NET 1.1
Posted by Stan Huff at 1/26/2006 2:15:36 PM
I have a stack trace of a NullReferenceException and the only code in the
stack trace is from System.Window.Forms.
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr
wndProc, IntPtr hWnd, In... more >>
DBAccess in Winforms
Posted by Vedanshu Mandvikar at 1/26/2006 1:30:05 PM
Hi EveryOne,
What is the best approach for data access while developing applications
using Windows Forms ? Is it opening, working with and closing a new
SQLconnection and SQLcommand object everytime a DB access is needed , or
maintaining a single open connection/command object at the applic... more >>
Is Remoting a Late Binding process
Posted by millner,kim at 1/26/2006 11:20:21 AM
Is there any performance issues using remoting.
Kim
... more >>
.NET 2.0 Quick Starts for WinFOrm
Posted by A.M-SG at 1/26/2006 9:42:40 AM
Hi,
I found .NET.1.1 quick starts for WinForm quite useful. It is being hosted
at the following link:
<http://samples.gotdotnet.com/quickstart/doc/default.aspx>
Do we have .NET 2.0 Windows Forms quick start hosted somewhere?
Thank you,
Alan
... more >>
Can I have a ComboBox with multiple column dropdown
Posted by A.M at 1/26/2006 7:41:57 AM
Hi,
Can I have a ComboBox with multiple column list with header? We have such
capability in Microsoft Access forms where we can bind a ComboBox's list to
a query and show multiple column and column header. I am looking for similar
feature is .NET WinForms.
Any help would be appre... more >>
Multiple message threads in single app
Posted by RFlaugher at 1/26/2006 6:37:05 AM
I have an app with two forms which are displayed at the same time. When
either of these opens a modal child form both are disabled intil the modal
child is closed. Is there a way to prevent this from happening? I believe I
need to create two independent message threads but I have no idea how... more >>
Windows Forms: Preferences Form Example
Posted by lltaylor2000 NO[at]SPAM yahoo.com at 1/26/2006 3:16:29 AM
Hello,
Many application these days have the settings form - where the left
side is a tree listing all the available settings which can be edited.
The right displays the relevant form when an option in the tree is
selected.
This is a really basic question - so apologies.
But how do you stac... more >>
Problem with Internet temporary files in No Touch Deployment
Posted by placek at 1/26/2006 2:05:21 AM
Hi all.
I created a windows application and used No Touch Deployment to deploy
it on the web server. On the web server there is a virtual folder,
which points to Release folder of my application.
When I run it for the first time, everything is correct. But when I
change version of my applic... more >>
"Use of Ole1 services requiring DDE windows is disabled"
Posted by cody at 1/26/2006 1:46:20 AM
"Use of Ole1 services requiring DDE windows is disabled"
I get this error whn I drag files out of my window with the "create link"
mode (hold alt key). When I copy or move the file there are no problems.
How do I prevent the error? How do I enable "Ole1 services" or how do I make
my window... more >>
datagridview validation
Posted by ken at 1/26/2006 1:41:04 AM
I want to add some checkbox, combobox into the datagridview, how to do that
moreover
how to add validation into datagridview?... more >>
Problem localizing inherited form
Posted by Markus Hjärne at 1/26/2006 12:00:00 AM
Hi,
I have a problem trying to localize an inherited form using VS2003. I have
inherited a form from a non-localized base form in a third-party assembly.
Since all controls in the base form is protected there's no problem changing
for example the Text property of inherited Label controls in th... more >>
Hiding MDI toolbar
Posted by The_Assimilator at 1/26/2006 12:00:00 AM
My app uses an MDI interface. However, one of the design requirements is
that the MDI children don't actually behave like MDI forms, in that the
small toolbar containing the MDI minimize/maximize/close buttons is not
shown when an MDI child is opened in its parent. Also, the MDI children
sho... more >>
DataGridView change current cell programmatically
Posted by Stanislav Nedelchev at 1/26/2006 12:00:00 AM
Hi there,
I have problem when i try to change current cell of DataGridView by my
program. In dot net version 1.1 i'm using DataGrid
and there is DataGrid.CurrentCell = new DataGridCell(1,1);
But i didn't find a way how to do this with DataGridView.
I just want when it's neessary to make my cure... more >>
Visual Inheritance - Yes or No ?
Posted by Dino Buljubasic at 1/25/2006 8:59:48 PM
I am using VS 2005 (C#) and I am considering using Visual Inheritance.
I have heard about some problems with it, such as controls
dissapearing and would like to know from people who have experience
with Visual Inheritance what do they have to say about it.
Any ideas, suggestions, concerns, t... more >>
testing ...
Posted by Dino Buljubasic at 1/25/2006 8:56:42 PM
.... just testing ...
... more >>
Strategy to Refresh Multiple Forms Simultaneously
Posted by Jeff at 1/25/2006 8:42:41 PM
I plan to write a Windows Forms MDI application for a medical office. Users
must be able to select a patient and view related information on multiple
forms; with1-4 forms opened at the same time for the same patient; each form
showing a different type of patient-related information.
After v... more >>
Any safe way to do this?
Posted by Joe at 1/25/2006 6:01:54 PM
I need to some how add a page to a tabcontrol. The problem is I have a
single method to bring up the dialog which contains the tabcontrol and
doesn't return until the dialog is closed and I don't have any events for
it.
The only thing I can think of is to start a thread before calling that ... more >>
How to change CurrentRow.Index in dataGridView?
Posted by Mladen Belaj at 1/25/2006 2:21:44 PM
After Fill method, CurrentRow.Index is 0, but I need that some other Row is
CurrentRow. How?
Thanks
... more >>
Issues with adding/removing form load and closed events.
Posted by moondaddy at 1/25/2006 1:29:48 PM
I'm running VS2005 Team Arch. and winfx beta 2. I have a c# project windows
application so I assume this is the right this is the correct forum rather
than a vista forum.
I added a windows form to the project and double clicked on it. It opened
the code window and added the Load event. I... more >>
ViewState Collection in ASP.Net
Posted by SouthSpawn at 1/25/2006 1:10:05 PM
Hello,
Let's say I am creating a class library project.
This class that I am creating will work for a windows form project and
also a asp.net project.
How can I store something in the "ViewState" collection in a class
library
project?
Thanks,
Mark
... more >>
Label text in bold gets cut off when the text alignment is 'right'
Posted by RK at 1/25/2006 2:16:05 AM
Hi,
Just create a label as follows.
label1.Text = "labelW";
label1.TextAlign = ContentAlignment.MiddleRight;
label1.Font = new Font(label1.Font, label1.Font.Bold);
When this code is executed, the last letter 'W' gets cut off.
OS is Windows XP, graphics driver used is intel extreme graphics ... more >>
location property
Posted by SwatSoftwareDev at 1/25/2006 12:00:00 AM
Hi,
Is there any way to have location property's X or Y greater than 32767.
Thanks in advance,
Regards,
Swat
... more >>
null exception in TrayIcon.set_Icon
Posted by Nadav Popplewell at 1/24/2006 10:51:02 PM
Hi everybody,
I have an application that minimizes to a NotifyIcon.
Occationally I get this error:
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.NotifyIcon.UpdateIcon(Boolean showIconInTray)
at System.Windows.Forms.Not... more >>
Re: question on losing focus
Posted by CobraStrikes NO[at]SPAM al.com at 1/24/2006 8:44:02 PM
Sorry I didn't made it clear.
I hook onto the Leave event of the panel and in there I check wheather another control will
receive focus.
I hope that makes sense.
... more >>
Best Practices for UI controls naming convention
Posted by A.M-SG at 1/24/2006 5:52:01 PM
Hi,
We are having different opinions how to name controls in our SmartClient
application.
Is there any best practice guide how to name UI controls?
Should we change the default names that IDE assigns to labels and panels
which we never refer to them in our code?
It would be greately he... more >>
question on losing focus
Posted by CobraStrikes NO[at]SPAM al.com at 1/24/2006 5:20:58 PM
Hello,
I have panel containing textboxes, I don't mind textboxes losing focus BUT I need
to ensure the panel does not lose the focus until I am ready.
How can I do this.
Thank you in advance for your help.
... more >>
DataBinding Problem
Posted by Martin at 1/24/2006 3:55:04 PM
Hello,
i have a custom collection implementing IList. this collection holds custom
objects. my binding object is the collection. i implemented the
PropertyChanged events in my custom object.
example:
txtMyControl.DataBindings.Add("Text", myCustomCollection, "MyPropertyName");
the probl... more >>
Tree control
Posted by KDV at 1/24/2006 1:35:12 PM
am using a TreeView control. I want to do some operations on the control
i.e. adding/removing nodes etc. Is it possible to somehow lock the tree
control so that it won't update itself after every operation, so that when
all operations are done then only update once.
Thanks in advance
KD... more >>
Embedding Office Documents in .NET 2.0
Posted by Chris Messer at 1/24/2006 1:04:10 PM
I am trying to embed an Office Document in a VS 2005 Windows Application
which I can edit and save.
The only documentation I can find uses a COM component Webbrowser control.
I would like to avoid using this and use the new .NET 2.0 Webbrowser control
but I can't figure out how to communicat... more >>
HTML interface in a winforms application
Posted by Steve at 1/24/2006 12:31:00 PM
I'm developing a Add-On based WinForms app. The "Host" application is a
basic shell of an application that loads modules that implement the actual
functionality. OK, so that is out of the way. :)
When the host app starts, I wanted to have an HTML "start" page displaying
the different pro... more >>
locating MessageBox within calling form?
Posted by brian_harris at 1/24/2006 11:31:35 AM
I am using 2003 .NET and have a simple form that when encounters an error it
will
bring up the MessageBox to display the error. I want that message box to
pop up over the calling form, but it always pops up in middle of my screen.
My understanding of the documenation implies that this can b... more >>
Embedded modal question
Posted by S Wheeler at 1/24/2006 9:22:32 AM
Hi all -
I am somewhat new to winforms and my question should be kind of basicbut I
have been unable to find the solution thus far.
I have a VB.net app that requires a user to login; the idea is to open the
app with toolbars disabled - the user clicks on a "login button" and a login
dialo... more >>
Delegate use between forms failing in Class Library project
Posted by JohnMSyrasoft at 1/24/2006 9:01:04 AM
Hi, I'm using delegates successfully in a Windows Application project. As
soon as I try the same code in a Class Library project, I get an error. Here
is the simple code:
Form1
Public Delegate Sub LabelWriter(ByVal txt As String)
Public Sub WriteLabel(ByVal txt As String)
... more >>
Create UI in the style of Outlook 2003
Posted by Lars Olsson at 1/24/2006 7:34:06 AM
Basically: How to do it?... more >>
Determining the XP display style setting
Posted by Phil Jones at 1/24/2006 12:00:00 AM
Is there a way to determine whether the user is running the WindowsXP theme,
or the old Grey/Silver windows one.
[what I'm actually trying to do determine the background color of a text-box
when it is disabled :) If anyone knows how to do that as well, it'd be
super useful!]
Thanks ever... more >>
Form title bar
Posted by Ayan at 1/23/2006 10:37:30 PM
Hi,
In an application I need to develop a transparent window's form with
opaque title bar. The transparency of the form can be achieved easily
with TransparencyKey attribute but in this case the title bar, which is
also a part of the form, becomes transparent too. Can anyone please give
me ... more >>
How to set Site for Control?
Posted by marcin.rzeznicki NO[at]SPAM gmail.com at 1/23/2006 4:12:03 PM
Hello,
I noticed very strange behavior while setting Site property of Control,
and I don't know how to solve that problem. here goes the stroy: I have
written my custom control - assume its type is C - and some class which
implements IComponent and IContainer - that container is going to
contai... more >>
DataGridView combo box
Posted by Mark Rendle at 1/23/2006 3:37:59 PM
I've got a DataGridView with a combo box in one of the columns. As it
stands, the user has to click the dropdown button twice - once to focus the
cell, and again to drop down the list. I can't find any property to change
this behaviour, the EditingControlShowing event doesn't fire until they
... more >>
How to get rid of dialog icon?
Posted by Gregory Khrapunovich at 1/23/2006 12:24:28 PM
Hi,
I am developing Windows Forms/C# application under VS 2003. Some dialogs
have wrong icons. I can easily replace the icon to another one using
dialog's "Icon" property, but what I really want is to remove the icon from
the dialog altogether. I tried to delete the Icon property value. It w... more >>
[NET 2.0] FullTrust zone
Posted by Jarek Mielcarek at 1/23/2006 12:00:55 PM
Hello,
My question is: how to add mapped disk to FullTrust zone?
I think that is the reason my program doesn't start from network location.
Jaro... more >>
Get reference to datagridview column from given coordinates.
Posted by jjeffers1 NO[at]SPAM hotmail.com at 1/23/2006 11:26:21 AM
Does anyone know a method to retrieve a reference to the datagridview
column that contains given client coordinates?
Essentially I am trying to implement drag and drop functionality from a
listbox to a datagridview. In this case I am using an item dragged from
the listbox into the datagr... more >>
SelectAll and reverse video effect
Posted by Rod at 1/23/2006 9:31:02 AM
I am selected the text in a textbox using SelectAll. It does select all but
does not give the reverse video effect that you get if you select the text
using the keyboard. Is there a trick to make this happen.
many thanks
Rod
... more >>
Want bi-state not tri-state checkbox in datagrid
Posted by Rod at 1/23/2006 9:26:01 AM
I am adding a checkbox to a datagrid in the normal way (see below), but I
end up with a tri-state checkbox.
I only want a bi-state one and I can not see how to arrange this.
Many thanks
rod
------
Dim myCol As DataGridColumnStyle
myCol = New DataGridBoolColumn
myDataGridStyle.Gri... more >>
Build error, nothing in task list
Posted by Jess at 1/23/2006 4:53:03 AM
Hi,
I have a VB.Net solution with 5 projects, 4 of the projects are control
libraries and the 5th is a forms application that displays the controls.
If I open the form into the designer, the solution will fail to run (it pops
up the build error warning box), but if I remove the form from t... more >>
Print Document
Posted by Charles A. Lackman at 1/23/2006 1:33:30 AM
Hello,
I am creating a print document and it works well, but how do I make the
print object only print pages 1, 2, 5?
This is how I am currently building the print function.
Private WithEvents docToPrint As New Printing.PrintDocument
Private Sub Button1_Click ....
..PrintDocumentPages(i... more >>
Label Transparent on picturebox vs 2005 c#
Posted by alexei.x NO[at]SPAM gmail.com at 1/22/2006 8:47:24 PM
Searching the net to get a way to draw transparent labels like in VB6
with background picture boxes i found some messages
and here is a little routine wich will save some time
this routine will draw all labels with transparent background...
enjoy :
1) Create a PictureBox with an image, name i... more >>
Listview Bug, Surely?
Posted by Toff McGowen at 1/22/2006 7:30:28 PM
Hi
I have a form with a listview on it. When an item is selected it causes
other controls on the form to be filled with data related to that item. If
the data is dirty then i want to check that with the user using a
cancel/yes/no message box before filling the detail control with the data of
... more >>
setting culture of threads
Posted by Nadav Popplewell at 1/22/2006 5:55:03 AM
I have an application that needs to be able to run in both english & Hebrew.
(Regardless of the culture set in the windows Control Panel).
So I set CurrentThread.CurrentCulture & CurrentThread.CurrentUICulture to
the cutlure I want at the beginning of the program.
Then I found, To my suprise th... more >>
|