.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Timer and Window forms

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application
HI..I am working on mdi app in C#.I have placed a timer in one form and i want to connect that timer to the other form.like  i have checkbox and timer in one form.so when i check the checkbox  it will enable that timer..but when i click on save button in second form it should start the timer in first form...
Thanks & Regards Nazima Mahmood

View Complete Post

More Related Resource Links

Launch window forms app from windows service

I have a windows forms app that is used to manage settings for a windows service. When the service starts I want to launch the forms app. I'm using Process.Start("myWindowsApp") and I can see the app running in the task manager processes but the windows aren't displayed. My guess is that it's because the service is running under the localsystem account but what do I need to do to make the windows forms app work properly? SteveR

Need Help in window service timer scheduling


Hi All,

Here i have 3 rows in my table with the follwing data

WatchUrl                                                        SheduleType             Time

http://www. xxx .com/ abc /Welcome.html        Every Day            30

http://www.xxx.com/ abc /Captial.html             Every Day            1

http://www.xxx.com/abc/Histroy.html               Every week         2

What i have to do is to create a window service that call the webservice by pasing the url.the webservie will download the page content and  compare it with previous content if it differs i have to notify it to the user,that new content is added.i did everyting and its working fine .B

Convert System.Window.Forms.Keys into WPF (system.windows.input.key)



I am trying to add some short cuts to my WPF app. I read an xml file which especifies the shortcut key with it is system.windows..forms.keys value (e.g: 114, that will be F4)

The idea of having to create a switch to return the right key based on it is value it is, to say the least, horrendous, so before I start doing that :( ... does anyone knows how I can convert that value into a system.windows.input.key? Any help will be appreciated.



I was getting an error on deployment/install about crystaldecisions.window.forms


I was building a Crystal Report viewer, and followed the 1 step setup, and when i put it on a target computer and tried to install, i would get an error that say:

CrystalDecisions.Window.Form Version 13._____  to be installed in Global Assembly Cache (GAC)

I was first thinking there would need to be references to it.  I was thinking that this element was a driver which is uninstalled on the computers.  I figured that the install wouldve taken care of that and installed everything as needed.

What do i do to go about fixing this so i can deploy this to computers without having to install VisualStudios to do it.  (as it seems that on 2 test computers, it was shown that it will run fine, given a previous installation of VisualStudios 2010).


Running on 64bit Windows 7 machine.

[edit: fixed spelling of topic name]

Folder Permissions in Windows7 using C# code and window forms


I want to give full control or write permissions to the folder in program files folder in windows 7 OS using c# code for any user.

Ex: C:/Program files/ABC/XYZ

I want to give full control permissions to XYZ folder for all users in that system when my application is accessed.

Pls help me Its an urgent requirement in my project.

Thanks in Advance

Routing for Web Forms in ASP.NET 4.0

posted a prototype demonstrating how one could use Routing within Web Forms. This is something you can do today with ASP.NET 3.5 SP1, because of the work we did to separate Routing from ASP.NET MVC. I would have liked to include Web Form Routing as part of the Routing feature when we were working on SP1, but we didn't have the time to do so in a robust manner before SP1 was locked down.

Application Architecture in Windows Forms 2.0

Applications have special support in Windows Forms. For starters, you can manage and tailor your application's lifetime, and, when the work flow is disrupted by an unhandled exception, you can choose from several methods of response. Then, there are several application models that you can employ, including Single Document Interface (SDI) and Multiple Document Interface (MDI) applications, each of which can support either multiple-instance or single-instance mode, the former the VS05 default and the latter requiring special consideration. All applications, however, can discover and use a wide variety of information about the system and environment they execute in.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Explained: Forms Authentication in ASP.NET

This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.

ASP.NET Forms Authentication - Part 1

Often, in legacy Web applications, users authenticate themselves via a Web form. This Web form submits the user's credentials to business logic that determines their authorization level. Upon successful authentication, the application then submits a ticket in the form of a cookie, albeit a hard cookie or session variable. This ticket contains anything from just a valid session identification access token to customized personalization values.

ASP.NET forms authentication with roles

.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Forms Authentication in ASP.NET

In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 - Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls.

Determine whether Forms Server is installed on a server

Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

Modal popup window in ASP.Net

A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

How to programmatically add controls to Windows forms at run time by using Visual C#

Create a Windows Forms Application
Start Visual Studio .NET or Visual Studio 2005 or a later version, and create a new Visual C# Windows Application project named WinControls. Form1 is added to the project by default.
Double-click Form1 to create and view the Form1_Load event procedure.
Add private instance variables to the Form1 class to work with common Windows controls. The Form1 class starts as follows:

How to Localize Windows Forms and Change the Language at Runtime

Localization is the process of customizing your application to a particular language, culture or locale. Visual Studio provides support for localizing Windows Forms with much ease. In this article, we will see how to localize windows forms and give the user the ability to change to his preferred language at runtime.
When you run a localized application, the appearance is determined by two culture values. The UICulture property is used to specify which resource files will be loaded for the form. The Culture property, on the other hand, determines how strings such as dates, numerals, and currency amounts are formatted.
Let us see the steps required to create a localized form. You can then expand this example and adopt the same approach for the rest of the forms in your project
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend