all groups > dotnet windows forms > april 2006 > threads for april 1 - 7, 2006
Filter by week: 1 2 3 4 5
Select Text of Label
Posted by jerry NO[at]SPAM solutionsyndicate.com at 4/7/2006 3:00:01 PM
How can I allow my WinForm user to select/copy/paste the content of a
Label?
Thank you in advance, Jerry Nixon
... more >>
ListViewGroup Color?
Posted by flagrant99 at 4/7/2006 2:16:02 PM
Anybody know how to set this?
listview.ForeColor has no effect on it.
If I change my listview forecolor to green the group headers stay black.
... more >>
Displaying HTML/XHTML from source XML file
Posted by psid at 4/7/2006 9:46:21 AM
Displaying HTML/XHTML from source XML file
i am having an xml file
i want to display the contents of the xml file in a web browser control
in winforms
however i want to display it as html/xhtml after applying formatting.
how can this be done?
... more >>
selection box in datagrid
Posted by Andy G at 4/7/2006 9:17:40 AM
I just added a datagridView to my form and it looks like it adds a
'Selector' box in the header row. That box that is blank, has the * in it
if you can add records. How do I get rid of that thing? I can't find any
option to get rid of that selector box.
Thanks.
... more >>
Problem with multithreaded application (Cont.)
Posted by eduwushu at 4/7/2006 8:01:01 AM
Let me be more explicit on the problem: i've been making some testings on my
application and i realized that the application hangs in this situation:
I have a main window created in the thread which called Application.Run so
it has the message loop right? Well, then i have another thread wich
... more >>
Problem with multithread application
Posted by eduwushu at 4/7/2006 5:14:01 AM
Hi there.Im building a multithreaded application which uses forms and im
having some problems possibly due to my inexperience.
The project is being developed in C# with visual studio 2005.
I have a main thread which executes Application.Run() (so it has the message
loop for the interface) and ... more >>
Domain Name
Posted by Marek at 4/7/2006 4:57:01 AM
HI, I have questation about computer domain . How I simpli get this
information from computer ? I want use systeminformation , properties
userdomainname , but this is user domain ...
thanx
marek ... more >>
Use MeasureString to determine required height
Posted by Alex Broide at 4/6/2006 5:42:02 PM
I'm trying to create a label control in VB.NET2005 that will automatically
change it's height to fit the content. To do that i'm using MeasureString to
determine required height for a set width.
What i found is that MeasureString sometimes returns the height which is
smaller then it should b... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Adding 'object' to Treeview?
Posted by Ed Minrights at 4/6/2006 5:31:06 PM
I have a bunch of related classes that I want to add into a Treeview
with a hierarchy. However, Treeview doesn't support the insertion of
the root 'object' type into the nodes, which surprises me. I just
wanted to add them in and have the mouse events fire back with the
reference to the object... more >>
How to Package and Deploy Windows Installer 3.0
Posted by John at 4/6/2006 4:22:41 PM
I have made setup project (VS 2005) that includes setup of my app and
Framework 2.0
How can I check if there is installed Windows Installer 3.1 and if not to
install it?
I know that I have to add launch condition, but don't know what to type in
properties.
Thanks
... more >>
RichEditBox speed
Posted by sb at 4/6/2006 3:20:34 PM
Is there anyway to speed up the selecting and coloring of text in a
richedit. The parsing of the text is nothing in comparison with how long it
takes these two calls to take place (over many lines):
rtb.Select(currentPos, myLine.Length);
rtb.SelectionColor = myColor;
From my res... more >>
Question on Inheriting Controls
Posted by David White at 4/6/2006 1:49:19 PM
I have a project which is a Windows Form "Wizard". Each "page" displayed in the
main Wizard form will be a user control. Each of these user controls will share
many similar attributes. So it seems natural for me to create a base user
control class and have all my "pages" inherit from it. But i... more >>
State of MdiClient
Posted by MuZZy at 4/6/2006 1:47:19 PM
Hi,
I'm developing an MDI application and i am having a problem: how do i
know the state of MdiClient; what i mean is: when i maximize a MDI
child, then close it and then open a new MDI child, it will open
maximized, then if i change it's state to Normal and close, then next
opened MDI ch... more >>
DataSet and Usercontrol TestContainer has a Problem
Posted by Mauricio Pires at 4/6/2006 1:20:02 PM
I have a WebService that has a method that returns a Typed DataSet.
I create a UserControl that calls this method.
When the UserControl runs by "UserControl TestContainer" and calls the
WebService's method which returns a Typed DataSet the error "There is an
error in XML document (1, 220)." ... more >>
Using System.Web.Mail.MailMessage in Windows Forms
Posted by Darren Gulliver at 4/6/2006 12:29:01 PM
Hi,
I've written a small proof of concept application to show we can send emails
in VB.NET and it works a treat using this piece of code:
Dim myEmail As System.Web.Mail.MailMessage = New
System.Web.Mail.MailMessage()
myEmail.From = txtFrom.Text
myEmail.To = txtTo.Text
myEmail.Body = txtBo... more >>
Is the computer locked?
Posted by edwilli at 4/6/2006 8:20:01 AM
Is there a way using the .NET framework to find out if the machine a service
is running on is locked by the user?... more >>
Slow Rendering on Windows Forms when I am using graphics as backgr
Posted by George at 4/6/2006 2:04:01 AM
Hello,
I am trying to build a KIOSK application, where all windows forms are filled
with graphics images and a lot of buttons.
The major bproblem is that when the application is running and the forms are
ready to display on the screen I see a lot of cuts... for example when I show
a form... more >>
Windows forms Datagrid cell text
Posted by Richard Harris at 4/6/2006 12:00:00 AM
Hi,
I am trying to write some code that will return the text from a datagrid
cell when you click on it. So far I have the following code (which maybe
completely the wrong way to go about this), which returns the row number,
and the column number, but I am not sure how to get the contents o... more >>
Is there any slide show control for win-form?
Posted by abc at 4/5/2006 10:48:57 PM
Is there any slide show control for win-form?
... more >>
Email and .NET
Posted by Charles A. Lackman at 4/5/2006 5:48:35 PM
Hello,
I am trying to format an email and have a .net application open up Outlook
or Outlook Express so that the user can simply click Send and have the
formatted email send from their email account. I am currently doing this
the following way:
Dim sParams As String
Dim TheTo, TheSubje... more >>
translucent panel...
Posted by Ben Callister at 4/5/2006 3:39:57 PM
i need to be able to adjust the opacity of a Windows Forms 'Panel' control.
currently, this is available on Forms, but not on Panel controls. can
someone please show me a trick to make this happen with panels or any other
control that i can use without having to display another Window/Form?
... more >>
clicking MDI child does not activate form...
Posted by Mike Edgewood at 4/5/2006 2:43:55 PM
Clicking an mdi child form will not activate the form unless I click on
the sizeable border or title/caption bar. Sometimes it works correctly
and I can click anywhere on the underlying child form and it pops to
the front. Other times, I can type in text boxes of the child for,
drop down combo... more >>
Setting combo box items property?
Posted by David Veeneman at 4/5/2006 2:07:48 PM
I am building a user control that has a combo box (comboBoxMain) as a
constutient control. The user control has an Items property, which will set
the items of the combo box. I want the user control Items property to be
browsable at design-time, so the user of the control can click the
proper... more >>
Multithreading in Form
Posted by Sudha at 4/5/2006 1:00:01 PM
Hi All,
I am new to C# thread programming. I got one issue. I appreciate if
anybody can point what i am doing wrong here.
I have created one C#.NET application (VS.NET 2003 and 1.1 Framework).
It contains two forms. (Form1 and Form2)
Form1 contains only one button.
On click of this bu... more >>
Data binding a ListBox to a List<T>
Posted by Chris Dunaway at 4/5/2006 11:18:05 AM
I have 2 list boxes on the form. Each listbox is bound to a different
List<T>. My goal is for the user to select an item in ListBox1, click
a button, and have that item moved to ListBox2.
The way I approached this was to have a populated List<T1> bound to
ListBox1. I set the DataSource, Dis... more >>
Create something of ContextMenuStripItem type ????
Posted by poppy at 4/5/2006 9:39:02 AM
f I can declare a menu item as :
Dim mnuItem As MenuItem
then why cant I declare something of ContextMenuStripItem type.
There is a collection of items for a contextmenustrip.!!
I have a method :
private void NewLoad(object sender, System.EventArgs e)
{
//I need to do s... more >>
Disable ArrowKey
Posted by Marco at 4/5/2006 9:15:02 AM
Hello,
I have a datagrid and I would that if I press an arrow key (up and down) the
cursor don't move up and down on the datagrid.
There is a solution for my problem?
I have used keypress and keyup but don't capture the arrow keys.
Only KeyDown capture ArrowUp and ArrowDown but e.Handler = Tru... more >>
Move Files
Posted by P K at 4/5/2006 7:59:01 AM
I have directory say C:\d1. It has a file say f1.
I have to move this file to a sub directory under c:\d1. i.e., I have to
move f1 into C:\d1\d2.
I use fileSystemInfo.move for this but I get an error as follows -
{"The process cannot access the file because it is being used by another
pro... more >>
Cannot print a PrintDocument
Posted by Roby Eisenbraun Martins at 4/5/2006 3:08:01 AM
Hi,
I not beeing able to print a document created using PrintDocument. I can
preview it, but when I try to print it, I receive an "Invalid Parameter"
exception in a "DrawString" method execution.
I tried changing the default printer and the printer settings but it
didn't work.
... more >>
deriving DataGridTextBoxColumn - behaviour on new rows
Posted by k992637 NO[at]SPAM yahoo.com at 4/5/2006 2:25:28 AM
Hello
I have derived a class from DataGridTextBoxColumn and am getting some
behaviour which I do not understand and I would like to know where I am
going wrong.
The problem is like this. I have a datagrid, lets say with four
columns. Two columns have my derived style and two have the defa... more >>
reading data from a datagridview
Posted by Simon at 4/5/2006 12:29:47 AM
How can I read data rows from a datagridview and insert it into the
database.
... more >>
VB6-MDI child in .NET application
Posted by Karl-Heinz Wenzel at 4/5/2006 12:14:37 AM
Is it possible to integrate a VB6 MDI child form into a .NET
application? How is it done?
Thank you
Karl-Heinz... more >>
ClickOnce Install returns XML
Posted by John Price at 4/5/2006 12:00:00 AM
I have deployed an application with ClickOnce Publish wizard to a web site.
But when I click web page Install button the web server just returns the
content of the .application file as XML to the browser on my own client.
I made a quick try on two other clients and it seems that they are capable
... more >>
Fereshing an open form
Posted by Jonathan Crawford at 4/5/2006 12:00:00 AM
Hi
I want to refresh the data in an open form from another form by calling a
procedure.
Is this possible?
thanks
Jonathan
--
===============
Jonathan Crawford
jc@tgsi.net
===============
... more >>
Accessing a form being created
Posted by paulo at 4/4/2006 5:30:26 PM
Hello,
I would like to know if it possible to receive an event or intercept a
message so I can access every form I create in my application. I want to
add some functionality to my forms, but I want to do it in runtime. Is
it possible to be notified every time a new form is created and befor... more >>
Blank DataGrid
Posted by Skandy at 4/4/2006 4:26:17 PM
Hello:
This must be quite simple! But I couldnt figure out whats wrong:
I have this following code, and I still see a blank datagrid:
Imports System.Data
Imports System.Data.SqlClient
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventA... more >>
How to catch clicks on contained controls in the form.
Posted by KenDev at 4/4/2006 2:00:02 PM
I would like to capture, in my form, any mouse clicks on controls contained
in the form.
I know I can do this using a mouse hook, but that has a few problems with
catching clicks on dialogs the form owns that I have not been able to work
out.
I want to catch the click, so I can lock the... more >>
Adding Control to a Form from another thread
Posted by Dan, Vascas at 4/4/2006 1:17:21 PM
In the background I want to load some control after form loaded.
I tried threading but it does not allow me to add control because current
thread have not created the form.
Also please tell me what BackGroundWorker control suppose to do.
How do I do it.
Please advise me.
Thanks, Dan
... more >>
Open Non-Modal Form from MDI Application
Posted by Eric at 4/4/2006 11:49:01 AM
I have an application that has an MDI main page. I would like to open up
multiple non-modal forms for some of the items within that MDI application.
Essentially, I want to open SDI forms from and MDI main application. I have
the forms open, but they don't open up on top and with focus. I n... more >>
ClosingEventArgs 'Cancel' member already set to true by framework
Posted by RitualDave at 4/4/2006 10:30:04 AM
I'm having a difficult time trying to track this issue down. Hopefully,
someone might be able to share some insight.
I have a situation where a form is not closed when I explicitly call Close()
on it. As part of trying to debug this problem, I overrode the "OnClosing"
method (and OnForm... more >>
Clipboard events
Posted by Hanika at 4/4/2006 10:30:01 AM
Hello ,
Does any one know if the clipboard fires any events (oncopy, onpaste)?
I would assume it does. If so, how would an application handle such an
event? The clipboard class itself does not have one. I am looking to change
the state of a button in my app when another app pastes some... more >>
Accesing form's components in design time
Posted by samnospam NO[at]SPAM nospam.nospam at 4/4/2006 2:57:01 AM
Hi,
I need to access all components of a winform (controls, and any other
component which does not inherit from System.Windows.Forms.Control) both in
design and run time.
In design time I access the components and iterate through them using form's
Component property, but in run time this... more >>
mysterious resize behavior...
Posted by Lloyd Dupont at 4/4/2006 12:00:00 AM
I have developed a custom Control inheriting from
System.Windows.Forms.Control
It has some children control.
Something really weird happen when I resize it, its children control move!
Even though I have specified Anchor = AnchorStyle.None & Dock =
DockStyle.None (and I checked with the debugg... more >>
Listview selection on group click
Posted by Jared at 4/4/2006 12:00:00 AM
Hi,
I am loosing my selected item when user click on a group in details modes.
Causes error and I would always like 1 item to be selected.
Any Ideas?
... more >>
PLS HELP:Managing events
Posted by MuZZy at 4/3/2006 11:15:57 PM
Hi,
I'm developing a usercontrol which has an event SelectedValueChanged.
Below is the simple version of what i have:
//------------------------------
class SelectedValueChangedArgs: EventArgs
{
object m_oValue;
public SelectedValueChangedArgs(object oValue)
{
m_oValue = oValue;
... more >>
Merging menuitems : nobody knows the answers ???
Posted by cc at 4/3/2006 9:42:19 PM
hi,
i've posted this message at the start of last weekend, maybe that's why I
didn't receive any answer (I know there are better things to do than sit in
front of a computer a whole weekend)
that's why I'll post again now.
--->
when adding items to a MenuStrip VS 2005 defines them as objec... more >>
SuspendLayout and Multiple Controls
Posted by John at 4/3/2006 3:10:43 PM
I am looking at ways to reduce the visible delay in a form I have with
many controls. I have two methods that loop across and either enable or
disable all but two of the controls.
I am using SuspendLayout and ResumeLayout at the form level, but so far
I don't see any real improvement becaus... more >>
How to get an Office 2007-style ribbon toolbar?
Posted by Jonathan Rothwell at 4/3/2006 2:29:13 PM
Is there anyone who knows how to get a ribbon-toolbar (like the ones in
Office 2007) in a VB.NET 2005 application? Is there some patent prohibiting
people from using it? Any help would be appreciated.
... more >>
Write to Appname.exe.config
Posted by brian at 4/3/2006 1:25:02 PM
I can use System.Configuration classes:
string dns = ConfigurationSettings["name"];
to access the appSettings configuration
<configuration>
<appSettings>
<add key="name" value="val" />
</appSettings>
</configuration>
Isn't there a Class or Method to write values to the appSettings
... more >>
How to get ListItemValue and ListItemText from a Combo using SendMessage
Posted by ME at 4/3/2006 12:41:44 PM
I am new to interop services as well as the Windows API in general. What is
the proper way to obtain the ListItemValue and the ListItemText using the
windows API? I would like to be able to read a combo's list values from a
windows form application (ComboBox) and also from a combo on a web page... more >>
datagridview add a combobox to a single cell, not a whole column
Posted by mikeq at 4/3/2006 10:15:03 AM
I would like to have a DataGridView that has a column in it that contains a
combobox only on certain rows. I have searched the web and the only solution
I have found is to create a custom DataGridView control. There must be an
easier way to do this. Any suggestions?
-- Mikeq... more >>
How to change all disabled controls backcolor
Posted by Toze at 4/3/2006 9:51:02 AM
I need to change the color used by windows to paint the backcolor of all
disabled controls in my application, because users, in certain conditions of
light, can't read the text.
I Think that I need to change something like SystemColors.GrayText, but it
seems to be readonly...
My application ... more >>
Trying to "display" control characters in a text box
Posted by Ron L at 4/3/2006 8:09:43 AM
I have a barcode scanner which uses a "keyboard wedge" program so that the
data it scans comes through as if it was typed on a keyboard. I am trying
to have the data in the barcode be displayed in a text box. I know that
there are certain control characters embedded in the data that I want t... more >>
Typed Dataset
Posted by DK at 4/2/2006 10:29:02 PM
How can Typed datasets be generated in Data layer?... more >>
Combo Box
Posted by DK at 4/2/2006 10:23:01 PM
I have a ComboBox bound to a dataset. I want to add an Item "<Select an
Entry>" to the combo box. It is in addition to the items already added to the
control through the Dataset (From DB). How it can be done?
Thanks.... more >>
Exception when use MessageBox.Show in prog with long path
Posted by Jeff Pek (Autodesk) at 4/1/2006 1:30:40 PM
All -
I haven't come across this issue elsewhere, or in a search within this
newsgroup. Perhaps someone here has come across it...
In both 1.1 (SP1) and 2.0, when using MessageBox.Show in a simple Windows
app (only shows the messagebox), and with the .EXE file sitting at a
location where it... more >>
Monitoring user interaction with the axWebBrowser control
Posted by puzzled in seattle at 4/1/2006 1:21:02 PM
Hi all,
I have a vs2005 winform that host the activex axWebBrowser control.
I would like to monitor how long a user spends on a site viewed in the web
browser control, In the web world this would usually be done on the web
server by using some sort of caching or session objects. Is it poss... more >>
newbie: multiple panels in form
Posted by Peter Schmitz at 4/1/2006 1:06:01 AM
Hi,
I'm writing an application that makes use of multiple panels (that contain
specific components), but shows only one to the user at a time (which one
depends on user interaction in a toolbar).
Now, as all panels have the same size and the same position in the form,
it's quite annoying t... more >>
Merging ActiveX Control
Posted by Khaled Hussein at 4/1/2006 12:00:00 AM
Hi Every body,
I am currently working in aproject where I am stuck in merging an
ActiveX control (*.ocx) file into a managed Class Library (*.dll). I want to
hide the ActiveX Control in this managed Dll, so that even when things are
deployed I don't wanna see two files, but only 1 file wh... more >>
|