all groups > dotnet windows forms > february 2004
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
annoying automatic scrolling
Posted by cody at 2/29/2004 10:18:24 PM
I have a drawing-panel which is located in a AutoScroll-enabled panel. The
problem is when I click in the drawing panel the contining panel
automatically scrolls to position (0,0).
How can I get around this annoying behaviour?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || w... more >>
transparent controls
Posted by Derrick at 2/29/2004 7:45:12 PM
Is it possible to make the background color of controls (such as group
boxes, lables, text boxes and check boxes, tabpage ) to transparent?
In case you need more information, I have added some code to the form_paint
method to paint the background with a gradiant. I need to get the controls
on... more >>
How to create an Outlook Style Event Calendar in VB.Net
Posted by Paul Rea at 2/29/2004 5:43:16 PM
Hi,
Does anyone have any ideas as to how I should best approach creating an
outlook style event calendar in VB.NET?
Any help would be greatly appreciated.
Thanks. Paul
... more >>
PropertyGrid section
Posted by Bronco at 2/29/2004 1:51:30 PM
How do I make sections in a PropertyGrid. IOW. what do I have to do to
prevent every public property appearing in the "misc" section?
TIA,
Bronco... more >>
debug user control
Posted by zemp at 2/29/2004 11:11:08 AM
i heard that it is possible to du\ebug user control while design time how ????... more >>
change color of TabPage header
Posted by zempit at 2/29/2004 10:41:05 AM
How can i change TabPage Header color?... more >>
How to display money number in a DataGrid?
Posted by Toto at 2/29/2004 9:51:06 AM
I want to display a double field in the format of currency. For example
100.345 as 100.36
But since the data grid is bound to a dataset, I find no way to control it
I am using an untyped dataset. Can this problem be solved if I using a typed
dataset
Thanks a lot.... more >>
Dynamically Add User Controls to a Form at Run Time?
Posted by Stewart Armbrecht at 2/29/2004 9:49:35 AM
Is it possible to dynamically load a user control on a windows form similar
to the way you can load a web user control to an aspx page. Basically, I
would like the database to determine which controls are loaded to a form. I
am trying to mimic the IBuySpy portal functionality in a windows
appl... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can't close a window form
Posted by Dave at 2/29/2004 8:51:06 AM
I am having a problem closing a window form. Calling Close() or click X does close it after a certain combination of events. When I overrode OnClosing, I found that the CancelEventArgs's Cancel property was set to true. Would some one help me out why CancelEventArgs's Cancel property be set to tr... more >>
Image Gone when apply Application.enablevisualstyles()
Posted by A-PK at 2/28/2004 9:49:29 PM
Hi,
I found that when I apply application.enablevisualstyles. all the button
image and listview image are not shown up.
pls help me, anywhere to show the image when i apply that features
Thank you
... more >>
Orphaned ControlBox in MDI child
Posted by michael at 2/28/2004 3:56:05 PM
So, I have this MDI application. Occasionally, if I have a few MDI children open, and then close one of them, the ControlBox for the MDI children becomes duplicated, right next to one another in the far upper right hand corner, below the ControlBox for the MDI parent. It has the appearrance of Minim... more >>
Is there really no way to hide a TabPage?
Posted by Ed Sutton at 2/28/2004 10:27:39 AM
Hide and Visible have no effect.
this.tabControl1.TabPages[iField].Visible = false;
this.tabControl1.TabPages[iField].Hide();
I hear that the TabControl in the .NET framework is a wrapper of the Tab
control in the Common Control Library. I read a posting that stated:
"the only way to d... more >>
How To: Display objects in a PropertyGrid DropDown list?
Posted by Steve at 2/27/2004 6:04:16 PM
I followed the MSDN example that uses a StringConverter to display states
(like Ohio, Florida,) in a PropertyGrid using a DropDown list. This works
fine for strings, but I would like to do this with objects I create on the
fly.
I think I have to create a custom TypeConverter, but I'm not sure ... more >>
sission object
Posted by rob-morgan NO[at]SPAM insight.rr.com at 2/27/2004 5:39:06 PM
Is it possible to check the session object from a windows form?
I'm making a shared assembly and I want it to work with my windows forms and
my asp.net forms. If asp.net is calling it I want it to check for somehitng
in the session object. If the windows form is calling it then I don't want
... more >>
TreeView and ObjectDisposedException
Posted by Vitaly Sedov at 2/27/2004 5:07:28 PM
Hi All!
I have an application that opens form with TreeView.
I want to close form by AfterSelect Event:
private void MyTreeView_AfterSelect(object sender,
System.Windows.Forms.TreeViewEventArgs e)
{
this.Close();
}
But everytime when I clicking on TreeView Item,
I get following error:... more >>
Datagrid and Bound ComboBox Columns
Posted by Mike Hardy at 2/27/2004 1:41:09 PM
Hi, I have a tough one..
I have a datagrid that is bound to a typed dataset the following way
Dim ds as New MyDataSe
Datagrid.Datasource = d
Datagrid.DataMembre = "BonReception" 'A datatable from my datase
In that datagrid I have to combobox column (they come from a class I have made) ... more >>
Windows XP Button vs Framework window form button
Posted by A-PK at 2/27/2004 12:03:50 PM
Hi,
How could I create the same button and tab of windows XP in vb.net
i found that the button that I create in vb.net is different with windows xp
one.
anyone know how to do that ? pls advise me
... more >>
PrintPreviewDialog problem?
Posted by Todd at 2/27/2004 11:41:09 AM
I'm attempting to print graphics to a printer using a PrintPreviewDialog. The PrintPreviewDialog correctly displays what I intend to print, but when I press the Print button on the PrintPreviewDialog the printer spits out a single blank page regardless of how many pages are displayed in the dialog
... more >>
List of activated fonts does not include shortcut activations
Posted by jusovsky NO[at]SPAM anotherretarded.com at 2/27/2004 10:51:09 AM
Our font management tool, Suitcase, activates fonts dynamically by creating shortcuts in the Windows font folder. Using System.Drawing.Text.InstalledFontCollection to get the list of font families from the system yields only the fonts whose files are physically in the system font folder- not the sh... more >>
How to get instance of control by name
Posted by Jaroslav Jakes at 2/27/2004 8:04:14 AM
Hi,
imagine having an INI-file with entries like:
# key=Control / value=Text property of control
controlA=bla bla bla
controlB=bla bla bla
controlA and controlB are different controls of types like TextBox, etc.
Closing form will write INI-file, storing control names and text property ... more >>
File Association
Posted by RichLee at 2/27/2004 6:11:07 AM
How do I go about (programmatically) associating files created by my App with a particular icon, and how do I ensure that the app is run and loaded with a file when double-clicked - all in the same way that an App like MSWord does it
Thanks in advanc
Rich... more >>
WinForm App and TaskManager
Posted by joerg NO[at]SPAM krause.net at 2/27/2004 5:08:32 AM
Hi,
I've a winform app and want to start the program without
beeing visible in the task manager on a Windows ME box.
I've seen some programs that start using the "Run" option
in the registry and not appearing in the task manager. These
programs are written in VC++ and I'm wondering how can... more >>
Controlling program flow in VB.NET
Posted by munya at 2/27/2004 12:30:36 AM
I am a beginner in using VB.Net although I do have
experience in VB6. It always seems that I have to keep my
startup object in memory otherwise the application will
just end. Even if I have transfered control to another
form. It is irritating to have to keep my splash screen in
memory just to m... more >>
capturing how a form was closed
Posted by Derrick at 2/26/2004 10:27:17 PM
I have a 2 form application - the first form opens the second form, which
allows a user to create a file. The first form then needs to do something
based on how the form was closed.
how the code looks
Dim tf As New frmNewLeague
tf.ShowDialog()
If < tf closed using save button ... more >>
Search for Files with System.IO.DirectoryInfo.GetFiles()
Posted by Brian Reed at 2/26/2004 9:35:47 PM
I am trying to locate all image files in a particular folder. I use the
System.IO.DirectoryInfo to open information about the specific directory. I
am then trying to query all of the images in that folder whether the
extension be .jpg, gif, or bmp. So far I have not had any luck passing more
... more >>
Dll Import problem
Posted by james_morris1232000 NO[at]SPAM yahoo.com.au at 2/26/2004 9:34:07 PM
** I forgot to ask one more thing, Just see the last few lines.
I have a Dll written in C. And I want to Import that Dll into my C#
program and use a function in the Dll. In a previous newsgroup article
I saw that I may need to wrap the Dll in a C++ .NET class and then use
that in my C# applic... more >>
Dll Import problem
Posted by james_morris1232000 NO[at]SPAM yahoo.com.au at 2/26/2004 9:21:20 PM
I have a Dll written in C. And I want to Import that Dll into my C#
program and use a function in the Dll. In a previous newsgroup article
I saw that I may need to wrap the Dll in a C++ .NET class and then use
that in my C# application. But when I run my program I get an error
saying
System.I... more >>
Capture Lost
Posted by n! at 2/26/2004 7:15:23 PM
I'm about to modify the message loop in my winform to process the
WM_CAPTURECHANGED message and fire an event, before I do I would just like
to check there isn't already an event present for this? Haven't noticed one
so far, but it seems strange to have it left out! :)
thanks,
n!
... more >>
Font Class - a big performance eater?
Posted by Iulian Ionescu at 2/26/2004 6:56:06 PM
I was curious if anybody else noticed this fact. Everytime you use the font class, especially creating multiple instances of the Font class in an iteration, there is a significant performance hit. The way I noticed was due to a bug in my code. I have a list class where each item is a separate object... more >>
Changing the default border color/appearrance of WindowsForms
Posted by michael at 2/26/2004 5:36:08 PM
Short of globally changing the appearance of a WindowsForm's border color, appearrance...(like changing the color scheme in Display Properties), is there a way to change simple things like the border color at the application level
Michael... more >>
Radiobutton databinding:
Posted by Babu Mannaravalappil at 2/26/2004 3:23:41 PM
Hi,
I have a radio button group which I want to bind to a table column whose
value is a string. Based on the string value, I want to checkmark one of
the radio buttons. Here is my code in an attempt to do this. But it fails.
The events don't even fire. I don't know what I am missing. All ... more >>
How to develop user-definable/configurable UIs using Windows Forms and ADO.NET?
Posted by Kunle Odutola at 2/26/2004 3:03:44 PM
Hi,
I'd like to create a data entry application in which users are able to
customise the app and it's UI by adding/removing fields from the data entry
form(s), changing the layout of the fields, or changing caption text.
Are there any samples that show how this can be done with Windows Forms... more >>
No-Touch Deployment app.config problem
Posted by nickersonj NO[at]SPAM connellhatch.com at 2/26/2004 3:02:36 PM
I'm having a very frustrating problem with a no-touch-deployed
application and its app.config file. When it loads from a remote
server, it cannot get any settings from the app.config file. In trying
to locate the problem, I have tested the following things:
1. The application works flawlessly ... more >>
Tab Control/Web Browser Control Flicker
Posted by Justin Echternach at 2/26/2004 2:02:30 PM
Hi,
I have a tab control with a web browser control embedded in the first tab
page. Whenever I resize the tab control the tab itself and web browser
control flicker like crazy. Is there anyway to eliminate this flicker?
Thanks in advance.
Justin
... more >>
queueing messages
Posted by Chris Ellis at 2/26/2004 12:05:23 PM
Hi,
Ok, since I began writing this post, I have figured out the majority of
my problem. I started out without a clue about how to use messages in my
application (not referring to System.Messaging, but to good old windows
messages). I want a Win32 application that runs without a window. ... more >>
PropertyGrid bug?
Posted by Javier Campos at 2/26/2004 11:56:13 AM
Hi all,
Maybe this has been said before, I'm sorry if it has.
I'm making a custom EnumConverter for a propertygrid so it shows other
values than the named values of the enum... this works pretty much
correctly, and as expected, EXCEPT:
When doubleclicking the dropdown box, moving the mous... more >>
Tables don't show in drop down of tablestyle in property window of datagrid
Posted by Joe at 2/26/2004 11:31:07 AM
Ok I'm working on a custom IDE though it's using alot of the same technologies as the VS.Net IDE. I drag and drop the datagrid onto the form (root component) and there is a dataset with tables in the component tray. I then just set the datasource to the dataset and then the datamember to the table I... more >>
Long texts in ComboBox's Items
Posted by Boris Condarco at 2/26/2004 10:53:20 AM
Hi,
I have a control that holds a ComboBox. When the ComboBox gets filled the
text are too long, so, it is possible to read just the half part of the
text. I would like to show the whole text in a box (like the tooltipbox)
while the user moves over the ComboBox's Items. Does anyone can share s... more >>
Suspend Form Repaint?
Posted by Dave Veeneman at 2/26/2004 6:04:46 AM
Is there a simple way to suspend a form repaint? I have several things I
need to do with a form, and I want to suspend repainting it until the last
item is done. Thanks.
--
Dave Veeneman
Chicago
... more >>
Initial Flicker on Fade Out
Posted by mdjhome NO[at]SPAM invalid.com at 2/26/2004 5:06:06 AM
Greetings
Having a bit of a problem with a fade out on a form. I'm using a timer which is enabled via a button and then this timer tick then takes the opacity down to nothing and then eventually closing the application.
However, what is happening is that when the button is clicked that enables... more >>
problems with Document2Events on W2K and XP
Posted by jimdigriz NO[at]SPAM home.net at 2/26/2004 3:41:06 AM
Hi
The following (shrinkwrapped) code works ok on Windows 2003 but not on Windows 2000 SP4 and XP where ALL events are blocked (e.g. context menu does not appear, impossible to write in search TextBox etc.)
Framework: v1.1.4322
Dependencies on W2000:
mscoree.dll 1.1.4322.573
advapi32.dll ... more >>
Modal MDI Child
Posted by Eldon Ferran de Pol at 2/26/2004 3:06:05 AM
Hi all
Sure this has come up plenty of times before but couldn't find it
I've a form I want to display modally within an MDI app and get a "Only top level forms can be shown modally.....
Any solution to this. I can't beleive it is that difficul
Eldon... more >>
Save and restore Printer Settings
Posted by jimdigriz NO[at]SPAM home.net at 2/26/2004 2:46:06 AM
Hell
In my windows application I need to save runtime printer settings to an XML file when it is shutting down
The next time the application starts I restore them
Now there is one big problem
I am not able to restore the last used values in the following cases
PrinterResolution.X and Printe... more >>
PropertyGrid in UserControl doesn't reflect changes to displayed class
Posted by John at 2/26/2004 12:51:07 AM
Hello.
I have a propertygrid in a usercontrol which I have placed on a form. I assign a class to this property grid in the control's constructor and it displays the properties of my class with no problem. I then invoke a method on the control which updates the class displayed in the propertygrid... more >>
show files from database
Posted by Simon Gorski at 2/25/2004 11:08:19 PM
hello ng,
is there a way to show a file from a database (example pdf-file), without
saving the file first on hard disk?
thanxs simon g.
... more >>
XML and schema
Posted by Chris Wagner at 2/25/2004 7:58:42 PM
how do i validate a xml file with a schema using VB.net or C#? thanks
... more >>
Problem painting Linear Gradient onto WinForm
Posted by David Clegg at 2/25/2004 7:32:25 PM
I'm trying to create a WinForm with a Linear Gradient background.
That's easy enough, but any Labels I have on the form do not have their
background painted correctly. Even though I have Label.BackColor set to
Color.Transparent, it is using the original BackColor of the Form. Here
is my code, wh... more >>
window: Always in front / always on top
Posted by Jeroen Pot at 2/25/2004 7:20:02 PM
Hello,
i'm building an application and i want my window to always be on top.
The perfect example off this is the windows task manager.
I've translated dutch back into english, so i don't know if it's the exact
translation:
In the menu options the first menu option is "Always in front".
D... more >>
Problems implementing No Touch deployment
Posted by Aaron Ackerman at 2/25/2004 4:42:40 PM
I have a WinForms app that I built a .NET setup routine and distributed on
various clients.
Now i want to be able to distrbute updates via "No Touch" deployment. I read
Chris Sells article on "No Touch", and I setup an internal website to test.
When I drop the assemblies in the web and then ... more >>
Assigning Icons to Forms
Posted by TerishD at 2/25/2004 2:36:12 PM
As always, I am asking a stupid question
1) Creating a Direct3D graphic program
2) Create my Direct3D scree
3) I want that screen to have an icon (note that I create form through code)
4) Me.Text="Title of my screen" : ' Works
4) Me.Icon ???? What would be the command here
Thank yo... more >>
|