Validate multiple textbox or other entries
Given is the validation code for my form.private void button1_Click(object sender, EventArgs e) {if (txtName.Text == string.Empty) {MessageBox.Show("Enter the name");txtName.Focus();...
View ArticleHow to Incorporate Email Send into Current Coding
I want to use the send email method listed as the lastmethod in this code below. But I am unable to discover how to have the body of the email display a list of all the students that were processed....
View ArticleOverride Webbrowser.FileDownload and Save Prompts
I’m developing a C# application to use the Visual Studio WebBrowser control and download documents from the web. (I’m using the Extended WebBrowser control supporting tabs – CSTabbedWebBrowser from...
View ArticleDataGridView with MaskedTextBox Cell
I'd like to create a DataGridView with differents types of cells in the same column.It's easy to build a DataGridView in which one same column has cells of type: ComboBox, TextBox, DateTimePicker...
View ArticleRemoving the left Column in a DataGridView
Hi, Does anyone know how to remove (or not display) the first column on the left hand side on a datagridview. a pen and three dots are displayed when a row is selected on that column. I am using VB on...
View ArticleChange the width of the scrollbar on a datagridview
Hello all,I am trying to modify the width of the vertical scrollbar on my datagridview by using the following code :Dim fi As Reflection.FieldInfo = myDataGridView.GetType.GetField("vertScrollBar",...
View ArticleWebBrowser Control Navigate Does Not Work on Subsequent URLs
I have VS 2012 running on Windows 7 Premium. I am developing for x86 in VB.Net. The web browser control will navigate to a selected URL correctly but, when I try and hit another url (or even the same...
View ArticlePlacing a pop-up window over a specified gridview cell location
Hi,I have a hyperlink column in my gridview and a pop-up appears at some default screen position when a particular hyperlink in this column is clicked. I wish to position this pop-up near the clicked...
View ArticleWindow and Windowless Activex Controls
Hi, can anyone tell me the main difference between window and windowless Activex controls...? Please tell me how to host a windowless activex control on a c# windows form application... what could be...
View ArticleHow to support Windowless Activex Controls in Windows 7 with VS 2008 or 2005
Hi,I created a windows C# form Application in which I am hosting a windowless Activex control and am getting the error as "unable to get the window handle for 'xxx' control. windowless Activex Controls...
View ArticleHow to create a C# context menu from code?
Hello. I'm new to C# and I am having a very difficult time getting a context menu to show. I've done it with VB.NET so I know it can work on my computer, but what am I doing wrong with C#? I've tried...
View ArticleCrystal Report
After making the setup project for an application i get an error message " Load report failed " when I trying to open crystal reporthow can I fix that ? and what is the correct path for loading the...
View ArticleCursor in text Boxes
Hello I have simple question ,In my app i have 4 text boxes and i want when the first is full,the user will be prompt to the second (i mean that the second will be selected) When the app is...
View ArticleHow to update contents of rich text box in form1 with values coming from...
I want to pass values between two Forms (c# both in active states). How can I do it? I have two forms: Form1 and Form2. Form1 contains a rich text box and a button. When I click on that button, Form2...
View ArticleContext menus and the visual editor
I've created a custom control that has a Context Menu Strip control in it. However, I would like it so that when in the visual editor, and i click my custom control, that context menu pops up so I can...
View ArticleGetting error while executing the script..
protected void button1_Click(object sender, EventArgs e) { try { System.Data.OleDb.OleDbConnection conn = new...
View ArticleLabel Loading slowly
Hi,I have windows form and i have a progress bar,button,label.When is load the form for the first time the label basically loads slowly and display the text.It provides bad UX.Can some one help me on...
View ArticleSplitcontainer panel size changs from one machine to another
Hi All,I have created a winform with splitcontainer and it has two panels. The panel2 size (width) change from machine to machine. For Example, I run the winform on machine 1(laptop) , the panel2 width...
View ArticleShowDialog not recommended?
Hello everyone,I often see people writing on different programming forums/blogs : "Don't touch ShowDialog" , "ShowDialog means bad design" , "Modal form makes your UI unfriendly".Is modal form a UI...
View ArticleReportViewer Save button
Hi, I have a ReportViewer on my windows app (vs 2005) and it works great. My question is: Is it possible to add another save button to the reportviewer so that with one click I can save the report to...
View Article