all groups > dotnet windows forms > september 2005 > threads for september 15 - 21, 2005
Filter by week: 1 2 3 4 5
Combo Box Question
Posted by ed_p at 9/21/2005 5:51:33 PM
Hello,
I have a combo box that shows a list of items from a SQL Database. I
don't want the users to edit the entries, I have set the CombBoxStyle to
DrowpDownList, but when I do this everytime I open up the Windows Form
where the combo box resides in no item is selected. How can I set up ... more >>
How to change table name at runtime
Posted by Necqui Teja at 9/21/2005 4:31:09 PM
I'm using an .xsd file in my windows application using VS2005 Beta2.
Can I change the table name at runtime to another table name with the same
schema in the same database?
... more >>
very simple TreeView problem
Posted by Lionel at 9/21/2005 3:46:02 PM
Hello all,
I'm trying to use a TreeView control for the first time and am having a
problem getting it to work. I have, essentially, the following:
TreeView MyTreeControl = new TreeView();
MyTreeControl.Nodes.Add("test");
The "test" node never shows up, even when I minimize and resize to ... more >>
Launching IE from a Forms App
Posted by Adam Kenney at 9/21/2005 11:52:04 AM
Hi,
I'm building a Windows Forms application that parses a variety of web pages.
The web page structure generally includes a search page with form fields and
a "submit" button, and clicking submit loads the results page we're
interested in parsing.
Thanks to some help from here and the M... more >>
Custom collection was binded at design time, but does not populates datagrid at run time...
Posted by SammyBar at 9/21/2005 8:01:53 AM
Hi,
I'm trying to bind a custom collection class to a data grid, following the
guidelines from the article
http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx.
The problem is the article is in VisualBasic. I already get the collection
to be recognized as ... more >>
Detect whether any Browser windows are open
Posted by Rippo at 9/21/2005 7:30:36 AM
Can any one tell me if it is possible for a windows forms VB program to
detect if any Internet Explorer windows are open? I wish to provide a
message informing the user that they must close all Browser windows
before they can continue
NOTE: These windows will not have been spawned by my progra... more >>
How to iterate through a listbox
Posted by Dilip M at 9/21/2005 5:04:04 AM
I have the following code:
sendToAgent.DataSource = someDataSet.Tables[0];
someListBox.DisplayMember = "AGENTNAME";
someListBox.ValueMember = "AGENTID";
someListBox.Tag = "USERNAME";
What I want to do is iterate through the selected values and retrieve the
displaymember, valuemembe... more >>
axWebBrowser stops working
Posted by Marius Horak at 9/21/2005 1:34:40 AM
This is the code to navigate
object flags = (object)0;
object targetFrameName = (object)"";
object postData = (object)"";
object headers = (object)"";
string url = "http://000.000.000.000/RemoteAPI.dll/Get?ID=100";
webControl.Navigate(url, ref flags, ref targetFrameName, ref postData,
r... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Form KeyUp event
Posted by Gomathi at 9/21/2005 12:00:00 AM
hi all,
In my windows form, form_keyup event is firing if there is no controls in
form.
If i place any control like textbox,then its not getting fired.
How can i fire keyup event of a form with more than 10 textboxes.
Gomathi
... more >>
get key state
Posted by Lloyd Dupont at 9/21/2005 12:00:00 AM
I would like to know the state of the keyboard.
more precisely I would like to know if the 'SPACE' key is pressed or not.
how od I do that?
--
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
... more >>
change the side of the tabpage in tabcontrol
Posted by amos hchmon at 9/20/2005 11:22:02 PM
I have a tab control to get a data about public appeals.
One tabpage get a complainer data and the other tabpage get a complain data.
By default (English language) the visual studio create the tabpage in the
left side on the tab control
I want to know if I can change the side of the tabpage in... more >>
Advice on approach of modular app...
Posted by AC [MVP MCMS] at 9/20/2005 5:01:19 PM
I'm somewhat of a noob when it comes to WinForm development (all of my work
is within ASP.NET, serivces, and libraries). Currently in the design/scope
stage of a pet project, I'm looking for a bit of advice or direction as to
the best approach. The app is essentially a research & analysis to... more >>
Windows App With No Visible Window
Posted by howard39 NO[at]SPAM nospam.nospam at 9/20/2005 4:17:02 PM
I want to create two executable applications, AppA and AppB. AppA uses an
instance of the Process class to launch AppB, via the Process.Start() method.
AppB has a WndProc but does not display a window.
Later, AppA sends a message to AppB telling it to shut down. AppB includes
an event hand... more >>
How to raise an event?
Posted by Andreiwid at 9/20/2005 10:47:06 AM
Hi guys!
I've an event that belongs to a ToolBar:
Private Sub ToolBar1_ButtonClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
...
End Sub
I'd like to know how can I raise that event manually, throught a ... more >>
Null reference Exception in ListView.InsertItem
Posted by nlaunceford NO SPAM gmail DOT com at 9/20/2005 10:24:18 AM
I'm getting an intermittant null reference expception in
ListView.InsertItem. Since the top of the call stack is in winforms
code, I am not able to tell what is actually null. Here's the top of
the stack:
System.NullReferenceException: Object reference not set to an instance
of an object.
... more >>
DataBinding to Custom Class breaks after New instance: how to get around this?
Posted by DraguVaso at 9/20/2005 9:35:55 AM
Hi,
I'm having the following situation:
- A class clsFournisseur with public property's which raise a
MyPropertyChanged-event in the Set-method for each Property.
Public Event NomChanged As EventHandler
Public Property Nom() As String
Get
Re... more >>
Drag and Drop an attachment from an Outlook message
Posted by Roy Chastain at 9/20/2005 9:28:29 AM
I have an email that has a file attached to it.
If I save the file and drag the file from Windows Explorer to my form, I get a DragDrop event with data type of FileDrop.
If I drag the file directly from the opened email, I get a DragDrop event with the data type of TEXT. What is worse, it app... more >>
Get ALL controls on a Form
Posted by DraguVaso at 9/20/2005 9:19:59 AM
Hi,
Is there actually a way to get ALL the Controls on a Form? While using the
ControlCollection, it only returns the Controls that are directly on the
Form, not the controls that are on a (TableLayout)Panel etc.
I never found something like that, but it just would be nice in my opinion
:-)... more >>
Interfaces in Framework 2.0
Posted by Jonathan Lurie at 9/20/2005 9:11:19 AM
Hi,
Is it always a good idea to have a Interface.
Does it have any performance issues.
I am referring to Framework 2.0 Beta, Visual Basic 2005.
John.
... more >>
Patterns and best practise for model/view/controller separation?
Posted by elvis_the_king NO[at]SPAM web.de at 9/20/2005 3:49:32 AM
Hi all,
I have quite some design experience on other platforms and especially
with web applications. Now I'm about to design a .NET application and
am a little stuck as I am trying to apply my "habits" of separating
model, view and controller. Either that is the totally wrong approach
or I am... more >>
Listview control
Posted by WAkthar at 9/20/2005 12:00:00 AM
Is there a way to automatically fill the last column width of a listview
control?
... more >>
Help file conversion
Posted by Prasad (MCAD) at 9/19/2005 10:45:03 PM
Hi,
I want to display help files in my windows application.
Please tell me how to display .chm files through my C# code.
Thx in advance.
Prasad.... more >>
Scrolling in a list box
Posted by Z at 9/19/2005 8:05:02 PM
Hi,
I have two list boxes of the same size and the same number of items in them.
The number of items is big, so to accommodate them the list boxes display
vertical scroll bars.
I want to synchronize the vertical scrolling of these two list boxes, so
when one of them is scrolled by the user... more >>
Forms and Panels don't respond to help requests?
Posted by Keith at 9/19/2005 4:32:18 PM
Hello,
Why don't forms and panels respond to help requests? I have a basic form
showing the Help button in the title bar, a HelpProvider, a panel and a
button; and the panel and button are identically configured to show help on
the HelpProvider. When I use the Help button and click on the... more >>
Re: Problem with listbox horizontal scrollbar
Posted by Alex at 9/19/2005 3:47:48 PM
I am having exactly the same problem, made worse by the fact that =
MeasureString introduces a very significant slowdown.
Can anyone help?
Best wishes,
Alex.
markusszil (anonymous@discussions.microsoft.com) wrote in =
microsoft.public.dotnet.general:
> Hello all,
>=20
> I have a fairly ... more >>
Page_Load event gets called twice
Posted by Dave Hagerich at 9/19/2005 1:18:27 PM
I currently have an aspx page that contains a datagrid object and every time
the page goes through its lifecycle the Page_Load event gets called twice.
I've checked my code and I'm not manually calling it anywhere so the server
must be doing it. Can anybody tell me why? and is it possible to sto... more >>
ComboBox BindingContext
Posted by Aspnot at 9/19/2005 1:10:02 PM
I have 2 ComboBoxes on a form bound to the same DataSet using a New
BindingContext for the second one. Both ComboBoxes need to have their
SelectedValue bound to a different DataSet . The first one works properly,
but the second one will not select any value. I am pretty sure that this has
... more >>
Exposing custom collections as datasources for VS in design time... how to do that?
Posted by SammyBar at 9/19/2005 8:57:26 AM
Hi all,
I have some custom collections (ArrayList of custom Objects) and I want to
display them using typical Windows form controls (DataGrid, Combo). What
should I do to expose them as valid datasources to these controls? What if I
want that these collections work with Visual Studio on des... more >>
edit local security policy using vb.Net
Posted by Trey Mitchell at 9/19/2005 7:04:21 AM
I need to edit the local security policy of Windows 2000 machines to disable
access for the local Administrator account. How can I programmaticly edit
the local security policy using vb.Net? I have looked at using Group Policy,
but I must specify each machine name before the account name to ... more >>
Clear Selection of a listbox
Posted by pramod at 9/19/2005 12:48:03 AM
Hi,
I have couple of listboxes and a couple of combo box on a form. The
listboxes are databound. I am trying to clear the selection of the listboxes
if they are not selected by using ListBox.ClearSelected() but in vain.
The following lines are in the constructor of the form.
Listbox... more >>
Win Forms App Code Generation?
Posted by Michael Boniwell at 9/19/2005 12:00:00 AM
I'm new to .NET and somewhat disappointed in the amount of manual work
required to get a simple Win Forms database application built. I'm used to
working with a development environment called "Clarion" (that I'm guessing
you've never heard of), which can take you from data dictionary to fully ... more >>
How do you format a date in a ComboBox?
Posted by aualias at 9/19/2005 12:00:00 AM
I have a combobox that displays dates. They display in a long form, but I
would like mm/dd/yyyy. If this were a TextBox, then I would use the
Format() method of the Binding.
The ComboBox is getting bound like this...
cbDate.DataSource = theTable
cbDate.DisplayMember = "theDate"
cbDate.Va... more >>
OnPaint of Datagrid
Posted by Gav at 9/19/2005 12:00:00 AM
Hi all,
I cannot remember where I read the article, however I read one that showed
me how to overide the paint function of a datagrid so that I could highlight
certain cells in different colours. This works great however if I sort the
datagrid by a particular column the rows do not get upda... more >>
add row in datagrid
Posted by Joe at 9/18/2005 10:09:01 PM
Dear all,
Can i add row in datagrid after i bind a dataset to the datagrid... more >>
export to excel
Posted by Joe at 9/18/2005 10:06:01 PM
Can vb.net export data to excel file and any license requirement?... more >>
Procedure expects parameter - What am I missing
Posted by dbuchanan at 9/18/2005 5:02:03 PM
Hello,
The error tells me;
---------------------------
Procedure 'usp_sequ_sel' expects parameter '@sqfkJob', which was not
supplied.
---------------------------
But I do supply it!!
What am I missing??
Here is my Stored Procdure [usp_sequ_sel]
\\
CREATE PROCEDURE dbo.usp_sequ_sel... more >>
Adding forms into a panel
Posted by ernesto bascón pantoja at 9/18/2005 2:59:21 PM
Hi everybody:
I am adding several forms into a panel to give MDI appearance to my panel..
Though the forms inside my panel looks fine, I have three problems:
1. The focused form does have the title bar activated (it is gray, like the
inactive forms)
2. The only way to bring to front a form... more >>
4 pane SplitContainer
Posted by shu at 9/18/2005 12:29:13 PM
The SplitContainer divides the space in two, either horizontally or
vertically.
I'd like to divide the space in four. By adding more splitters, the
problem is that they don't keep in synch automatically. It'd be nice if
when the mouse hovers in the center of the four regions a cross
movement ic... more >>
MDI Child Controls
Posted by Brian P. Hammer at 9/18/2005 12:53:38 AM
If I have a second form that is a mdichild, let's say frm2 and I want to
update a textbox control pragmatically...
In my MDI parent, I open 5 instances
Dim f as new frm2
private sub OpenForm()
for i = 0 to 4
f = new frm2
f.mdiparent = me
f.show
end sub
Now, from my parent, I want ... more >>
Forms are re-locating
Posted by Paul Cheetham at 9/17/2005 6:28:14 PM
Hi,
I have an application which shows forms on two different independant
screens. The Windows desktop is spread across these screens.
The forms are all set to manual positioning, and so to show a form on
the second screen, I simply set the coordinates to be on the second
screen and that is... more >>
FindDialog for RichTextBox problem
Posted by Lloyd Dupont at 9/17/2005 12:00:00 AM
Hi!
I created a FindDialog for RichTextBox.
I have 2 problem with it:
- when I ShowDialog() my FindDialog, it got the focus and the RichTextBox
stop displaying its current selection (it apparently need the focus to draw
it), so when the user click "Find Next" I select the next match, but ... more >>
Combo refresh/binding problem
Posted by jon f kaminsky at 9/16/2005 4:29:34 PM
Hi-
I have two combobox controls (among other controls) that are all bound to
dataset0 from the "Main" table. Combobox2 is bound to a column that contains
a FK (system_id) which corresponds to the PK from the "Systems" table. These
combobox's also function as picklists and as such are fille... more >>
Window closed event?
Posted by Paul at 9/16/2005 2:03:40 PM
In a windows forms app how do you know a window is closing? There seems
to be no event for this.
I have timer object that appears to be firing after the window is closed
(maybe) and I want to shut down and dispose the timer when the window
closes.... more >>
What makes this code slow
Posted by dbuchanan at 9/16/2005 12:40:27 PM
This code resets a form with two cbo's (comboBoxes) and one datagrid.
The first cbo (cboSelection) selects a main table and filters the
second cbo. The second cbo (cboView) selects the secondary table which
determine the dataAdapter used to fill the dataGrid. Both cbo's are
populated by filling ... more >>
How to get rgb of custom color
Posted by moondaddy at 9/16/2005 11:53:13 AM
I have a color in a bitmap from a screen capture. the color is defined in
paintbrush with 6 numeric values. how to I convert this to rgb so I can
assign it to some controls on a vb.net form?
Thanks.
--
moondaddy@nospam.nospam
... more >>
Memory taken by an object
Posted by JezB at 9/16/2005 10:13:10 AM
How do I evaluate, in c#, the amount of memory taken up by any given object
?
... more >>
Display Word document text in Windows Forms without text editor
Posted by Salvador - From Galicia(Spain) at 9/16/2005 12:21:01 AM
I want to open a word document and display all the text in a windows forms.
Like the Ms Word Viewer. Only for read it, no modify.
I do not have problems opening and reading the document. The problem is
display de text. I do it of the following form:
Private Sub Form1_Load(ByVal sender As Obj... more >>
Override Close > Hide problem
Posted by Andreas Zita at 9/16/2005 12:00:00 AM
Hi
I have two forms, Form1 and FormInfo. In FormInfo I override Close(),
cancels and hides the form. However now Windows isn't able to close my app
automatically when the user tries to close Windows while my app also is
running. Can this be solved without abandoning overriding the form?
... more >>
2.0 question
Posted by Lloyd Dupont at 9/16/2005 12:00:00 AM
what's the difference between the 2 following events:
Form.Closed
Form.FormClosed
??
--
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
... more >>
Application.ThreadException becomes unwired?
Posted by Max Bolingbroke at 9/16/2005 12:00:00 AM
Hi,
I'm writing a C# application that uses Application.ThreadException to
handle uncaught exceptions gracefully. However, I'm having a problem
where it is failing to catch some exceptions, and I've determined this
is because the event handler is becoming unwired: if I reinstall the
handle... more >>
Word To .Chm Conversion
Posted by Prasad (MCAD) at 9/15/2005 10:52:02 PM
Hi,
In my windows application i am creating a word document. Word document has
some pictures in it. I want to convert document file to .chm file. Is there
any class available in .Net to do this?
Thx in advance.
Prasad.... more >>
OFFICE AUTOMATION LICENSING
Posted by Joe at 9/15/2005 8:04:03 PM
Dear all,
If i develop a windows based application VB.NET , it need to export some
excel and word document from the VB.NET application. such as excel report or
word report and it need to import the reference of office component to do
that, is it ok to deploy the windows application together w... more >>
ToolStripContainer and MDI applications?
Posted by Carl Mercier at 9/15/2005 5:25:01 PM
Hi,
I have an MDI container form (Form1) that has a MenuStrip and a ToolStrip
embedded in a ToolStripContainer. Form1.MainMenuStrip is set to MenuStrip1.
The "Content" part has a ToolStripPanel docked to Fill the entire space. I
guess this is a pretty normal setup.
The problem is that all... more >>
displaying config dialog after main form
Posted by Sam Carleton at 9/15/2005 4:59:03 PM
For the first run of my application, the configuration dialog
needs to be displayed. I have tried loading the config dialog
in the form load, but the form is not loaded yet. What is the
easiest way to display the config dialog?
Sam... more >>
Problem using API CreateBitmap function and keeping transparent co
Posted by Flo at 9/15/2005 3:08:04 PM
I have a C# DLL that loads a bitmap object from a PNG file. Thanks to Bob
Powell's advice i managed to access the Bitmap data using the lockbits method
and then call the Windows API function CreateBitmap successfully. Then the
DLL provides a COM interface which returns the handle to the bitmap... more >>
MouseUp event "falls through" FileDialog and activates control underneath
Posted by Keith at 9/15/2005 12:02:12 PM
Hello,
In my app I have a UI control that responds to MouseUp events and opens a
FileDialog. If an item in the dialog is double-clicked (instead of clicking
on it then clicking OK) AND that item is over my UI control, the final
MouseUp of the double-click is registered by my control and it... more >>
Internet connection detection
Posted by Kikoz at 9/15/2005 11:16:16 AM
Hi all.
What's the best way to detect if the machine running my app is connected to
the Net? I don't need any network/dns info, just "connected? true/false".
Thanks!!... more >>
Cutting off first several bytes from the stream
Posted by Kikoz at 9/15/2005 11:14:02 AM
Hi all.
How do I cutt, say, first 25 bytes from the stream?
Any help would be greatly appreciated!!... more >>
Opening up windows form with muliple threads
Posted by Sajjad at 9/15/2005 9:38:13 AM
Hi,
I have an application which has browser control in it, i open this form and
it does some automated steps and closes it self every thing wrok so far.
Now wanted to open multiple instances of this form each of them running in
its own thread. But when i try to create this form within newl... more >>
Windows Forms in Windows Services
Posted by askingBoy at 9/15/2005 7:14:04 AM
Hi , Is it possible to have Windows Forms in a Windows Service , I have tried
to do it but the application always locked .
Actually I am calling de .show method of the Form in the Onstart Event of
the service .
In the Microsoft documentation I can see that a windows service is a process
... more >>
NUnitForms - articles and tutorials?
Posted by dbuchanan at 9/15/2005 5:30:51 AM
Hello,
Where can I find articles and/or an online tutorial on using NUnitForms
for Windows forms?
dbuchanan
... more >>
databind with a combobox
Posted by Irwin at 9/15/2005 5:21:02 AM
Hi all,
I got a problem with binding an array of object with a combobox.
Here is my code:
public class Toto
{
public string Idr;
public string Name;
public Toto(string id, string name)
{
Idr = id;
Name = name;
}
}
.... and the ui part:
Toto[] totoList = new ... more >>
How to restrict typing characters other than digit in TextBox in C
Posted by AJang at 9/15/2005 5:07:03 AM
I am writing some winform application in C#.
I want my TextBox control have following properties:
1. accecpt inputing digits '0','1','2','3','4','5','6','7','8','9', and
display those digits in TextBox.Text as expect
2. If the user input something other than digits such as 'n', TextBox.Text
... more >>
Loading (Running) EXE into GAC
Posted by Leonid at 9/15/2005 12:00:00 AM
Hi,
Could anybody provide good reason for me to load my windows forms exe into
GAC and then use it as primary application location?
Thanks,
Leonid
... more >>
Application.Run()
Posted by Uchiha Jax at 9/15/2005 12:00:00 AM
Does anybody know why some components like
Microsoft.DirectX.AudioVideoPlayback.Audio rely on the Application.Run
messaging system while other events in other classes dont?
Anyone got a reasonable way of testing that using NUnit as well?
Thanks in advance for any help offered.
Jax
... more >>
changed Property of Public Control a Designtime on UserControl disapears!
Posted by DraguVaso at 9/15/2005 12:00:00 AM
Hi,
I'm having some weird behaviour, and I can't find any solution to this.
I made a UserControl (uclCommands) which contains a Toolbar (ToolBar1) with
Modifiers = Public.
I put this usercontrol on my form and call it Ucl1. In the Property Window
in the Windows Forms Designer I change Ucl1.... more >>
|