Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add to view binded to gridview Pin
Eddy Vluggen27-Oct-08 5:59
professionalEddy Vluggen27-Oct-08 5:59 
GeneralRe: Add to view binded to gridview Pin
led mike27-Oct-08 6:13
led mike27-Oct-08 6:13 
GeneralRe: Add to view binded to gridview Pin
Michael Bookatz27-Oct-08 6:03
Michael Bookatz27-Oct-08 6:03 
QuestionWebservice Call Timeout Pin
dwg198627-Oct-08 5:17
dwg198627-Oct-08 5:17 
QuestionStoring position data Pin
TaSsl27-Oct-08 5:16
TaSsl27-Oct-08 5:16 
AnswerRe: Storing position data Pin
led mike27-Oct-08 5:57
led mike27-Oct-08 5:57 
QuestionPrintPreviewDialog Pin
netJP12L27-Oct-08 5:11
netJP12L27-Oct-08 5:11 
QuestionCalendar control Pin
boiDev27-Oct-08 4:46
boiDev27-Oct-08 4:46 
AnswerRe: Calendar control Pin
Michael Bookatz27-Oct-08 4:49
Michael Bookatz27-Oct-08 4:49 
GeneralRe: Calendar control Pin
boiDev27-Oct-08 5:03
boiDev27-Oct-08 5:03 
QuestionRe: Calendar control Pin
Eddy Vluggen27-Oct-08 5:29
professionalEddy Vluggen27-Oct-08 5:29 
GeneralRe: Calendar control Pin
boiDev27-Oct-08 5:31
boiDev27-Oct-08 5:31 
GeneralRe: Calendar control Pin
Michael Bookatz27-Oct-08 5:44
Michael Bookatz27-Oct-08 5:44 
GeneralRe: Calendar control Pin
boiDev27-Oct-08 5:48
boiDev27-Oct-08 5:48 
QuestionDataset SQL executed statement Pin
052762543527-Oct-08 3:53
052762543527-Oct-08 3:53 
Questionhow to use SciLexer.dll Pin
asugix27-Oct-08 3:40
asugix27-Oct-08 3:40 
AnswerRe: how to use SciLexer.dll Pin
Ashfield27-Oct-08 5:15
Ashfield27-Oct-08 5:15 
AnswerRe: how to use SciLexer.dll Pin
led mike27-Oct-08 6:06
led mike27-Oct-08 6:06 
GeneralRe: how to use SciLexer.dll Pin
asugix27-Oct-08 18:10
asugix27-Oct-08 18:10 
QuestionModules in C# Pin
Vimalsoft(Pty) Ltd27-Oct-08 3:29
professionalVimalsoft(Pty) Ltd27-Oct-08 3:29 
Good Afternoon All

In VB.NET i used to have a Module. I need to Call the Main Form when the login is successfully. So this is what i deed in C# so Far in a Class, Can someone Help me on this in C#. Becaues C# does not have Modules.


using System;
using System.Collections.Generic;
using System.Text;

namespace SystemAdmin
{

    class Startup
    {
        public void Main()
        {

            bool loggedIn;

            frmLogin frmlogin = new frmLogin();

            loggedIn = (frmlogin.ShowDialog() == DialogResult.OK);

            if (loggedIn)
            {

                Application.Run(new frmmain());

            }
        }
    }
}


And my Login Screen Login button is like this

String strusername = txtusername.Text; 

            String Password = txtpassword.Text;
        
            int bl ;

            bl = obj.Check_Login(strusername, strPassword);

            if (bl == 1)
            {
                Me.DialogResult = Windows.Forms.DialogResult.OK;
            }
            else
            {
                MessageBox.Show("Invalid Login");
            }


Thanks

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


AnswerRe: Modules in C# Pin
Eduard Keilholz27-Oct-08 3:59
Eduard Keilholz27-Oct-08 3:59 
AnswerRe: Modules in C# Pin
emiaj27-Oct-08 4:51
emiaj27-Oct-08 4:51 
AnswerRe: Modules in C# Pin
Michael Bookatz27-Oct-08 4:52
Michael Bookatz27-Oct-08 4:52 
GeneralRe: [Resolved]Modules in C# Pin
Vimalsoft(Pty) Ltd27-Oct-08 23:46
professionalVimalsoft(Pty) Ltd27-Oct-08 23:46 
QuestionConflciting in strong name assembly Pin
George_George27-Oct-08 2:55
George_George27-Oct-08 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.