Click here to Skip to main content
15,888,908 members
Home / Discussions / C#
   

C#

 
GeneralFill 50% of a drawing with a color Pin
r916-Feb-04 9:32
r916-Feb-04 9:32 
GeneralRe: Fill 50% of a drawing with a color Pin
Heath Stewart16-Feb-04 9:45
protectorHeath Stewart16-Feb-04 9:45 
GeneralRe: Fill 50% of a drawing with a color Pin
r916-Feb-04 9:48
r916-Feb-04 9:48 
GeneralRe: Fill 50% of a drawing with a color Pin
Heath Stewart16-Feb-04 10:25
protectorHeath Stewart16-Feb-04 10:25 
GeneralRe: Fill 50% of a drawing with a color Pin
je_gonzalez16-Feb-04 12:54
je_gonzalez16-Feb-04 12:54 
QuestionHow to referenc functions in other code file Pin
klufy16-Feb-04 8:28
klufy16-Feb-04 8:28 
AnswerRe: How to referenc functions in other code file Pin
Colin Angus Mackay16-Feb-04 8:57
Colin Angus Mackay16-Feb-04 8:57 
GeneralRe: How to referenc functions in other code file Pin
klufy16-Feb-04 9:29
klufy16-Feb-04 9:29 
Sorry, I am new in .Net.

I want to call a functin in c# code file from a form code in same application, I tried this:

//uMyLib.c


// created on 12/02/2004 at 02:16 ?
using System;
namespace TextLib
{
public class TextLib
{
string ReversText(string s)
{
string txt = "";
//for (int i=0; i <= s.Length-1; i++)
for (int i = s.Length-1; i>=0 ;i--)
{
txt += s[i].ToString();
}
return txt;
}
}
}


//==============
// project created on 12/02/2004 at 02:12 Õ
using System;
using System.Windows.Forms;
using uMyLib; // file name

namespace MyFormProject
{
class MainForm : System.Windows.Forms.Form
{
.......
..........
..........
void ButtonClick(object sender, System.EventArgs e)
{
uMyLib.MyLib S = new uMyLib.TextLib();

label.Text = S.ReversText(textBox.Text);
}

Thanks
GeneralRe: How to referenc functions in other code file Pin
Colin Angus Mackay16-Feb-04 9:42
Colin Angus Mackay16-Feb-04 9:42 
GeneralRe: How to referenc functions in other code file Pin
Heath Stewart16-Feb-04 9:43
protectorHeath Stewart16-Feb-04 9:43 
GeneralRe: How to referenc functions in other code file Pin
klufy16-Feb-04 10:50
klufy16-Feb-04 10:50 
GeneralRe: How to referenc functions in other code file Pin
obelisk2916-Feb-04 11:23
obelisk2916-Feb-04 11:23 
GeneralRe: How to referenc functions in other code file Pin
klufy16-Feb-04 11:28
klufy16-Feb-04 11:28 
GeneralRe: How to referenc functions in other code file Pin
Heath Stewart17-Feb-04 2:58
protectorHeath Stewart17-Feb-04 2:58 
Generalcreating an app to track user input Pin
kym34516-Feb-04 8:06
kym34516-Feb-04 8:06 
GeneralRe: creating an app to track user input Pin
CWIZO16-Feb-04 8:17
CWIZO16-Feb-04 8:17 
GeneralRe: creating an app to track user input Pin
apferreira16-Feb-04 13:18
apferreira16-Feb-04 13:18 
GeneralSMTP Help Pin
mina_aziz16-Feb-04 7:00
mina_aziz16-Feb-04 7:00 
GeneralRe: SMTP Help Pin
Heath Stewart16-Feb-04 9:31
protectorHeath Stewart16-Feb-04 9:31 
GeneralASP.NET and slider controls Pin
julian_l16-Feb-04 6:54
julian_l16-Feb-04 6:54 
GeneralRe: ASP.NET and slider controls Pin
Heath Stewart16-Feb-04 9:22
protectorHeath Stewart16-Feb-04 9:22 
GeneralPrintDocument1.PrinterSettings.CanDuplex Pin
amadeonMk16-Feb-04 5:13
amadeonMk16-Feb-04 5:13 
GeneralRe: PrintDocument1.PrinterSettings.CanDuplex Pin
Heath Stewart16-Feb-04 6:54
protectorHeath Stewart16-Feb-04 6:54 
GeneralRe: PrintDocument1.PrinterSettings.CanDuplex Pin
amadeonMk16-Feb-04 21:10
amadeonMk16-Feb-04 21:10 
GeneralRe: PrintDocument1.PrinterSettings.CanDuplex Pin
Heath Stewart17-Feb-04 2:54
protectorHeath Stewart17-Feb-04 2:54 

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.