-
- Disable button onclick to prevent multiple submissions
by BrettDerry
- 2 Replies
- Last post
by ctusch
- Hi All, I have an upload form that successfully emails an attachment in an email. Once the user hits submit, I want the button to be disabled but the form to still do all the client-side validation and the server-side code to email the form etc. Is there a 'quick and dirty' method to achieve this Regards, Brett
-
- Trying to get GUI to appear for logged in user, from a service running as System.....
by EricBrown
- 10 Replies
- Last post
by Dan Dittenhafer
- I've got a service that runs from system, and it needs to reboot the client, but
I can't get any gui to be displayed to the current user.
Has anyone got any suggestions on how I can get some kind of popup to give the
user warning the machine is about to reboot and wait for user input before the reboot takes place
Thanks,
Eric-
-
- how to set dataType of dataTable column as byte[]
by JoneLee
- 4 Replies
- Last post
by JoneLee
- Hi all,
I see that
The DataType property supports the following base .NET Framework data types:
Boolean
Byte
Char
DateTime
Decimal
Double
Int16
Int32
Int64
SByte
Single
String
TimeSpan
UInt16
UInt32
UInt64
as well as the following array ty
-
- Problem with SoundPlayer PlaySync () method
by Darrell Gibson
- 9 Replies
- Last post
by Darrell Gibson
- I have a problem when I want to play consecutive wav files. In order to do this I have to use the PlaySync() method that does not return until the wav file has been played. This works fine when the wav files are small (less than 5-8MB), but when the audio tracks are longer (and the files get larger > 8MB, 30MB for a typical music track) the PlaySync returns before the wav file has reached the
-
- Asynchronous calling question
by andriscs
- 13 Replies
- Last post
by andriscs
- Hi, I have a method that calculates directory size recursively. With large directory structures it is quite slow so I decided to start it on a separate thread so I could use my form meanwhile. I read a lot about threading but something is not clear. Here is my code:
Code Snippet
delegate long MyDirSizeDelegate(DirectoryInfo di); ... DirectoryInfo di=new DirectoryInfo(dir); MyDirSize
-
- Sending Email when Exception
by PPCUBAN
- 3 Replies
- Last post
by Andreas Johansson
- Hello
I'm new in Winforms. I come from ASP.NET. So, i'm trying to get used to the platforms differences.
My question is. I need to create a mechanism that whenever, wherever in my code an Exception occurs save that Exception to the database and automatcally send an email to myself.
I'm deploying a new app for my corporation and i want to be able to spot all error that might co
-
- DataGridView - I need a simple example that works with List<??>
by TheGasMan
- 1 Replies
- Last post
by Yu Guo ¨C MSFT
- Hello, I'm hoping someone can help me out here. I want to get started using DataGridView, but I've not actually managed to find any examples that fit what I'm trying to do. What I want to do is very simple: (1) I have a list of class instances thus: List<MyClass> classList = new List<MyClass>(); classList.Add(new MyClass("Fred")); classList.Add(new MyClass("Wilma"
-
- How to add save button to PrintPreviewDialog? VB.Net or VS 2005
by Vaish
- 5 Replies
- Last post
by Vaish
- Hi
I have 'PrintPreviewDialog1' in my windows application. This print preview dialog will be populated from the main form. So the default control of the PrintPreviewDialog has print ,zoom etc.
My question: How do I edit this control programaticaly to add save button I am tring to save the previewed document as PDF.
Advance Thanks
Vaish
-
- How to detect the key down event for Panel control?
by Patrick Sky
- 4 Replies
- Last post
by JDee
- Hi ~
I see from the MSDN document ,it describe for the KeyDown event is "This member is not meaningful for this control.". Although i can assign a event handling method to the Panel class, but the Key Down event never be raise when i key down on the Panel. So,
How to detect the key down event for Panel control Or it have another way to detect the key down event for Panel
Thank ~
-
- Updating parent grid based on the pop up form confirmation
by .net sukbir
- 4 Replies
- Last post
by .net sukbir
- Dear All,
My problem here is that I have main form with a grid. I have set the modifiers for the grid to be public. So I have text box which upon entering the data it will add a new line to the grid. But if the text box value is below a certain value. I will pop up another separate pop up form where the user will do validation using his password. Then upon validation in this form I woul
-
- Unable to edit datagrid...
by ggssu
- 1 Replies
- Last post
by ggssu
- Hi,
I am using sql command to retrieve data from database and display it on datagrid. However, I am not able to edit data grid unlike datagridview where i can set it to readonly = false.
I am using sql server compact edition for mobile application.
Below is a sample code
Code Snippet
DgvSecurityIdts.DataSource = Nothing
'Selects the relevant rows
Di
-
- PIcture box Paint
by Ravinder&#64;8585
- 11 Replies
- Last post
by Ravinder@8585
- hello forum;
i have a requirement in .net compact framework.i need to draw on a picturebox .the image is taken from a camera and mapped to the picture box.now i need to make some markings on the picture taken .i tried creating an On Paint event for the picture box but the drawing is done on the form but not on the picture box.can any one help me on this issue
private void pictureBox1_Pain
-
- Single click acting as double click in form designer
by mikecoop83
- 5 Replies
- Last post
by CWGibbs
- For some reason, when I'm editing a property of a control in Design View and then single-click back on the form designer, the IDE acts as if I double-clicked, and goes to the code for the Form.Load event-handler, for example. Has anyone else experienced this Is there a setting that I changed somewhere that fixes this, or is it a bug
Thanks for your help.
-Mike
-
- Add Data Source Not Working
by fargs
- 1 Replies
- Last post
by Ken Tucker
- Hi,
I am having an issue when trying to add a new data source to my windows forms project. I have 5 datasources already visible but when i try to add a new datasource, I select the object, click next, and the screen just closes and nothing happens
I tried adding an xml file with the datasource extension and manually filing in the genericdatasource node but that didn't work either.
Has a
-
- Adding SplashScreen Item
by wasimf
- 2 Replies
- Last post
by nobugz
- Hi all,
I need to add the SplashScreen Item to my c# project. I see that this item is already appear in the VB.Net project, but I don't have it in the C# project.
How can add it What is the problem it does't appear in the c# project
Thanks in advance...
-
- display member of checkedlistbox
by Newbie Kam
- 5 Replies
- Last post
by NixonX
- I want to use a checkedlistbox for users to check which record they want to select.
Can I show the full detail of record(serveral fields) instead of a single field
-
- Checkbox + datagrid
by misscricri
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi!
I am working with an sql database that it's loading into a datagrid. I would like to personalize my datagrid and add checkboses on the first column.
There is my code :
public class PersonnalisationDataGrid : Form_Consult
{
private System.Windows.Forms.DataGridTextBoxColumn Column1;
//private System.Windows.Forms.DataGridTextBoxColumn Column2;
//private System.
-
- Smooth Scrolling and the mysteries of OnPaint
by akeshet
- 4 Replies
- Last post
by boomhauer
- Hi Guys, I've been struggling with this problem for several days now, perhaps somebody can shed some light. I have a Panel that has a large number of controls in it (buttons etc.). The size of the panel is smaller than the area that the controls take up, so I have the panel's autoscroll property set to true, and thus when necessary the panel has scrollbars so you can get to the appropriate control
-
- What is the difference between .net framework sdk and .net framework Redistributable?
by Anjan Kumar Chidige
- 3 Replies
- Last post
by PhilWilson
- Hi All,
I have a question on .net SDK and .net redistributable package.
1. What is the difference between these 2.
2. When will the \\Microsoft SDKs\.netFramework\V2.0 key gets created in the registry
Thanks
Anjan
-
- adding customer object to listbox
by forwheeler
- 4 Replies
- Last post
by forwheeler
- I have a listbox that I want to add a customer object to. This is my test code.
private void FillCustomerListbox()
{
Customer c = new Customer ();
lbCustomers.Items.Clear();
lbCustomers.BeginUpdate();
c.CustomerID = 40;
c.FName = "test" ;
lbCustomers.Items.Add(c);
lbCustomers.EndUpdate();
}
This will display as a Customer object
-
- ISupportInitialize Initial Work
by aspatz
- 2 Replies
- Last post
by aspatz
- hello, i have a basic "BasicPluggableForm" form and some inherited forms from this basic form. BasicPluggableForm BasicLayoutForm ConcreteForm I want to do some basic initialization "BasicInitialization()" in the basic form, but i need the params object from the Concrete Ctor "public ConcreteForm(params object[] args)" in the "ConcreteForm" for this "Ba
-
- Convert DBCS to Unicode and Viceversa
by SanDoty
- 3 Replies
- Last post
by nobugz
- Hi,
Please correct me if my understanding is wrong. VB.net is Unicode Compliant and i want to pass the values to my Database in DBCS format. How do i proceed
SanDoty
-
- WebBrowser Class
by AlexBB
- 14 Replies
- Last post
by AlexBB
- WebBrowser wb = new WebBrowser ( );
wb . Navigate ( url, true ); // <===
wb . Show ( );
It does not give me a NEW Window in Vista but does in XP. Why It is a big headache.
Thanks.
-
- call instance of main form
by S10n
- 1 Replies
- Last post
by boban.s
- Hi, I have another problem with the login form, I have my login form which is the main form of my project, when the user types in the password and the username in the login form, this data is passed to the other form (the one that loads the data) using the constructor, then this form builds the connection string for the oracle connection and tries to open the connection, however if the password is
-
- Disappearence of Windows Forms Designer
by joeller
- 4 Replies
- Last post
by Eli Gazit
- This is something I have never seen or expected to see and I don't understand what happened. I created a Windows Forms application on my machine at home. I carried out extensive testing and everything worked fine. I copied the folder and brought it to work. I carried out testing there. It runs fine. But I can not see the Windows Forms designer window. I need to add a couple of controls and alter a