-
- Border color of Textbox not working with Opacity < 1
by Maik Wiege
- 4 Replies
- Last post
by David S. Anderson
- Hello,
I subclassed the TextBox control to create textboxes with a custom border color. I override the WndProc function to catch the PAINT Messages and draw the border in my color like this: protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (message.Msg == WM_NCPAINT || message.Msg == WM_ERASEBKGND || message.Msg == WM_PAINT)
{
//get handle to a display devi
-
- SQL Server 2005 SP2 as Prerequisite?
by Mio
- 9 Replies
- Last post
by RichLeyshon
- Hello, How can I make SQL Server 2005 SP2 a prereq for a Setup project Is there an available package file for it I can't find one, and I need to be able to have this actually work on Vista. Thanks
-
- WebBrowser - how to get SelectedText ?
by Eli Gazit
- 1 Replies
- Last post
by EliGazit
- Hi.
How can I detect the currently selected text in a WebBrowser control
-
- Error in "How to create a thread by using Visual C#" Article ID : 815804
by daniel mark
- 7 Replies
- Last post
by Peter Ritchie
- Hello all:
I go through the tutorial " How to create a thread by using Visual C#"
http://support.microsoft.com/kb/815804
However, I met the following error messages:
InvalidOperationException was unhandled
Cross-thread operation not valid: Control "accessed from a thread other than the thread it was created on.
In the IDE, there is a yellow arr
-
- Font Size Scailing
by Essial
- 4 Replies
- Last post
by Yu Guo ¨C MSFT
- I have written a test application that draws text (among other things) on the screen. Before I draw, I scale values of X, Y, Width, Height, and Size according to the ration of the wanted width, and the actuial width of the form. The problem is, when I call Graphics.DrawString, I notice that the fonts change in "steps". Keep in mind, I have set the units to inches, and I supply inches in,
-
- to determine length of audio track
by karande23
- 4 Replies
- Last post
by Jarno Burger
- I am using the AxwmpLib which provides me with windows media player...but the property:
windowsMediaPlayer.CurrentMedia.duration is always 0.0.
Basically I want to know length so that when my player starts automatically...it ends and as soon as it ends I have to enable a button that guide user to next form.
-
- Any ideas what is causing this?
by cybercrypt13
- 14 Replies
- Last post
by cybercrypt13
- I've done a quick video to show what is happening. I don't understand why I'm having so many problems with Visual Studio but maybe someone could tell me something I might be doing wrong. I have 2005 updated with the latest updates as far as I know. Their about screen doesn't come out and tell you what version you have but instead gives you 14 decimal version numbers so I won't swear the install di
-
- Changing the "Printing" icon.
by Forch
- 1 Replies
- Last post
by nobugz
- Hi everyone....
I am printing using the Print Dialog and print document.
After the user selects the printer and presses ok, this code is run:
Dim pd As PrintDocument = New PrintDocument
AddHandler pd.PrintPage, AddressOf Me .PrintPageEventHandler
---Other code
pd.Print()
When the "pd.Print()" is executed, a dialog box appears which says
-
- Control dynamically added to panel is not generating events
by Brickdam
- 6 Replies
- Last post
by Brickdam
- I have a splitter container (SC) that has 2 adjacent panels (P1) and (P2). P1 has a DeviceTreeView control that generates events that are handled by the top level easily.However, in P2 I want to dynamically create different views so I create panels (Px) dynamically that I can switch back and forth from (works fine - events to change panels are triggered from the tree in P1).The problem arises when
-
- Defaulting button text (VS2005 / C#)
by ron2464
- 3 Replies
- Last post
by ron2464
- Hi,
I have created a new button class (MyButton), which is derived from the Button class. In the constructor of my derived class I default the following 3 properties. TextImageRelation, TextAlign and Text. The first 2 work, but he Text value does not get set to the new defaulted value.
Is this a bug
Code sample...
class MyButton : Button
{
public
-
- Custom Message box C# 2.0
by newtoc&#35;484467
- 1 Replies
- Last post
by theTroll527
- Is there a custom message box method that can be used Is there a way to create a custom message box
-
- Bind datagridview with two datables
by NareshG
- 6 Replies
- Last post
by NareshG
- Hello all,
I am trying to bind two datatables to datagridview, the two tables have almost same columns .
For example. If table A contais 5 rows and table B contains 4 rows then datagridview should show 9 rows.
Is this possible.
-
- Extracting Columns Values from Dataset (Visual Basic)
by heimdaloz
- 2 Replies
- Last post
by Mamta M
- Thanks in Advance
I have worked out how to select a single value via SQL to a textfield and multiple records and columns to a grid.
How do I select a single row from the database (Visual Basic) and extract the columns into different text fields
-
- KeyDown Event, IsInputKey not working (C#)
by ThePatrickP
- 7 Replies
- Last post
by SteaN
- (C#, VS 2005) - I have a form, with a few radiobuttons on it. I want to
do some stuff when the arrow keys are pressed but the event isn't
raised. I found on MSDN that you should override IsInputKey, but I did
that and it doesn't work (IsInputKey is never called). Another problem (may have something to do
with it) is that i can't find a way to stop the arrow keys from
scrolling through the rad
-
- How can I open a MDI Child form from MDI Child form?
by DONG
- 5 Replies
- Last post
by Manju Sandhu
- I'm developing a application that using MDI interface. I need to open a MDI Child form from another MDI Child form. My code is next. I used this coding from MDI Child form.
frmP1 newMDIChild = new frmP1(); newMDIChild.Parent = this.Parent; newMDIChild.Show();
This coding is generated a error. How can I solve this problem If anybody knows how to, please let me know.
Thanks
-
- Installer Problem for program
by eseidel
- 7 Replies
- Last post
by eseidel
- I have created a windows installer setup package for my project with MDAC 2.8, CR, Report Viewer, and .Net Framework 2.0 Bootstrapped to the install. This is my first install package ever and am using VS2005. The install package works fine, the problem is that everytime I run the program .exe I get a installer progress bar first like its trying to reinstall or something. And when I install it from
-
- readonly combobox and datetimepicker
by Damiaan
- 4 Replies
- Last post
by Damiaan
- How can I make a combobox and a datatimepicker readonly (Like the locked property in Ms Access).
-
- VB.NET 2005 - Treeview won't sort properly
by blitzy
- 8 Replies
- Last post
by ParkerMelvin
- I am writing an application in VB.NET 2005 framework 2.0. I have a
treeview that I've named TV_UdxScans that is populated upon the
Form_Load with the names of files from a folder search for files that
start with "udx_" Concatenated with that is the date the file was
created. Child node items are listed in descending order initially
unless the user chooses otherwise. The structure of
-
- Can't see new added item after the datagridview.dataSource property set
by Paolo Ponzano
- 1 Replies
- Last post
by Ken Tucker
- Hi, I know it can be a stupid question, it's 2 day I'm getting mad about that, I've this sample piece of code taken from the net :
Code Block
private void Form1_Load(object sender, EventArgs e) { List<Product> myProds = new List<Product>(); myProds.Add(new Product("Prod 1", 1, 1)); myProds.Add(new Product("Prod 2", 2, 2)); myProds.Add(
-
- Property Grid Editor - Value Backcolor
by Jeff Walker&#40;Ohio&a
- 0 Replies
- Last post
by Jeff Walker&#40;Ohio&a
- I use the property grid editor extensively through out my application. I want to visually indicate when a value has become dirty (changed but not saved) by setting the backcolor in value window to yellow instead of the default white
Thanks Jeff
-
- Adding .Net Framework 3.0 as ClickOnce prerequisite
by perku
- 1 Replies
- Last post
by David Guyer MSFT
- What do I need to do to be able to make .Net Framework 3.0 a prerequisite for a ClickOnce-deployed application in VS2005
I'm running VS2005 on XP sp2 and I have installed the .Net Framework 3.0 runtime. What do I have to do to get the framework to appear as an option when I define the prerequisites for my application
I would like to avoid installing the "Visual Studio 2005 extensions f
-
- combobox giving an error when field is null
by fweeee
- 6 Replies
- Last post
by fweeee
- Hello, A quick overview of my issue. I have three tables:
Item - Primary Key is "ID", of type int.
Vendor - Primary Key is "ID" of type int. ItemVendor - Primary key contains two fields - "ItemID" and "VendorID" - both of type int. Nulls are not permitted.
I have created a relationship between ItemVendor and the other two tables in SQL Server Manage
-
- Check if Event is associated
by Abhijeet
- 2 Replies
- Last post
by nobugz
- Hi
Is there a method to check if a event is associted with a control.
Like i want to check if Click event is associated with a Button or not.
I want to do something like this, so that if the event is not associated, i can attach event.
If(button1.Click == null)
{
button1.click += ....
}
Thanks
Abhi..
-
- Overriding DefaultValue on a control inheriting from TextBox
by Billkamm
- 14 Replies
- Last post
by nobugz
- I have composite control I am creating that inherits from TextBox. However, when I override a property I can't seem to get the DefaultValue to change. I use the following code and when I try to add the control to the form at design time the DefaultValue of Text is "MyControl1".
Code Snippet
[DefaultValue("")] public override string Text { Any suggest
-
- Event Handling for a Menustrip
by RufusLDK
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I've create a menustrip with the code for it below. how to i create event handling for each of the items such as add and delete.
Public Sub managerToolBar()
food = New ToolStripMenuItem( "&Food" )
food.DropDownItems.Add( "&Add" )
MenuStrip1.Items.Add(food)
End Sub
How would i create a event handle for say if i click on Add to open a