Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Create a Find String application that displays the first position

of a word or phrase in another word or phrase. Use text

boxes to prompt the user for a string and a search substring.

The application interface should look similar to that shown on

the right after typing the strings and clicking Find String.

 

HELP PLEASE!!!! I AM A BEGINNER!

Posted

Look into the following methods to locate the different occurances of strings within another string.

String.IndexOf();
// and
String.IndexOfAny();

 

In C# there is no "input" dialog, so it'd be the most simple to use another textbox on your form. Or use the following VB code

 

Dim sResult as String = String.Empty
sResult = Input("Title", "Message")

 

As for application interface your on your own -- the designer is pretty easy to use once you load it and spend five minutes with it.

 

That is all the information I can provide based on your vague question.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...