all groups > dotnet windows forms > march 2006
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Printing HTML from Window Forms
Posted by Thomas Taylor at 3/31/2006 8:02:01 PM
What's the best way to print an html document generated in a Windows forms
application?
IE (WebBrowser control) works pretty well; with some effort to use a print
template, you can control margins, headers, footers, and get print preview.
The 'gotcha' is that (as best I can tell), there's ... more >>
Using WebBrowser to open office documents inside a Windows Forms Form
Posted by W.John Guineau at 3/31/2006 1:03:06 PM
Using Visual Studio.Net 2005 Team Edition for Software Developers on a
Windows XP machine.
Microsoft Support article 304662, dated 1/10/2006 shows how to use the
WebBrowser control to open word/excel documents inside a Form.
http://support.microsoft.com/?id=304662
The basic code works -... more >>
Cannot find assembly error
Posted by Steve at 3/31/2006 12:02:02 PM
I've spent half today trying to figure this out to no avail. I have a
solution, using remoting, with 13 projects. The assemblies are using a
strong name key and things were working fine until today when I tried to
change the version number on some of the assemblies. I changed the intially
... more >>
3 Tier architecture
Posted by Dan, Vascas at 3/31/2006 10:43:40 AM
Please clear my doubt and give some suggestion.
I am new to software development, and want to implement a n-tier
application.
I have a very basic idea about n-tier architecture.
[Example]
I have created a Business Layer(dll) and put it on a network shared
directory.
From the presentation ... more >>
Catch event when DataGridViewComboBoxCell value changed
Posted by Brett at 3/31/2006 8:49:48 AM
I'm trying to catch an event when the value of a
DataGridViewComboBoxCell changes...without having to tab/click off the
DataGridViewComboBoxCell. Thank you for any help you might be able to
offer.
... more >>
Aboutbox with a list of the used Assemblies of an application.
Posted by Karsten Lundsgaard at 3/31/2006 3:38:01 AM
I would like to make a list of all the ProductNames of the Assemblies used by
my application, made in C#/C-Sharp.
Can anyone tell me where I can find a list of the Assemblies, used by the
appilcation.
Regards
Karsten Lundsgaard
... more >>
ListView.SelectedIndexChanged behavior
Posted by Mark Smith at 3/31/2006 12:25:59 AM
I have a single-selection ListView where I always want to keep an item
selected by default. If the user clicks in the empty area below the
items, I want to select the first item.
It appears that when the user selects a new item, two
SelectedIndexChanged events are fired: one with no Selecte... more >>
datatable.select
Posted by FUnky at 3/31/2006 12:00:00 AM
hi all,
how do i get all rows of a datatable which contain ,either null values or
just space characters ,in a column, say columnA.
thanks in advance.
FUnky
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
I need a datatype conversion chart .NET to SQL
Posted by HK at 3/30/2006 6:37:58 PM
I'm looking for a chart that shows the VB6 > .NET > SQL 2005 datatypes.
E.g.
VB6 .NET SQL2005
integer int16 smallint
long int32 int
byte byte tinyint
But I want a whole chart with all datatypes. Anyone know of a URL with a
cha... more >>
best solution for user interface?
Posted by Andre Ranieri at 3/30/2006 3:18:02 PM
Hello everyone,
I'm wondering if I could get some advice on the best way to build the user
interface depicted in this diagram:
http://www.senske.com/images/winforms_layout.jpg
The gray areas will be static throughout. However, I'd like the blue area
to change to a different interface d... more >>
hiding portion of form
Posted by Andy G at 3/30/2006 2:43:47 PM
I would like to have a couple inches on the far right of my form be hidden
unless the user clicks the 'open arrow'. Kindof like on the web when there
are + and - to view a section or hide it. I would like to do this same
thing on my form. Are there any tools built into VS 2005 to accomplish... more >>
animated drag drop..
Posted by Vijay at 3/30/2006 2:09:28 PM
I have 2 controls on a Form, say Label 1 and Label 2
I click on Label 1 it registers as source control , and when I click on
Label2, it will become the destination.. and I want to perform a Drag/Drop
sort of effect at this time and indicate the moving text in this effect,
from Label 1 to La... more >>
Stop Dialog from Closing
Posted by ricecake NO[at]SPAM gehennom.net.invalid at 3/30/2006 2:00:05 PM
I have a form that I display using ShowDialog() with an OK button and a
Cancel button, and I have set the buttons' DialogResult properties using
the designer. When the user clicks on OK, I call a method to check the
values they typed in some TextBoxes, and if they entered invalid data, I
displa... more >>
Threading issue -- with no threads?!?
Posted by TomB at 3/30/2006 1:13:59 PM
Feel free to mock me....
I'm trying to figure out the Model View Controller pattern and thought I'd
try building a "simple" example.
I decided to go with a car.
The model is the engine, the dashboard the view and the pedals and steering
the controller.
My Engine has a System.Timers.T... more >>
How to hide an app at at startup
Posted by MJB at 3/30/2006 10:46:58 AM
I have an application that I need to hide at startup in the system tray.
I found this article on how to do it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtsksettingformtobeinvisibleatitsinception.asp
The problem with this method is that when I call the H... more >>
How to reset form?
Posted by milan.letic NO[at]SPAM gmail.com at 3/30/2006 10:36:30 AM
What code to put in button click in order to reset all values on form
to values that appear when you run it for the first time?
It is search form with many criteria. I need something like clear all!
If it is not possible to reset it, is it possible to restart it?
... more >>
Windows Forms :: A generic error occurred in GDI+.
Posted by sullu at 3/30/2006 7:04:02 AM
Hi,
I am getting the following error message when i am trying to maximize the
windows form which is displaying data in a datagird ....
Your help is appreciated in advance...
************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occ... more >>
Designer not showing inherited forms
Posted by Phran at 3/30/2006 4:10:02 AM
I have a problem that occurs does NOT occur when my laptop is connected to
the network at work.
I inherit a form from a base form. When not connected to the network, if I
try to design the inherrited from, the designer says:
"The designer could not be shown for this file because none of the ... more >>
How can I put a smal Image only ones at a form background?
Posted by Andreas at 3/30/2006 1:10:24 AM
Hello
I write a windows form in VB.Net and set the background
(myForm.BackgroundImage = myImage) to a small Image. The problem with
them is that myImage is copy severel times over the whole backround.
But I want the Image joust ones in the uper left corner.
Regards
Andreas
... more >>
Panel BackgroundImage
Posted by JezB at 3/30/2006 12:00:00 AM
I'm having problems with the BackgroundImage property of a panel. When the
panel becomes scrollable (because the contents are larger than the displayed
size and the AutoSize property is true), scrolling the panel leaves the
background image distorted: a residue is left where a new part of the ... more >>
Using Collection Editor Problem...thx
Posted by Teddy at 3/29/2006 8:21:01 PM
Hi,
When I am using the Collection Editor, the left hand side member always
display the collection class name.
1. How to display specify property name?(e.g. Collection of TabPage in
TabControl, it can show TabPage.Name value instead of
"System.Windows.Form.TabPage")
2. How to do increame... more >>
FontFamily Collection Refresh Question
Posted by Bryan Kinkel at 3/29/2006 5:40:11 PM
From what I can tell, the FontFamily() collection does not receive
notification when system fonts are changed while a .NET application is
running.
For example, you have your .NET app running. The user adds or removes a
series of fonts using the Windows Control Panel. The FontFamily() collec... more >>
How do I spawn several forms each as if they're their own application (can have their own modal forms)
Posted by Nihimon at 3/29/2006 2:55:12 PM
I want to open two forms, Form1 and Form2, from my MainForm in such a
way that Form2 can then open Form3 with ShowDialog and NOT have Form3
block access to Form1 or the MainForm.
Any ideas?
... more >>
wizard development
Posted by Hank at 3/29/2006 10:49:17 AM
Hi,
Microsoft provide a wizard class under System.Web.UI.WebControls.
Can I use it to implement the regular window's wizard(e.g device
installation wizard)?
Thanks
Hank
... more >>
Class vs Component
Posted by Randy L. at 3/29/2006 10:40:29 AM
I was curious as to the curent best practices for data sharing within NET
2.0 Smart Clients.
Typically I have have isolated data/datasets, webservices interaction, file
IO, etc. using the Component class (IComponent), relying heavily on the
sharing capabilities it provides. The entire appli... more >>
Fast Searches of a Thread Safe Collection of Structs
Posted by Jeff S. at 3/28/2006 9:35:05 PM
In a Windows Forms application I plan to have a collection of structs - each
of which contains a bunch of properties describing a person (e.g., LastName,
FirstName, EmployeeID, HomeAddress, ZipCode, etc). So each instance of the
struct will describe a person - and about 900 instances (people) ... more >>
Store multi-choice groupbox selection in a field
Posted by dbuchanan at 3/28/2006 6:25:43 PM
I am designing a table to contain a field to stores a value that must
indicate none, one, or many choices. The form will have a group box
with checkboxes (multi-choice)
You see the records in this table contain partially pre-configured
records. The records serve as "master" data that will late... more >>
ConfigurationManager
Posted by Magnus at 3/28/2006 6:20:15 PM
Hello!
I have found some code saying that the correct way to get application
settings is to use the ConfigurationManager that is in namespace
System.Configuration, but in my VS2005 enviroment this doesn't exists.
What am I doing worng?!?!?! How should I do it?
Regards Magnus
... more >>
NET permissions, user objects and IE
Posted by Carlos Lozano at 3/28/2006 4:31:01 PM
Hi,
I will appreciate any insights to set the right permissions to a Windows
Forms Control that is embedded in an html document. The control will be
downloaded by the html doc to the local system to do its job. It requires
file system and registry access rights (read/write).
One of the ... more >>
Fill collection property from a property grid
Posted by Vlado at 3/28/2006 3:35:58 PM
VS2005 C#
I have something like this:
public class MyControl : Panel
{
private SomeCollection myCollectionProp = new SomeCollection();
public SomeCollection MyCollectionProp
{
get
{
return this.myCollectionP... more >>
BackgroundWorker and Business Logic Coupling
Posted by pearsons_11114 at 3/28/2006 2:48:03 PM
All of the BackgroundWorker examples I've seen so far are toy in the sense
that the worker logic is embedded in the form. Normally business logic is
decoupled from presentation. However, I can't see any direct way to implement
the business logic without out a dependency on BackgroundWorker. ... more >>
Perform a LIKE filter on DataView Integer column?
Posted by Chris Botha at 3/28/2006 1:02:06 PM
Don't know if this can be done, but if I have a DataTable/DataView that has
an integer column.
Is there a way to do a "LIKE '123%'" kind of a filter on the column, which
obviously works for text a text column.
Thanks.
... more >>
tabbing within a group
Posted by news.microsoft.com at 3/28/2006 12:42:54 PM
I have couple of group boxes on my windows form. How can I tab on controls
only inside a group which I have focus on. Somehow it tabs across all the
group boxes on all the controls.
I did use the visual studio tab order property to set tabindex for each
control and group.
... more >>
Databind to a single instance of a class
Posted by moondaddy at 3/28/2006 8:57:46 AM
I've seen plenty of examples where you can databind to a list of objects,
but in this case I want to bind to a single instance and have no use for a
list. Can anyone refer a good example of how to do this in .net 2.0?
Thanks.
--
moondaddy@nospam.nospam
... more >>
WM_ERASEBKGND problem
Posted by jh at 3/28/2006 7:00:02 AM
I've encountered a strange problem with GDI/GDI+ and windows forms/win32. To
explain it shortly: I've a user control with a NC area. When painting the NC
area I ask for a window DC using GetDCEx with parameters DCX_WINDOW |
DCX_CACHE. I also use the wParam of the WM_NCPAINT message which conta... more >>
How to Determine if Windows Form is hidden?
Posted by JD at 3/28/2006 3:41:05 AM
At run time I want to know if my form is "hidden" behind another window.
The "Visible" property of the form returns true even when the form is NOT
Visible!
My application updates the form at intervals - I only want this to occur if
the user can actually see the form.
Anyone know how I... more >>
MDI Child, incorrect maximize of forms
Posted by Tore at 3/28/2006 3:41:04 AM
I have a MDI windows client written in C#. I try to control maximize and
normal size of forms by using:
this.WindowState = FormWindowState.Normal;
If I have a maximized MDI child form and open another child form containing
the line of code above both child forms end up in Normal state. It ... more >>
User settings and splitcontainer issue
Posted by Jeff at 3/28/2006 2:46:01 AM
I'm having a problem when using multiple splitcontainers on a form and saving
user settings for the SplitterDistance. Here's a description:
I place one splitcontainer in my bare form, add a project setting called,
e.g., splitDist1 which is an int user setting, and attach it to the
SplitterD... more >>
Bind a button's enabled property to a custom object
Posted by moondaddy at 3/28/2006 1:46:10 AM
I have a group of buttons which I want to bind thier enabled properties to
properties of a custom object (all of which will be boolean value types).
How do I do this?
--
moondaddy@nospam.nospam
... more >>
System.Threading.ThreadStateException while instantiating WebBrowser control
Posted by Duncan Bayne at 3/28/2006 12:00:00 AM
Hi All,
I have an WinForms 2.0 application that creates a user control, which
contains a System.Windows.Forms.WebBrowser control.
This works fine until I refactor the application to only create the user
control upon an event being fired. Then, this line in the
designer-generated Initia... more >>
Properties with subproperties in propertygrid?
Posted by Kingherc at 3/27/2006 11:09:01 PM
Hi to all,
In a .net 2.0 program, I'm trying to use the property grid. When the
property grid displays an object, it successfully displays its properties.
What I'd like to ask is: How can I make a property to have "sub-properties"
on the propertygrid? Something like (Application Settings) t... more >>
Trapping up/down arrow keys
Posted by Chris Kormann at 3/27/2006 8:08:01 PM
I have a class that derives from a Windows forms datagrid and of instance of
this class is hosted within a Windows forms user control. In the derived
class, I have overridden the ProcessDialogKey method and the
PreProcessMessage methods in hopes of trapping a press of the up and down
arrow ... more >>
System.Security.SecurityException
Posted by ike at 3/27/2006 7:48:04 AM
Hi,
I have a very strange problem.
I have an application that needs to get parameters on the command-line.
Real easy you would think.
You create a shortcut to the application and provide the parameters via the
properties.
Now here is the strange thing.
When I run the application thro... more >>
Change RichTextBox Font
Posted by Mario Hutter at 3/27/2006 4:19:02 AM
Hi EveryBody
when i execute the code:
Dim rtftext As New RichTextBox
rtftext.Font = New Font("Courier New", 11)
Debug.WriteLine(rtftext.Font.Name & " " & rtftext.Font.Size)
Debug.WriteLine(rtftext.SelectionFont.Name & " " &
rtftext.SelectionFont.Size)
The re... more >>
Toolbar button icons not displaying??
Posted by marshallarts at 3/27/2006 12:23:47 AM
Hello all,
I have a very basic windows form with a toolbar on it. The buttons on
the toolbar display images from an imagelist (as they must). The
images are all icon files. It is all set up at design time - no
dynamic code. In design mode I see all the images on the buttons. But
when I ru... more >>
Run Minimized - Memory Consumption
Posted by JezB at 3/27/2006 12:16:34 AM
I'm writing a windows app that's designed to run minimized (showing a tray
icon only, not in the taskbar).
Starting the app in normal mode (window Normalized) it takes about 17Mb of
memory, then when I minimize it to the tray this shrinks to 2Mb.
Starting the app window as minimized though... more >>
Drag and Drop with DataGridView
Posted by cnickl at 3/26/2006 9:27:02 PM
I’m trying to implement a Drag and Drop between two DataGridViews.
Unfortunately all the examples I can find online use ListBoxes and a method
called IndexFromPoint to determine the target location of the drop. Well,
DataGridView doesn’t have this method and I have no idea how to determine... more >>
Speeding form draw time?
Posted by John at 3/24/2006 4:10:39 PM
I have a winform that is shown as a dialog that unfortunately has to
contain a very large amount of controls, nested controls, etc. The
result is that there is a fairly noticeable draw sequence when the form
is shown.
When I was doing some of my own drawing with a custom control, I could
... more >>
How to link two TextBoxes?
Posted by ricecake NO[at]SPAM gehennom.net.invalid at 3/24/2006 12:15:22 PM
I have a form that has several pairs of TextBoxes: one editable and one
read-only. The text in the read-only TextBox should always show the
same text as the editable TextBox, except it does not have to be the
same while the user is actually typing something if that would add
unnecessary complic... more >>
DataGridView - disable sorting
Posted by dbuchanan at 3/24/2006 9:37:45 AM
I cannot find the property to set that will disable row sorting when
the user clicks the column header.
Any suggestions?
... more >>
|