-
- Transparent usercontrol
by Harald Mejlholm
- 4 Replies
- Last post
by Harald Mejlholm
- According to Visual C# Help the way to have a transparent usercontrol is this:
Add the following 2 stms to the controls construktor:
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.BackColor = Color.Transparent;
I've tried, but the control isn't transparent, i.e. I can't see the controls beneath it, as I expected.
Have I misunderstood the concept of transpar
-
- pass value into one from to another from
by domain_azad
- 3 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Dear all, I build one windows mdi application.After run application i open one From from menustrip .Now i want to pass some value from this From to my another
mdichild From and try to show it when it loaded.I try it using set property like:
public class MobileLoginInfo { private string user_name; public MobileLoginInfo() { } public string selectedUserName {
-
- Install Source Failure (Unknown Error 0x80005000)
by WinFormsUser13232
- 5 Replies
- Last post
by Skyguard
- I am trying to install the TaskVision source package taskvision_1.1.0.0.msi. Installation proceeds normally until a "TaskVision Source" dialog box containing the string "Unknown Error (0x80005000)" and an OK button appears. When
-
- Error come when try to install clickonce application from website
by Vedratna
- 5 Replies
- Last post
by Yu Guo ¨C MSFT
- Hello Everybody, we have recently launched a Beta-3 version of our application "Investar" at our toolsite www.investarindia.com. It is vista certified (having Clickonce deployment setup) application. And most of users have installed it successfully. But some users have following problems at installation time. when they clicked on install button from our website ( Having .net framework 2.
-
- Selecting more than one day in MonthCalendar
by Michael Sync
- 4 Replies
- Last post
by Ram Kumar Karnataka
- I'm using System.Windows.Forms.MonthCalendar in my project. I allow the users to select multiple dates (date range) in that calendar control.. One strange thing that I noticed is that there is one while line which looks really bad in the selection line... I would like to know how to remove this while line from selection... Steps to reproduce this issue ~
Create one window application in V
-
- How to make the windows form invisible for first time
by manjunath cv
- 9 Replies
- Last post
by manjunath cv
- Hi guys i am doing an C# application in which if userclick the shortcut of the application the main form for first time it shud be invisible for first time and when user clicks the shortcut next time the form should appear....... i am finding a tough time time in solving this as i am new to programming is there any way we can make the form invisible for first time when user click the shortcut and
-
- Can I modify the datatable which a datagridview is bound to using a databinding ?
by desifunde
- 8 Replies
- Last post
by desifunde
- Hi, On adding a datarow to a datatable which is tied to a DataGridView through a binding source, I am receiving a "A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll" What I am doing is Main Thread: DataGridView.datasource = bindingsource1 bindingsource1.datasource = datatable1 thread2.start(addressof proc) sub proc { mainform.mydele
-
- Disallow entry from numeric keyboard to custom date text box and pass entry to text box
by milicica
- 4 Replies
- Last post
by boban.s
- Can someone help me with custom text box I want change behavior custom date text box - disallow entry and pass entry from numeric keyboard to a text box. Code below disallow entry, but how I can pass entry public class myDateTextBox : AMS.TextBox.DateTextBox { protected override bool ProcessDialogKey(Keys keyData) { if (keyData >= Keys.NumPad0 && keyData <= Keys.NumPad9) { base.Pro
-
- DataGridView Navigator toolbar
by GraemeP
- 2 Replies
- Last post
by GraemeP
- I'm having trouble with what looks like it should be a very simple solution.
I create a blank form
Drag a table from the datasource onto the form
So now I have a form which now has the navigation toolbar added at the top and a datagridview of the table.
If I then ADD a row to the view and click the save icon it works fine, however if I CHANGE or DELETE an existing row I get
-
- Best method to Validate windows form field data bound to a dataset datatable?
by jonnycab
- 2 Replies
- Last post
by jonnycab
- I've built a form using the drag and drop method from a dataset. Great, so now I have a form that I can add, edit, and delete details but how do I create field validation to
a) Prevent the errors generated from the datatable constraints (No Nulls)
b) Put in my own validation like making sure if one tick box is ticked that certain fields are completed
I want to validate fields before the u
-
- Problem building Setup project for Windows Service
by bpeikes
- 4 Replies
- Last post
by bpeikes
- Using VS 2005: I have a project which is a Windows Service. I have a ServiceInstaller class in that project which installs the service. I have also created a Setup project for the service. Under Custom Actions, I've added to the Install folder "Primary output from MyService (Active)" and the same to the Uninstall folder. When I try to build the setup I get the error: Unable to build cust
-
- Setting STAThreadAttribute
by DanBlather
- 6 Replies
- Last post
by DanBlather
- I have an application with an event handler that waits for HW events and then reports them to a server via the WebBroswer.navigate() method. I am getting an error when I invoke WebBroswer.navigate() saying: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment." Looking though the documentation, and Googl
-
- Setting Checked property on CheckBox giving strange behavior
by coryrogers
- 2 Replies
- Last post
by Guang-Ming Bian - MSFT
- I am having a problem with my windows app when I set the Checked property on a CheckBox. The Checked property is initially set to false. If I try to set the value to true it causes my application to hang. The application eventually comes back, but when it does the CheckBox control is gone. If I comment out the setting of the Checked property the app works fine.
Any help or insight would be
-
- How to get the list of modules that need to be updated
by Michael Sync
- 2 Replies
- Last post
by Michael Sync
- I'm using ClickOnce for deploying my smartclient (CAB) application. There are a lot of modules in my applications. When the new version of those modules have been deployed, I wanna show the list of modules that need to be updated to the user before downloading those latest version.. ( like Firefox extension's auto-updates style ) My question is: How can I get the list of latest module I was thin
-
- Closing all dialogs opened with Show() when Application exits
by ZiggyShort
- 5 Replies
- Last post
by Kensino
- I notice that when I close the main window of an application, any windows I open using Show() command are still left open.
I got around that by handling the Window_Closing event and calling Environment.Exit(code).
How do I detect and loop through the child windows first to ascertain their status, and closing them a bit more elegantly
-
- SelectedItem in a List box
by Aidan Mullane
- 8 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi there,
I've bound a List box to a datasource. I now wish to select a value from the list box and click the submit button. I then wish to capture the selected item. I'm using:
string category; category = Lisbox1.SelectedItem;
However this is always returning the first value from my list box no matter which item i select. I presume its something small nut what am i doing wrong
Thanks,
-
- invalid menu handle
by nick0123
- 5 Replies
- Last post
by banjo picker
- when i try to open a down load, i get invalid menu handle how do i solve this regards nicko
-
- Graphics.DrawString() ignores specified font?
by Ye Yan
- 0 Replies
- Last post
by Ye Yan
- Hi, when using Graphics.DrawString() to draw unicode-encoded CJK characters, the method seems to ignore the specified font if it does not support Asian characters and tries to find one which does. For example, override the Form.OnPaint() method: protected override void OnPaint(PaintEventArgs e) { Font font = new Font("Microsoft Sans Serif", 14); char[] chinese = {'\u6B22
-
- Setting Default values for BOUND ComboBoxes
by osbuckeye1
- 4 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I have several databound comboboxes that use the windows nav. bar. it works fine with updates, databinding lists, etc. but when I click the Add button on the Nav. bar everything is Init. to blanks. so the user is force to pick an item each time. I want to set default values based on earlier selections. My problem is in the
Private Sub BindingNavigatorAddNewItem_Click ( ByVal sender As
-
- MaskedEditBox - Selectall not behaving as expected.
by Hylton
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi
I am using a masked edit box (VS2005) on a windows form. Client wants the text to be highlighted when control gets focus. I find I am unable to do this while the control has a mask. If I remove the mask then Selectall selects the text.
Is there a way to have a mask and still get the text selected when the control gets focus.
-
- PropertyGrid not catching mouse events
by Mats Upptrom
- 2 Replies
- Last post
by Mats Upptrom
- Hello, I'm looking for a way to catch mouse clicks on a PropertyGrid and determine which property was clicked, in order to perform a task if the clicked property is of a certain type. The set value method which you need to implement for editing the property does not work either since it only triggers when changing the value. The PropertyGrid does not seem to let me catch Click or MouseDown events.
-
- Excel Automation from within Forms application deployed with ClickOnce
by Lighthouse Builder
- 3 Replies
- Last post
by Lighthouse Builder
- I'm just now "finding my feet" with Windows forms application development and I'm wondering if a specific task is possible within the Forms application architecture.
I would like to control Excel for custom purposes from within a Forms application that is deployed using ClickOnce.
I've searched and found some posts about exporting data to Excel through a database interface, but thi
-
- Custom painting
by pmsc
- 3 Replies
- Last post
by pmsc
- Hi,
I'm trying to develop an application that does the following using a DGV.
Each row correspond to one user and it's going to show the availabilities of that user. So I have columns for the hours 8am to 6pm for Monday to Friday. Now what I want is do draw rectangles that span more than one column (only one row) to show when the user is available. I should be able to double click on
-
- Visual C++ Form Name Property Missing
by expressNovice
- 4 Replies
- Last post
by RichardBustarde
- Has the form name property been removed from the Visual C++ 2005 Express Edition form Designer
Using Visual C++ 2005 Express Edition, I was unable to find the Name property on the form properties panel using category view. I switched to the alphabetical view and could not find any form properties that begin with the letter "n".
-
- Trying to create a small "Delay"... but can't make it work
by Gohalien
- 3 Replies
- Last post
by boban.s
- Hi, I have 2 forms, one is main form, and the other one just have a webbrowser.
Code Snippet
public partial class Form1 : Form
{
public DataTable tablelinks = new DataTable ();
public Web_form frmweb = new Web_form ();
//Inside the Web form, I have a webbrowser with public access.
public Form1()
{
InitializeComponent();
ta