Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
Questiongetting a date format Pin
EmZan5-Sep-09 22:30
EmZan5-Sep-09 22:30 
AnswerRe: getting a date format Pin
Abhishek Sur6-Sep-09 0:00
professionalAbhishek Sur6-Sep-09 0:00 
AnswerRe: getting a date format Pin
Luc Pattyn6-Sep-09 1:00
sitebuilderLuc Pattyn6-Sep-09 1:00 
AnswerRe: getting a date format Pin
EmZan6-Sep-09 1:43
EmZan6-Sep-09 1:43 
Questioncombining VB into C# Pin
Kobi_Z5-Sep-09 20:58
Kobi_Z5-Sep-09 20:58 
AnswerRe: combining VB into C# Pin
OriginalGriff5-Sep-09 22:09
mveOriginalGriff5-Sep-09 22:09 
GeneralRe: combining VB into C# Pin
Kobi_Z7-Sep-09 1:24
Kobi_Z7-Sep-09 1:24 
GeneralRe: combining VB into C# Pin
OriginalGriff7-Sep-09 5:01
mveOriginalGriff7-Sep-09 5:01 
Lets deal with these in reverse order:
3) Look at the top of your C# source file. See the top five or more lines, all starting "Using"? Those are the using statements, predictably enough! Laugh | :laugh: All they do is stop you having to use the full name of an item when you use it. So, the "Using System.IO" statement means that you can write
string[] lines = File.ReadAllLines(@"C:\temp.txt");
instead of
string[] lines = System.IO.File.ReadAllLines(@"C:\temp.txt");

In the previous example, "Using VBProj" means you can say
Form1 f1 = new Form1();
instead of
VBProj.Form1 f1 = new VBProj.Form1();


2) See the example I gave you, which called a function from a module in VB?

1) You can't make it press a button. The user presses the buttons. What I think you mean is, "how do I get the notification that the user has pressed a button?" which is simple, just hook into the handler as normal:
butOK.Click += new EventHandler(butOKEndEdit_Click);


Anything you could do in VB, talking to a VB module, you can do in C#, talking to a VB module. .NET doesn't care what language you wrote the .NET code in, it all works seamlessly.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: combining VB into C# Pin
OriginalGriff7-Sep-09 5:02
mveOriginalGriff7-Sep-09 5:02 
GeneralRe: combining VB into C# Pin
Kobi_Z7-Sep-09 19:39
Kobi_Z7-Sep-09 19:39 
GeneralRe: combining VB into C# Pin
OriginalGriff7-Sep-09 21:54
mveOriginalGriff7-Sep-09 21:54 
QuestionDeserialize from 2.0 to 1.1 framework Pin
nryk5-Sep-09 20:57
nryk5-Sep-09 20:57 
AnswerRe: Deserialize from 2.0 to 1.1 framework Pin
OriginalGriff5-Sep-09 21:34
mveOriginalGriff5-Sep-09 21:34 
GeneralRe: Deserialize from 2.0 to 1.1 framework Pin
nryk5-Sep-09 22:32
nryk5-Sep-09 22:32 
GeneralRe: Deserialize from 2.0 to 1.1 framework Pin
OriginalGriff5-Sep-09 22:53
mveOriginalGriff5-Sep-09 22:53 
AnswerRe: Deserialize from 2.0 to 1.1 framework Pin
Henry Minute6-Sep-09 0:19
Henry Minute6-Sep-09 0:19 
QuestionError when Connection Crystal Report with database visual studio 2005 [modified] Pin
xodeblack5-Sep-09 20:22
xodeblack5-Sep-09 20:22 
QuestionClick Once Deployment Pin
Abdul Rahman Hamidy5-Sep-09 18:15
Abdul Rahman Hamidy5-Sep-09 18:15 
AnswerRe: Click Once Deployment Pin
MarkB7775-Sep-09 18:40
MarkB7775-Sep-09 18:40 
QuestionDouble class problem Pin
Malbinir5-Sep-09 15:39
Malbinir5-Sep-09 15:39 
AnswerRe: Double class problem Pin
Luc Pattyn5-Sep-09 16:04
sitebuilderLuc Pattyn5-Sep-09 16:04 
GeneralRe: Double class problem Pin
Malbinir5-Sep-09 21:35
Malbinir5-Sep-09 21:35 
GeneralRe: Double class problem Pin
Luc Pattyn6-Sep-09 0:48
sitebuilderLuc Pattyn6-Sep-09 0:48 
AnswerRe: Double class problem Pin
Joe Woodbury5-Sep-09 16:26
professionalJoe Woodbury5-Sep-09 16:26 
QuestionListening/Sending keys Pin
See_Sharp5-Sep-09 13:22
See_Sharp5-Sep-09 13:22 

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.