Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. TipGiver

    Related tables / binding sources and DataGridView ComboColumns

    Hello everyone, i need some help! [VS2010 PRO, 4.0 framework] I have 2 tables in a dataset1 and they are 1-to-many related. So one record from TableRegions (parent) may have many related records (children) on TableTowns. Yes, there is a ForeignKey constraint. TableRegions = [ID, region]...
  2. TipGiver

    Best Practice Question: Many parameters, different methods.

    Hi I do exaclty this. Stuctures. Also when i need to pass variables (unknown number) of the same type or not i use Arraylist or List (OF T).
  3. TipGiver

    Parse a string to find any strings of length 'x'

    Hi \d+ means at least one digit (1 or 2 or ....)
  4. TipGiver

    Progress Bar

    The opposite is happening to me. No matter what, contrinuous or blocks, i get blocks. The marquee works fine. vb.net 2005
  5. TipGiver

    Second part - indexof

    Here is another trickier with regural expressions. Imports System.Text.RegularExpressions ' Put out of class Dim sSearch As String = "Lastn ame, Firstname" Dim sLast As String = Regex.Matches(sSearch, "[A-Za-z]+$").Item(0).Value
  6. TipGiver

    Second part - indexof

    Note also that if there is no search pattern, the split wont create the array Need to rephrase. It was correct in my head but there was an output problem :) If the search fails (so the split wont actually split anything) then the created array will have one item only - the whole "Lastname...
  7. TipGiver

    Second part - indexof

    Hi, there as many ways. Dim sSearch As String = "Lastname, FirstName" Dim sLast As String = sSearch.Split(",")(1).Trim Note: I am searching for the "," only, not including the space, just in case it is omited. If you search for ", " witch is comma+space then you can omit the...
  8. TipGiver

    tokenizer made in c#

    Hello I will give you some hints and sources. This has nothing o do with C#, but with C and C++. The idea is to create a parser that will check the grammar too. A tool to do that is the Lex or Flex (lexical analyser), and for C++ compiler use Flex++...
  9. TipGiver

    RichTextBox Number of Lines

    jslmvl Yes, the .Lines[] array has the lines seperated by newline. Just checked it. javijerome To get the number as Integer (=32bit wide) use instead the .Length property. Note that the 'RTB.Lines' is an array itself. Maybe you can use it too. The following will show the second line (what is...
  10. TipGiver

    RichTextBox Number of Lines

    MessageBox.Show(string.Format("Number of lines: {0}", this.RTB.Lines.LongLength.ToString()));
  11. TipGiver

    Formatting richtextbox

    Me.RichTextBox1.SelectionColor = Color.Red
  12. TipGiver

    Show folder contents in webbrowser control and only that

    Hello everyone, (2005 version framework 2.0) I use a webbrowser control and i have set the url to "c:\". This shows me the contents of C: drive but when the control gets enough width, the common blue column/sections appears at the left. This with the sections "file and folder tasks", "other...
  13. TipGiver

    Communicate with SQL db and share in LAN

    Hi today, after finding an enabling the tcp/ip, named pipes, shared memory and via (all of them just to be sure haha) and changing the connection string, the error that i get is that i have no access (login failed) for pc-name\guest. It uses the guest account! Can i grant full access to the...
  14. TipGiver

    Communicate with SQL db and share in LAN

    Hello, I have a windows application that runs fine. Now i decided to share the application though a lan with other personal computers. I have made the output folder shared and i can access it from an other computers in the network. The application runs but it crashes when it comes to communicate...
  15. TipGiver

    draw on a line image from X-Y coords of mouse click

    Do you want only *1* line from [X, Y] to [100,100] to be drawn? Or you want to draw *many* lines (from wherever clicked on to [100,100]) ?
  16. TipGiver

    vb2008 - For / Next Question using Try / Catch

    Add the command "Exit For" after the Msgbox.
  17. TipGiver

    How to clear all fields

    fields in a document ? You mean textboxes in a form ?
  18. TipGiver

    VB.NET Structures

    Structures gave birth to Classes in object oriented programming. You can write methods (functions, subs) to add them functionallity
  19. TipGiver

    Recursion is not working properly

    Hello Annihilannic and Feherke, Oh my God. I just saw a huge mistake. The "Handle the most recent (-nt) file of the $file directory" code should be after the last "done" just before the function ends I was working very very late yesterday and i didnt spot this! I'll see how this is goind to...
  20. TipGiver

    Get 1st sentence with regex

    Thank you all for your answers. Hm the abbreviations can be a problem. Well maybe then instead of getting the 1st sentence, i should better get the first 100 words ! I'll think about it, what to do.

Part and Inventory Search

Back
Top