Click here to Skip to main content
15,913,758 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHElp need in VB.net Pin
ganesh116-Aug-08 23:11
ganesh116-Aug-08 23:11 
AnswerRe: HElp need in VB.net Pin
Thomas Stockwell7-Aug-08 1:43
professionalThomas Stockwell7-Aug-08 1:43 
QuestionHow to obtain ShowCheckBox property on System.Windows.Forms.TreeView? Pin
troelstimm6-Aug-08 22:58
troelstimm6-Aug-08 22:58 
AnswerRe: How to obtain ShowCheckBox property on System.Windows.Forms.TreeView? Pin
led mike7-Aug-08 5:21
led mike7-Aug-08 5:21 
GeneralRe: How to obtain ShowCheckBox property on System.Windows.Forms.TreeView? Pin
troelstimm7-Aug-08 5:28
troelstimm7-Aug-08 5:28 
QuestionLoadon startup & Rememberme both functionalities should work. Pin
balaji_vbr6-Aug-08 19:44
balaji_vbr6-Aug-08 19:44 
AnswerRe: Loadon startup & Rememberme both functionalities should work. Pin
Mycroft Holmes7-Aug-08 20:39
professionalMycroft Holmes7-Aug-08 20:39 
QuestionRe: Loadon startup & Rememberme both functionalities should work. Pin
balaji_vbr8-Aug-08 1:36
balaji_vbr8-Aug-08 1:36 
this is the code we are using for the processing.
// for Application LOAD when we start our machine.
public static bool AutoStart {
get
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
string startupValue = (string)key.GetValue("VideoRep");
key.Close();
if (startupValue == null) return false; else return true;
}
set
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);

if (value)
{
key.SetValue("VideoRep", "\"" + Application.ExecutablePath + "\"");
key.Close();
}
else
{
key.DeleteValue("VideoRep");
key.Close();
}
}
}

// for Remember Me Checkbox functionality.

public static string[] RememberMe
{
get
{
string uname = "";
string pword = "";

if (File.Exists(CONFIG_FILE))
{
BinaryReader binReader = new BinaryReader(File.Open(CONFIG_FILE, FileMode.Open));

try
{
// If the file is not empty, read the application settings.
if (binReader.PeekChar() != -1)
{
uname = binReader.ReadString();
pword = binReader.ReadString();
}
}
catch (Exception) { }
finally { binReader.Close(); }
}

return new string[2] { uname, pword };
}
set
{
if (File.Exists(CONFIG_FILE))
File.Delete(CONFIG_FILE);

if (value != null)
{
try
{
using (BinaryWriter binWriter = new BinaryWriter(File.Open(CONFIG_FILE, FileMode.Create)))
{
binWriter.Write(User.Username);
binWriter.Write(User.Password);
}
}
catch (Exception)
{

}
}
}
}


//checkbox checked events code

private void cbRememberMe_MouseClick(object sender, MouseEventArgs e)
{
if (User.RememberMe[0] != "") User.RememberMe = null; else User.RememberMe = new string[2] { User.Username, User.Password };
}

private void cbLoadStartup_MouseClick(object sender, MouseEventArgs e)
{
if (User.AutoStart) User.AutoStart = false; else User.AutoStart = true;
}


this is process we are doing please give me reply, what should i do to make both functionalities work together.
Questiondatabase connection problem Pin
bfis1081376-Aug-08 4:47
bfis1081376-Aug-08 4:47 
AnswerRe: database connection problem Pin
led mike6-Aug-08 5:37
led mike6-Aug-08 5:37 
GeneralRe: database connection problem Pin
bfis1081376-Aug-08 9:29
bfis1081376-Aug-08 9:29 
QuestionProblem populating DropDownList of a ComboBox in DropDown event Pin
MMacarie325-Aug-08 21:59
MMacarie325-Aug-08 21:59 
QuestionRe: Problem populating DropDownList of a ComboBox in DropDown event Pin
led mike6-Aug-08 5:41
led mike6-Aug-08 5:41 
QuestionRe: Problem populating DropDownList of a ComboBox in DropDown event Pin
MMacarie327-Aug-08 23:39
MMacarie327-Aug-08 23:39 
Questionhide already existing columns in a datagrid and fill the same datagrid with new datas from the database in c#.net win forms Pin
kanyakumari5-Aug-08 19:23
kanyakumari5-Aug-08 19:23 
AnswerRe: hide already existing columns in a datagrid and fill the same datagrid with new datas from the database in c#.net win forms Pin
John Ad6-Aug-08 4:24
John Ad6-Aug-08 4:24 
QuestionProblem with Menus Pin
joekucera5-Aug-08 11:20
joekucera5-Aug-08 11:20 
AnswerRe: Problem with Menus Pin
Thomas Stockwell7-Aug-08 1:45
professionalThomas Stockwell7-Aug-08 1:45 
GeneralRe: Problem with Menus Pin
joekucera7-Aug-08 4:38
joekucera7-Aug-08 4:38 
QuestionMutex on c#.net service Pin
balu123455-Aug-08 8:15
balu123455-Aug-08 8:15 
AnswerRe: Mutex on c#.net service Pin
dybs5-Aug-08 15:51
dybs5-Aug-08 15:51 
QuestionBuild a class library project Pin
thanchet5-Aug-08 7:15
thanchet5-Aug-08 7:15 
AnswerRe: Build a class library project Pin
Thomas Stockwell5-Aug-08 9:59
professionalThomas Stockwell5-Aug-08 9:59 
QuestionNavigation between Forms Pin
ngrj4-Aug-08 20:58
ngrj4-Aug-08 20:58 
AnswerRe: Navigation between Forms Pin
karthi845-Aug-08 3:30
karthi845-Aug-08 3:30 

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.