Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
QuestionPrint PDFs on printer... Pin
anderslundsgard18-Nov-06 5:57
anderslundsgard18-Nov-06 5:57 
QuestionHow to convert array of byte to stream? Pin
bahman2000b18-Nov-06 5:26
bahman2000b18-Nov-06 5:26 
AnswerRe: How to convert array of byte to stream? Pin
Guffa18-Nov-06 5:29
Guffa18-Nov-06 5:29 
QuestionCreating a public variable Pin
jackie83sg200518-Nov-06 3:49
jackie83sg200518-Nov-06 3:49 
AnswerRe: Creating a public variable Pin
User 665818-Nov-06 3:49
User 665818-Nov-06 3:49 
GeneralRe: Creating a public variable Pin
jackie83sg200518-Nov-06 18:12
jackie83sg200518-Nov-06 18:12 
GeneralRe: Creating a public variable Pin
Pete O'Hanlon19-Nov-06 3:31
mvePete O'Hanlon19-Nov-06 3:31 
QuestionRe: Creating a public variable Pin
jackie83sg200520-Nov-06 2:45
jackie83sg200520-Nov-06 2:45 
I think you get me wrong. I want to declare a global variable that can use anywhere in the program named main.cs but I don't want to type a long command.

For example, I have this file named variable.cs
using System;

public class someclass
{
public static int a = 0;
}

And I want to use it in this file named main.cs
using System;

public class somemainclass
{
Console.WriteLine("a = {0}", someclass.a);
}

I don't want to use this someclass.a. So is there anywhere i can short cut it the someclass.a to a variable named a to use as normal?
AnswerRe: Creating a public variable Pin
Pete O'Hanlon20-Nov-06 2:56
mvePete O'Hanlon20-Nov-06 2:56 
QuestionPassword Authentication ? [modified] Pin
Ahmad_kaau18-Nov-06 3:05
Ahmad_kaau18-Nov-06 3:05 
AnswerRe: Password Authentication ? Pin
WillemM18-Nov-06 7:44
WillemM18-Nov-06 7:44 
AnswerRe: Password Authentication ? Pin
beatles169218-Nov-06 8:44
beatles169218-Nov-06 8:44 
QuestionRichTextBox printing size Pin
nogola18-Nov-06 1:41
nogola18-Nov-06 1:41 
QuestionHow to get the current Credentials in WinApp Pin
James Poulose18-Nov-06 1:31
James Poulose18-Nov-06 1:31 
AnswerRe: How to get the current Credentials in WinApp Pin
WillemM18-Nov-06 7:40
WillemM18-Nov-06 7:40 
GeneralRe: How to get the current Credentials in WinApp Pin
James Poulose19-Nov-06 4:51
James Poulose19-Nov-06 4:51 
GeneralRe: How to get the current Credentials in WinApp Pin
Scott Dorman20-Nov-06 4:49
professionalScott Dorman20-Nov-06 4:49 
QuestionImplementing arrays in C# Pin
Debun18-Nov-06 0:11
Debun18-Nov-06 0:11 
AnswerRe: Implementing arrays in C# Pin
Guffa18-Nov-06 1:32
Guffa18-Nov-06 1:32 
GeneralRe: Implementing arrays in C# Pin
Debun18-Nov-06 1:50
Debun18-Nov-06 1:50 
AnswerRe: Implementing arrays in C# Pin
Guffa18-Nov-06 5:24
Guffa18-Nov-06 5:24 
AnswerRe: Implementing arrays in C# Pin
James Poulose18-Nov-06 1:32
James Poulose18-Nov-06 1:32 
GeneralRe: Implementing arrays in C# Pin
Debun18-Nov-06 1:52
Debun18-Nov-06 1:52 
GeneralRe: Implementing arrays in C# Pin
James Poulose19-Nov-06 4:54
James Poulose19-Nov-06 4:54 
QuestionNamespace Pin
shanisnathan17-Nov-06 23:12
shanisnathan17-Nov-06 23:12 

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.