How do you check if DateTime is Initialized?
I need help with making a code that checks every second if Datetime is started. If it is started it should close the already running function. I know dispatchertimer but I want it to run the thread in...
View ArticleAdd opened child forms in menustrip in C# Windows Form Programming.
I need a code for adding child forms into menu strip. For exp. I am creating a windows MDI form. Now, when i open a child form, then i want to add this form name in to menustrip at run time and when...
View ArticleSimple game concepts
Alright, here is my codeusing System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using...
View ArticleForm with in form should work as a webpage any idea to achieve ?
I would like to create a only single form but when ever i click menu items that should reflect the details with in that form ...same as master page and menu items in asp.net.Is there any way to achieve...
View ArticleDataGridView cell events (KeyPressed)
Hi. I am using VS2010, C++/CLI Windows Forms Application I want (Choose Cell in DVG, edit it, press Enter, get MessageBox with new value)this->dataGridView1->EditingControlShowing += gcnew...
View ArticleNotifyIcon's BalloonTipClicked not invoked after timeout
We have some software that shows a BalloonTip on a NotifyIcon with a reasonably small timeout of 5 seconds. When the user clicks the balloon, some action is started. I received a bug report that when...
View ArticleWorking with listbox in VB 2010
hi,i have this project i'm working on and i am facing a problem i would like to get some help to . it a login system, i have two listboxes on my form and a text box, when the form loads, the first...
View ArticleSQL Server 2008 R2 Database Backup and Restore using C#
Hai all, I am using https://gist.github.com/lordamit/2208989 note to make Database backup. But i got an error"Failed to connect to server"I am using SQL Server 2008 R2 and VS 2010please help me...
View ArticleC#-Closing Form and open new form
Dear All, I am working with C# Language. i'm wondering, i have Login form for starting up and main form. i used code start Main form and close login form if user name & password is correct....
View Articleanother draw graphics on pictureBox
hi @allhere is another question about drawing on a graphic on picturebox.i've already tried every way i saw here, but nothing.here is the full code of form1 (i'm using windows forms)using System; using...
View ArticleCheck if Name Already Exists
I have a windows form where about 50 people are doing data entry work. Sometimes a situation will arise and there will be a duplicate entry, and unfortunately I do not have a method in place to check...
View ArticleListing all derived classes of a base class
For more Details: I just want to get all the derived classes from Brush class and add them to a Listbox.For Example:- HatchBrush- SolidBrush- TextureBrush.....Thank you.
View ArticleWPF - Xaml TextBlock problem
I have the following in my xaml: <Grid Grid.Column="0"> <StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Top"> </StackPanel>...
View Articlebackspacing in text box
this is kind of an odd question but i'm having trouble with an error in vb 2012 its a wpf. but here it is, everything works great as far as inputing the initial numbers into the text boxes and getting...
View ArticleFile.Exists is not working for me to detect a file
Currently i am using File.Exists(abc) { //abc="me_label.deploy" which is coming from Streamreader.ReadLine(); //I used even full path, I dont want to include files in my project. if i Include its...
View ArticleI want to display Task status in a toolStripStatusLabel
Hi! Can anyone write for me a simple c# code that execute a Task & display its status on toolStripStatusLabel text ??
View ArticleHow do I get two forms to talk to each other?
i am working on a library system. i have to calculate fine on receive book form... due date is after 14 days of issue date, which i calculated on issue book form.. if the the book is return after due...
View ArticleC#- Public Statusbar
Dear All,I'm working on C# language. I have mainform that has many form in it (MdiForm). in this mainform has one statusStrip1 (lblStatus).I would like to show all message into lblStatus of mainform...
View Articleshow control in custom container in winform
hi every body, i want a c# windows application control which i can add custom control or c# control like textbox,checkbox to it and then i want implement pagination for container,this container must be...
View Articlepaginate flowLayoutPanel
hi every body i have a flowlayoutpanel and i add many control to it and now i want to paginate data in flowlayoutpanel,how can i does it?
View Article