Click here to Skip to main content
15,891,621 members
Home / Discussions / C#
   

C#

 
Generalhandling internet explorer events from a console application in VS.net Pin
Sonja-Hartmann29-Sep-03 3:29
Sonja-Hartmann29-Sep-03 3:29 
Questionhow to make a shortcut in .net cf Pin
tignatov29-Sep-03 0:21
tignatov29-Sep-03 0:21 
Generalpass parameter to a method in new thread Pin
zecodela28-Sep-03 23:11
zecodela28-Sep-03 23:11 
GeneralRe: pass parameter to a method in new thread Pin
Corinna John29-Sep-03 2:26
Corinna John29-Sep-03 2:26 
QuestionScrolling two textboxes with one scrollbar??? Pin
Steppen Wolf28-Sep-03 21:07
sussSteppen Wolf28-Sep-03 21:07 
AnswerRe: Scrolling two textboxes with one scrollbar??? Pin
Anonymous29-Sep-03 1:18
Anonymous29-Sep-03 1:18 
GeneralRe: Scrolling two textboxes with one scrollbar??? Pin
Steppen_Wolf29-Sep-03 5:33
sussSteppen_Wolf29-Sep-03 5:33 
GeneralAdding a Class Library Pin
gmhanna28-Sep-03 8:32
gmhanna28-Sep-03 8:32 
I just created my first "Class" library and now I want to use it in my code. I added the Class Library by using the "Add Existing Item" from the Project menu and selected MyString.cs. When I try to build the project, I get an error message on line:

textBox2.Text = MyString.NumericOnly(textBox2.Text);

The build output says: d:\mcp2003w\WindowsApplication1\Form1.cs(179): The type or namespace name 'NumericOnly' does not exist in the class or namespace 'MyString' (are you missing an assembly reference?)

The code for the Class Library is:

using System;
using System.Text;

namespace MyString
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class MyString
{
public MyString()
{
//
// TODO: Add constructor logic here
//
}

public string NumericOnly(string input)
{
char[] textin;
int i;
StringBuilder textout;

textin = input.ToCharArray( );
textout = new StringBuilder( );

for (i=0; i<textin.Length; i++)
{
if (textin[i] >= '0' && textin[i] <= '9')
textout.Append(textin[i]);
}

return (textout(ToString());
}

}
}
Any idea what I did wrong??

Thanks,

Glenn
GeneralRe: Adding a Class Library Pin
Daniel M. Edwards28-Sep-03 9:27
Daniel M. Edwards28-Sep-03 9:27 
GeneralRe: Adding a Class Library Pin
gmhanna28-Sep-03 10:08
gmhanna28-Sep-03 10:08 
GeneralRe: Adding a Class Library Pin
Tomas Petricek28-Sep-03 10:27
Tomas Petricek28-Sep-03 10:27 
QuestionHow to get the color of a Pixel? Pin
Leon van Wyk28-Sep-03 4:28
professionalLeon van Wyk28-Sep-03 4:28 
AnswerRe: How to get the color of a Pixel? Pin
Anonymous28-Sep-03 18:49
Anonymous28-Sep-03 18:49 
GeneralStructures and Unions Pin
gmhanna28-Sep-03 3:59
gmhanna28-Sep-03 3:59 
GeneralRe: Structures and Unions Pin
Bo Hunter28-Sep-03 7:46
Bo Hunter28-Sep-03 7:46 
GeneralRe: Structures and Unions Pin
jparsons28-Sep-03 15:38
jparsons28-Sep-03 15:38 
QuestionHow to implement &quot;card view&quot; similar to the Contact of Outlook Pin
Member 18476327-Sep-03 21:29
Member 18476327-Sep-03 21:29 
AnswerRe: How to implement &quot;card view&quot; similar to the Contact of Outlook Pin
Anonymous28-Sep-03 18:56
Anonymous28-Sep-03 18:56 
GeneralAbt C# message handlers Pin
Priyesh27-Sep-03 20:15
Priyesh27-Sep-03 20:15 
GeneralRe: Abt C# message handlers Pin
leppie28-Sep-03 1:08
leppie28-Sep-03 1:08 
GeneralRe: Abt C# message handlers Pin
Anonymous28-Sep-03 5:29
Anonymous28-Sep-03 5:29 
Generallinkbuttons and web spiders Pin
Member 52585827-Sep-03 19:19
Member 52585827-Sep-03 19:19 
GeneralRe: linkbuttons and web spiders Pin
leppie28-Sep-03 0:51
leppie28-Sep-03 0:51 
QuestionQuestion abount Socket Communication? Pin
JiangHaiLong27-Sep-03 19:12
JiangHaiLong27-Sep-03 19:12 
AnswerRe: Question abount Socket Communication? Pin
Corinna John29-Sep-03 2:33
Corinna John29-Sep-03 2:33 

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.