all groups > dotnet windows forms > december 2007
Filter by week: 1 2 3 4 5
Filling a list box from a table
Posted by John at 12/31/2007 3:48:26 AM
Hi
VS2008. I have a table in an access database. How can I fill a list box with
a column from the table?
Thanks
Regards
... more >>
hiding names spaces & heirarchy.
Posted by Ibrahim. at 12/30/2007 10:37:01 PM
Hello,
HOw can I hide namespaces & class heirarchy in object browser of VS2005, I
dont want to expose these namesspaces to the developer except the required
ones..
are there any settings i can do it programatically to achieve this?
Thanks.
... more >>
refresh the title bar of a "sub window"
Posted by Alex at 12/30/2007 10:09:30 PM
Happy New Year !
I have a rather trivial question, but it bugs me for a while.
Here is a bullet-wise description:
1. My application has a "main form". It has two buttons.
2. The first button is an open button. By clicking it, I can open a
data file (e.g., file1.dat).
3. The secon... more >>
Why does my F8 (step into) won't work
Posted by Luc at 12/30/2007 7:34:01 AM
Hi,
since today, I can not use my F8 key to step trough the code,
does sombody have an idea how to set this key again?
--
Best regards
Luc... more >>
My UserControls are crashing VS2005
Posted by 0to60 at 12/28/2007 4:34:48 PM
I have a solution with a couple .dll projects and an .exe project. In the
..exe project there are a few UserControls and some classes that inherit from
Panel. They all appear in my Toolbox under "<solution name> Components". I
can drag them onto forms and such and that all works. It compil... more >>
Treeview for Recursing Directory and File Structure
Posted by Elmo Watson at 12/28/2007 4:16:16 PM
I need to feed some routine a 'root' folder, and then, have the code recurse
through the directory structure, showing folders and all files in each
folder.
I've been working on this for 2 days, having searched the net, but nothing I
do seems to work.
Can anyone point me to a working exampl... more >>
Another Treeview question
Posted by Elmo Watson at 12/27/2007 4:56:23 PM
I want to be able to define which images are used, when adding nodes
dynamically
However, whenever I add an imagelist with images as the imagelist for a
Treeview, it automatically picks an ImageIndex, and it affects the images in
every node.
I don't really understand this concept, since ... more >>
Treeview and Checkbox question
Posted by Elmo Watson at 12/27/2007 1:50:58 PM
Is there any way to make checking a checkbox in a Treeview mutually
exclusive?
That is, to make it so that only one item may be selected....
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGridView, preventing CancelNew
Posted by Jim at 12/27/2007 1:48:31 PM
Hi,
I have a DataGridView bound to a BindingList. When the user clicks on the
"new row" row at the bottom of the grid, a new row gets added with all the
right defaults, etc. The problem is that, unless they edit this row, it
disappears the moment they leave it. I would like for the new r... more >>
Some exception can not be capture in window xp x64 edition.
Posted by Colin Han at 12/27/2007 12:07:12 PM
In WinXP x64. I had write a WinForm project. some operation in Form_Load =
method maybe throw a exception. But if we run this application. we can =
not capture any exception. The application can run normal. But some code =
is not execute.
I'm a third part control provider. I think this problem... more >>
Saving pairs in memory
Posted by John at 12/25/2007 10:05:22 PM
Hi
I have a list of value pairs as below;
Section Name Section Type
A1111 Z9999
B2222 Y8888
C3333 X7777
What is a good intuitive way to store this information in memory? I was
thinking a two-dimensional array of strings, is there a ... more >>
Build ListViewItem.Content
Posted by Eternal Snow at 12/25/2007 1:58:40 PM
Hi all.
I'm using ListView in WPF file.
I added 3 column in a view (ListView.View = AGridView, with 3 column in the
view).
ListViewItem item = new ListViewItem();
item.Content = new String[] { "1", "2", "3" };
listView.Items.Add(item);
The result display is:
String[] Array St... more >>
Know key status
Posted by Alexander Vasilevsky at 12/24/2007 9:28:06 PM
I need to know the status of keys. By example: Shift.
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
... more >>
Preventing focus from leaving DataGridView
Posted by Larry at 12/24/2007 3:31:28 PM
Hi,
I need to prevent a user from moving away from a DataGridView if it contains
invalid data.
Some specifics: The user should be able to move within the specific grid,
but not move to any other control on the form (including any other grid on
the form). I have tried a number of methods... more >>
windows explorer always not responding
Posted by windows explorer always not responding at 12/22/2007 5:05:00 PM
Hello, its my first time to post in here, I just want to ask if what is the
problem with my computer or my OS?
Because when I open a window for a long time it wont respond after a while.
Can I ask for any help here please?
My OS is Windows Vista Ultimate, 32-bit...I keep on Updating it but... more >>
Connecting two computers with an Ethernet Switch
Posted by cleancondenser at 12/22/2007 3:07:01 PM
Old Compaq / Windows XP 192.168.0.21
New Compaq , with keyboard , / Windows VISTA 192.168.0.1
I enabled file sharing for the entire C:Drive on the old computer
The new VISTA computer in" Network and sharing "
sees the old XP computer but
all I can see and open is the
1) old printers
2... more >>
mail form
Posted by sports complex at 12/22/2007 6:54:01 AM
adding a form handler to my website... more >>
WPF ?
Posted by BERTHOLLET_Loïc at 12/22/2007 2:13:18 AM
hello world,
is there a forum dedicated to WPF ?
Regards,
Loïc
... more >>
structure as a property
Posted by Stivo at 12/21/2007 2:04:00 PM
Take the structure existing structure Size, when you have a property Size
your click on Design Mode on the + and edit width and height.
But I tried to create a structure MyStructure
Structure MyStructure
public Key as long
public Text as String
end structure
but it is impossible to click... more >>
UseWaitCursor
Posted by PK at 12/21/2007 11:36:08 AM
When my main MDI form is loaded, I use a backgroundworker component to
do some work.When the worker starts, I set this.WaitCursor = true.
When the work is completed, I set this.WaitCursor = false. But, still
the WaitCursor remains...but if I move the mouse, it changes back to
normal arrow.
I ... more >>
Winforms on CITRIX, please advise
Posted by Luc at 12/21/2007 9:04:03 AM
Hi,
I've been contacted to build a small client server app. which will run on a
Citrix network. Does this have consequences for the development, are there
things I need to have in mind while developing?
All info regarding .NET developing for Citrix networks are most appreciated!!
Thx
-- ... more >>
Custom ApplicationContext and ClickOnce deployment
Posted by Joachim Rosskopf at 12/20/2007 11:08:13 PM
Hello,
in a small database-client-application I use a custom
ApplicationContox to first show a splash screen to do some
initialisation in a background worker. After closing that Form a
second Main Form, the real application should be shown. When I start
the application in VisualStudio 2005 ev... more >>
Hide form caption
Posted by Alexander Vasilevsky at 12/20/2007 9:32:38 PM
How hide form title, but kept the possibility of changing its size using
mouse (ie the style of the "None" would not be appropriate)?
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
... more >>
Grid/spreadsheet control that binds to a System.Data.Dataset (multi-Datatable) and automagically creates multiple sheets
Posted by TR at 12/20/2007 3:32:32 PM
I am looking for a control where I can do this:
TheControl.DataSource = MyDataSet
and then the control will automagically create a grid/spreadhsheet for
each Datatable in the MyDataset.Tables collection, and present a tabbed
interface something like Excel's Sheet1, Sheet2, Sheet3 bottom ta... more >>
Adding Event Handlers to Inherited Controls
Posted by stuppi at 12/20/2007 2:43:02 PM
I often create classes that inherit from standard controls in order to handle
certain events in a consistent manner. Being a novice propononet of
encapsulation, I add the event handlers in the constructor of the derived
class. However, as many of you have probably discovered, this can create... more >>
Lost MouseMove messages
Posted by bryanbassett@gmail.com at 12/20/2007 6:21:01 AM
I have a custom WinForms control that allows the user to draw with a
black pen in the control area. I use OnMouseDown, OnMouseMove,
OnMouseUp to get the points and draw a line between each point.
I find that if another control in my app uses a lot of UI thread time
(renders a jpeg in the OnPa... more >>
How Create Setup For Window Application with WebService in .NET
Posted by Neeraj at 12/19/2007 10:43:15 PM
Hi
I have an windows based application which is using the webservice.
I want to create the One Setup which not only install the
Application it should install the Webservice on given Virtual
Directeriy. How can i merge to differnt thing in one setup
Till Now i am creating two setup one for... more >>
child form location
Posted by Alexander Vasilevsky at 12/19/2007 3:39:58 PM
How child form to do appear in given position.
Trying to do so:
Form fRegistration = new Form();
fRegistration.Location = new Point(200,200);
fRegistration.Show();http://www.alvas.net - Audio tools for C# and VB.Net
developers + Christmas discount
... more >>
Before the Composite Application Block
Posted by Richard Coltrane at 12/19/2007 3:26:00 PM
Hello,
Ive been looking at the Patterns practises site. The UI App Block appears to
have been phased out. Although you can access it the tone appears to be
"dont - theres something better". But the only other "thing" i can find is
the CAB. This appears to be quite a heavy weight solution.
... more >>
OpenFileDialog.RestoreDirectory no longer works in Vista after installing VS 2008
Posted by haroldsphsu@gmail.com at 12/19/2007 2:50:46 PM
Hi all,
I have an app that relies on OpenFileDialog to change the current
working directory based on the user selection (i.e.
OpenFileDialog.RestoreDirectory = false). It was working fine on
WinXP/2003/Vista. But after I install VS 2008 (which also installed
KB110806 (.Net 2.0 Framework SP1... more >>
ClickOnce without user confimation
Posted by Mathias Fritsch at 12/19/2007 2:38:28 PM
I have set up my clickonce publishing to check for updates on every
application restart.
The manifest is located on an unc-path. As soon as the user restarts
and there is a new version on the Network there is a dialogue with the
choice to install the update or not.
Is there a way to skip that d... more >>
DoEvents in Windows Service
Posted by Elmo Watson at 12/19/2007 11:37:56 AM
I have a windows service that, technically works most of the time, but I
think I'm running into a situation that is caused due to actions being
started before the last action is completed.
In a Windows Forms application, I'd do this to overcome this:
System.Windows.Forms.Application.DoEvents... more >>
SmartClient Publishing Question
Posted by smithgp@msn.com at 12/19/2007 8:57:05 AM
Hello,
We have a SmartClient application built on the .NET 2.0 Framework. I
am using the publishing feature of VS2005 to publish the updates to
this program.
For example, let's say the publisher is Acme and the application is
named Foo.
The install process creates an item under the Star... more >>
How to show long labels on ListView columns?
Posted by Arto Viitanen at 12/19/2007 8:21:40 AM
We have a program that lets the user to compare several files. The files
are shown in ListView, with dataitems on lines and each file on separate
column. Names of the files are used as column headers. Here comes the
problem: since there are several files and dataitems are quite short
(a number o... more >>
binding nullable property
Posted by Marka83 at 12/19/2007 3:44:00 AM
I'm creating custom datetimepicker with nullable<datetime> property Value.
When I bind this control
Binding b = new Binding("Value", source, "some nullable property");
DatePicker.DataBindings.Add(b);
and start application it throws this exception
Invalid cast from 'System.DateTime' to 'S... more >>
'Column xxx does not allow nulls' error when control is bound and value was entered
Posted by dbuchanan at 12/18/2007 11:37:15 PM
Hello,
I have encoutered the error show below after attempting to save a new
record. This happens about 90% of the time under a set of conditions
described later below.
The main form contains a dataGridView and a button on that form opens a data
entry form performs edits or deletes on th... more >>
ClickOnce .application displayed as XML
Posted by MihaiT at 12/18/2007 9:27:02 AM
Hello everybody,
I am trying to deploy an application using ClickOnce, but i have a problem:
sometimes in IE the .application file cannot be interpreted. What I already
know, to save you some time / posts:
- I am not referring to the problem in FF or other browsers:
http://blogs.msdn.com/s... more >>
Restore Windows
Posted by Arne Garvander at 12/17/2007 2:28:54 PM
I have a window that is waiting for an event to occur. While waiting the
operator may minimize the window.
When the event occur I would like to restore the window and bring it into
focus. How can I do that programmtically?
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
enabling menu items and shortcut keys.
Posted by MarcG at 12/17/2007 12:46:09 PM
I have an edit menu with the usual menu items (cut, copy, paste...). In the
EditMenu DropDownOpening event, I enable or disable the individual items
depending on the state of my app. The default condition is disabled.
This works fine and the user can never get to an item that the app is not i... more >>
Color Scheme Guidelines?
Posted by CMoya at 12/16/2007 8:49:34 PM
So it seems Microsoft has purposefully abandoned the whole notion of
consistent color schemes on the OS level. It seems that in Vista, color
schemes in apps (toolbars, status bars, backgrounds, etc) are purposefully
DIFFERENT colors between apps for a reason.
My question is: Have they docum... more >>
JIT-compiled output
Posted by Gilles Ganault at 12/16/2007 8:44:51 PM
Hello
I'm learning about .Net, and was wondering about what happens
with the JIT-compiled EXE.
The first time I run my little "Hello, world!" sample, it's a bit
slow, but if I run it again, it's as fast as a VB Classic program.
If that is indeed due to JIT, where does Windows keep the co... more >>
Dataset questions, vs2008
Posted by John at 12/16/2007 5:42:36 PM
Hi
1. I am filling the dataset in my form load method as;
Me.MyTableAdapter.Fill(Me.MyDataSet.Clients).
What about the records that other users add to the database? Do I need to
run the fill command from time to time or will dotnet automatically fetch
these records periodically?
2. I... more >>
[VS2005] XP-style taskpane widget?
Posted by Gilles Ganault at 12/15/2007 5:55:17 PM
Hello
I'm only getting started with VB.Net. I installed VS 2005 Pro, and
would like to add an XP-style taskpane widget to a form:
http://www.bcgsoft.com/BCGCBTour/Images/TasksPane.jpg
I guess there are a bunch of them available. Among the most well
known, which would you recommend?
Tha... more >>
Windows Form DesignTime/Mode Detection
Posted by Laser Lu at 12/15/2007 3:43:35 PM
Hi, I'm a novice in .NET Windows Forms programming. Recently, I was stumbled
by a puzzle, regarding how to determine whether the code is currently
executing under design-time or not.
My code was written in C# under Visual Studio .NET 2003. In my project, I
just created a Windows Form as a bas... more >>
bindingsource not filling in custom list.
Posted by MarcG at 12/15/2007 11:20:01 AM
I am using a bindingsource as the datasource to a datagridview. In the
bindingsource properties, I set DataSource to "TaskSchedule", a class derived
from List<ScheduleItem>. I perform all schedule operations
(add/delete/modify) via BindingSource's Item, Add, and Remove methods. The
app works... more >>
Office Icons
Posted by John@nospam.infovis.co.uk at 12/15/2007 3:53:22 AM
Hi
Are Office 2007 icons available somewhere for use in vb.net winform apps?
Thanks
Regards
... more >>
Creating wizard
Posted by John at 12/15/2007 1:40:38 AM
Hi
I need to create a wizard in my application. Are there any third party
controls that provide some sort of framework to help write one? I just want
to save some time if I can.
Thanks
Regards
... more >>
Determine if font is insalled
Posted by Jared Crystal at 12/14/2007 7:56:41 PM
I am using NET20 and need to determine if font is installed on users
machine?
TIA
... more >>
Label control inside panel or groupbox is grayed
Posted by Jeff at 12/14/2007 12:09:01 PM
I have created a panel (or groupbox) control on top of my form control.
I have placed a label inside.
I have set the visible property of the panel (or groupbox) to false.
During execution, I want to display the text of the label inside the panel
(or groupbox) as a message to the user on t... more >>
MVP model - controlling forms
Posted by Isaac Abraham at 12/13/2007 10:24:00 PM
Hiya
A quick question. I'm using the MVP design pattern to write a Windows Forms
application. I understand the principle behind it and can write a presenter
that controls an associated view. The View creates the Presenter and passes
itself in to the constructor of the Presenter.
However,... more >>
|