How to make log in windows form application

I am trying to build a program with log in at the start
i was doing this log in by make a global class on program.cs file 
and this global contain : id and name to know who is the user 
is that correct or there is a better way to do that ? 

i am talking about windows form not wpf
Hello,
Maybe we should focus on the nice tool shared by darnold924 instead of just noticing that sample is wpf.
We could make sure that tool also works for winform applications, you could refer to the following document.
#Configure Log4Net for Desktop and Web Applications
http://www.codeproject.com/Articles/11328/Configure-Log-Net-for-Desktop-and-Web-Applications
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to create a setup for window form application including the related sql database?

    i have created a simple window form application project that have only 2 form..
    1st one for login in which it'll check the userid n password from database.if both are correct then it will go to 2nd form.
    now i want this project to run in another computer.
    i created a setup file but its showing some error regarding the database instances connection..
    so if anyone can tell me in details how to create the setup file then it'll b a great help..
    thanx in advance..

    Hi,
    Consider the above scenario,I suggest you to use the SQL Server Compact+ ClickOnce Deployment, A Compact SQL database is a file that can be bundled with your application installation. Below is a link guiding you through the creation process of a SQL Compact
    database.
    http://technet.microsoft.com/en-us/library/ms173009.aspx
    The following link discusses setting up the necessary dependencies and prerequisites for SQL Server Compact. (Note, you will need to scroll to the section entitled Private File–Based Deployment.)
    http://msdn.microsoft.com/en-us/library/aa983326(v=VS.100).aspx
    A ClickOnce Deployment can help you publish your application attach compact SQL database into client machine.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Should I use "Windows Forms Application" or "WPF Application" or ..... ?

    Hi everybody!
    I want to become a master programmer.
    I want to programming "Windows Desktop"  
    I am using Visual Studio Ultimate 2013 by language C# on  Windows 8 OS
    I am confusing because Should I use "Windows Forms Application" or "WPF Application" or .....?
    which one is better?
    Help me!!!!!!!! Please!!!!!
    Thanks a lot!
    if possible, please send me "step by step exercises about the WPF Application to email: [email protected]
    thanks again

    Although I don't have much experience with WPF, only Windows Forms, this blog post might shed some light on which decision you should make:
    http://rachel53461.wordpress.com/2012/10/12/switching-from-winforms-to-wpfmvvm/
    If you are looking to just add a quick and dirty UI on top of a small script or executable tool, Windows Forms would be the answer, as it is very easy to learn and use. However, since you have the best tools currently available, and you say you want to do
    it the right way, I would say learn WPF now. You will benefit from it later on.

  • Windows Forms Application Crashes Out with "Faulting module name: clr.dll"

    OS: Windows 7
    Framework: 4.5
    Windows Form Application crashes while invoking printer settings method "printersettings.sethdevmode()"
    Application: DHSDEVASystem.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
    Stack:
       at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr, System.Object, Int32, Int32)
       at System.Runtime.InteropServices.Marshal.Copy(IntPtr, Byte[], Int32, Int32)
       at System.Drawing.Printing.PrinterSettings.SetHdevmode(IntPtr)
       at DHSPresentationLayer.Logic.PrinterAPI.OpenPrinterPropertiesDialog(System.Drawing.Printing.PrinterSettings, System.Windows.Forms.Form)
       at DHSPresentationLayer.Logic.PrinterAPI.SendFileToPrinter(DHSPresentationLayer.Logic.PrinterInfo, System.String, System.Windows.Forms.Form)
       at DHSPresentationLayer.Logic.PrinterAPI.PrintLabel(System.String, System.String, System.Data.DataTable, System.Func`2<System.String,System.String>, System.String, System.String, Int32, System.Windows.Forms.Form)
       at DHSPresentationLayer.MRPFR130.showSSReport()
       at DHSPresentationLayer.MRPFR130.confirmCancelCloseButton_Confirm()
       at MINDBaseFormLibrary.BaseScreenReports.confirmCancelCloseControl1_EventButtonClicked(System.Object, DHSControlLibrary.MyEventArgs)
       at DHSControlLibrary.ConfirmCancelCloseControl.OnEventButtonClicked(DHSControlLibrary.MyEventArgs)
       at DHSControlLibrary.ConfirmCancelCloseControl.cmdConfirm_Click(System.Object, System.EventArgs)
       at System.Windows.Forms.Control.OnClick(System.EventArgs)
       at Infragistics.Win.Misc.UltraButtonBase.OnClick(System.EventArgs)
       at Infragistics.Win.Misc.UltraButton.OnMouseUp(System.Windows.Forms.MouseEventArgs)
       at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
       at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
       at Infragistics.Win.UIAutomation.UiaProviderControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
       at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
       at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
       at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
       at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
       at DHSPresentationLayer.Program.Main()
    then 1 second after :
    Faulting application name: DHSDEVASystem.exe, version: 7.8.0.4, time stamp: 0x54c8f680
    Faulting module name: MSVCR110_CLR0400.dll, version: 11.0.50709.17929, time stamp: 0x4ffa580c
    Exception code: 0xc0000005
    Fault offset: 0x0000156e
    Faulting process id: 0x8ec
    Faulting application start time: 0x01d046916142e1e3
    Faulting application path: C:\Users\savaa\AppData\Local\Apps\2.0\DR9VMJ96.MZ3\DP07HVCX.MDB\dhsd..tion_0000000000000000_0007.0008_cfa90b0813b3f063\DHSDEVASystem.exe
    Faulting module path: C:\Windows\system32\MSVCR110_CLR0400.dll
    Report Id: 38cf9363-b285-11e4-b29f-0023242a2561
    The PC is on windows 7 32 bits with .net 4.5 installed.

    Hello,
    Based on the exception message, I found that your project is build with .NET 4.0, you could consider changing it to .NET 4.5.
    If you want to keep it built with .NET 4.0, then you could consider the following fix.
    FIX: "Faulting module name: clr.dll" error message when you run a Microsoft .NET Framework 4-based application
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot package a windows form application

    HI, I have developed a Windows Form app and am going to package it into .appx file for uploading onto Windows Store. I am using Visual Studio 2013 Community Edition and there is no Package.appxmanifest in the project's solution explorer to do the packaging.
    How can I enable the Package.appxmanifest onto the solution explorer?

    You cannot deploy a Windows Forms application to the Windows Store. You have to develop a Windows Store App, which is a special and new kind of Windows application that only runs on Windows 8 and later versions of Windows:
    https://msdn.microsoft.com/en-us/library/windows/apps/dn726767.aspx?f=255&MSPPError=-2147217396
    Please ask any further questions you may have about Windows Store App development in the following forum:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?forum=winappswithcsharp
    You can only list (but not actually upload) a desktop app in the store. Please refer to the following page for more information about how to do this.
    Listing your desktop app in the Store:
    http://blogs.msdn.com/b/windowsstore/archive/2012/06/08/listing-your-desktop-app-in-the-store.aspx
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't post several questions in the same thread.

  • Windows forms application not showing in express 2012 windows 8.

    I downloaded Visual Studio Express 2012 for windows 8.  I am trying something in Visual Basic and need to select  Windows Forms Application.   Visual Basic and Windows Store are available on the left side of the window.  
    Windows Forms Application Template is not  in the New Project dialog box.  How is this?  What can be done?

    You downloaded the wrong edition if you want the Windows Forms template.
    VSE 2012 for Win 8 supports Windows Store app development.
    You want the VSE 2012 for Windows
    Desktop edition.
    Better still, you could get the new, free, Visual studio 2013 Community Edition, which supports Windows Desktop, Windows Store, and web application development:
    http://www.visualstudio.com/downloads/download-visual-studio-vs

  • How to make IIS on Windows 7 visible from outside my home LAN

    Guidance Needed: How to make IIS on Windows 7 visible from outside my home LAN.
    I am building a learning/demo ASP.NET website on this Win7 PC, using VS2008. 
    I would like to share the website with a client/friend, so I need my local IIS to be visible from outside the home LAN.
    This PC is behind a Netgear WGR614 router, which has a static IP address assigned by my ISP. 
    I have set up port forwarding on the router; port 80 is HTTP.
    I can see the website as http://localhost/ and also as http://192.168.0.2 from other PCs inside the LAN.
    Ping works from outside, but not http.   What am I missing?

    Hi,
    Since this question is related to IIS and we have specific support for IIS related issues or questions, it is also recommended that you go to IIS Forum for help.
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • Windows Video Player: Windows Forms application (C#)

    I need to incorporate Windows Video Player in Windows Forms application (C#) using Visual Studio 2013, .Net Framework 4.5 , I have already MS Windows Media Player but it does not meet my demanding situation so I need third party media player control for
    Windows Media player control.
    Can anybody help me about this concern.
    thanks,

    Hello,
    I'd Bing "Video Player" control C#
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Insufficient permissions for performing this operation through Windows Form application.

    When accessing a report through the browser the user can view the report, however, have a report viewer in a Windows Form application get the below error when loading the report:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Web.Services.Protocols.SoapException: The permissions granted to user
    'domain\username'
    are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'domain\username' are insufficient for performing this operation.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at ReportServer.ReportService.ReportingService2010.GetReportServerConfigInfo(Boolean ScaleOut)
       at ReportServer.ReportItems.GetReportServerName()
       at Evolution2Application.FormMain.treeViewEvolutionReports_AfterSelect(Object sender, TreeViewEventArgs e)
       at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
       at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
       at System.Windows.Forms.TreeView.WmNotify(Message& m)
       at System.Windows.Forms.TreeView.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    C# code I use to connect to the reporting service
    ReportingService2010
    rs =newReportingService2010();
    rs.Credentials
    =System.Net.CredentialCache.DefaultCredentials;
    rs.Url
    =http://sqlserver01/reportserver/reportservice2010.asmx;
    Can someone explain what I need to do to prevent getting this error, the user has ContentManager rights on the server through a security group.

    found the issue rs.GetConfigInfo(false) was causing the error, now removed this.

  • How to make data flow from one application to other in BPEL.

    Hi All,
    I am designing work-flow of my application through BPEL(JDeveloper), I am making different BPEL projects for different functions, like sales manager got the order from sales person and sales manager either approve it or reject it, if he approve it it goes to Production manager and he ships the goods, now I want to keep sales person, sales manger,production manager in seperate BPEL files and want to get the output of sales person to sales manager and sales manager to production manager please help me in dong this.
    I was trying to make partner link in Sales manager of sales person and getting the input from there. I dont know this is right even or not, if it is right I dont know how to make data flow from one application to other.
    Experience people please guide.
    Sales Person -----> Sales Manager ----> Production Manager
    Thanks
    Yatan

    Yes you can do this.
    If you each integration point to be in different process, you have to create three BPEL process.
    1. Create a Async BPEL process 'A' which will be initiated when sales person creates the order.
    2. From BPEL process 'A' call a ASync BPEL process 'B' which has the approval flow. Depending on the input from process 'A' the sales manager will review the order in workflow and approve or reject and send the result back to process 'A'.
    3. Based on the result from workflow, invoke the Sync BPEL process 'C', where you can implement the shipping logic.
    -Ramana.

  • How do I prevent the Window Office applications from launching when my iMAC boots or recovers from sleep? I've tried System Preferences however the Office programs are not listed?

    How do I prevent the Window Office applications from launching when my iMAC boots or recovers from sleep? I've tried System Preferences however the Office programs are not listed?

    lunagirl wrote:
    The first 3 apps listed are not installed because I have not run the activation assistant for the Office trial that came with the T61.  Add/Remove programs has only these pre-installed apps:
    Microsoft Office 2003 Web Components
    Microsoft Office 2007 Primary Interop Assemblies
    Microsoft Office Small Business Connectivity Components
    MS SQL Server 2005
    MS SQL Server Native Client
    MS SQL Server Setup Support Files
    MS SQL Server VSS Writer
    Is the activation assistant one of them?
    No, AFAIK should be listed as Microsoft Office Suite Activation Assistant
    Rgds,
    Ahti

  • How to make a downloadable report of application log file.

    Hi Every One,
    i am new to this ABAP environment, I have application logs in my system, i need to generate the reports based on my filter condition and i need to download them as file/report, For example;
    I need a Application Log report for:
    only Particular User
    only particular time
    only importent logs
    only errors
    like that....so on..
    Can any one give me step by step, how to make a report of application logs, i know only i can see logs use transaction CodeSLG1. I want to make report them.
    Thank you
    Regards
    Ravi

    Found answer in log itself

  • How to make use of Windows authentication from my Java application

    I have a Java application, Instead I design one more login page for my application, I want to make use of Windows Authentication.
    How should I use that windows authentication in my java application
    can any help me in suggesting a solution

    How will they be able to access your application if they aren't users of the system?

  • Setting up the update feature of a windows form application from a linux webserver on the internet.

    I'm building an application in windows forms and have the way to publish it into an ftp folder at a Linux server on the internet where I have a web hosting account.
    I set up the application to update from a specific url.
    after publishing VS2010 keeps telling me that it can't see the published application and when I start the application, it does not update at all..
    Is it even possible to setup this configuration?
    Please advice how I need to configure my publish so I can
    1) Install from a web server url hosted on linux
    2) update directly from that web server url hosted on linux
    thanks
    Jorge Reyes

    Hello Jorge,
    Since this issue is related with applicaiton deployment, I ask the moderator to move it to the clcikOnce forum there ClickOnece experts will help you. The current forum is for windows desktop application development. 
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Best file location for VS2013 Windows Form applications on a stand alone PC (Windows 7) upgrading from VS2008 Standard?

    Hi and Help,
    I'm in the process of upgrading my VS2008.Standard Windows Forms apps to VS2013.Pro.  My concern is I've got the VS2008 apps scattered in folders all over my disc; this includes the VS2008 published apps. 
    All of the converted apps are being stored in one folder,
    VB13_AppSource, in their own sub-folders.  (I don't know if it makes any difference here, but all of these apps, except one which is a Sudoku screen app, use SQL2005.Express.  After I've made all the conversions, I'll upgrade SQL
    to the latest Express available down the road in several months.  Included will be an upgrade from my current SSMS to the latest SQL Server Management Studio. )
    What I'd like from you are recommendations and document locations on how to store VS2013 apps on my C drive.  Please note that I'm using Net 4.5.1.  Some of my thoughts are:
    Source folder for all applications
    Folder for all published apps
    Folder for Class Library(s?)
    Folder for Active SQL Databases
    Folder for Test SQL Databases
    Thanks for your help,
    Terry 01

    Hi Terry01,
    Thanks for your reply.
    Based on your issue, I suggest you can refer the Jack's suggestion to check your issue from the follwoing
    thread.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/3d128a21-f3b5-430e-b146-60eea577194f/converting-vs-2005-project-to-vs-2013?forum=visualstudiogeneral
    In addition, I find some msdn document about how to upgrade the project to VS2013, you can refer it.
    https://msdn.microsoft.com/en-us/library/hh690665.aspx
    https://msdn.microsoft.com/en-us/library/ms185327.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for