Search:

Type: Posts; User: Españolita

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    8
    Views
    1,333

    VS 2017 Re: directory search

    I understand the issues trying to work in a foreign language very well so I have some sympathy with that.

    A quick search online found this:...
  2. VS 2013 Re: Error when call function from the immediate window

    I can't tell you what you have done wrong but I can tell you that I have got it working correctly.
    I created a form with 2 buttons. 1 to exit and the other to run the function.
    I added a module and...
  3. VS 2008 Re: Formatting a date to DD/MM/YYYY

    In the code you posted in post 5, you declare DateTomorrow as a DATE type variable.
    Then you assign the DATE datatype a STRING value. (DateTomorrow = DateTomorrow.ToString(.....)).
    I believe you...
  4. Replies
    12
    Views
    1,499

    Re: Help me with building my first program

    It depends on how you have named your manuals and where they are stored. In your button.Click event, take the text value of ComboBox 1 and/or 2 and use them to identify the relevant manual and...
  5. Replies
    12
    Views
    1,499

    Re: Help me with building my first program

    Instead of making the unused buttons disappear as in your original description, I would have enabled/disabled them instead if they were not to be used (Button1.Enabled = True). This for a purely...
  6. Re: No type mismatch on one line but yes on next line

    I think the For loop can only handle a data type that can be iterated and you have it using a Variant.
    Is it possible to convert to an integer/single before the loop and use the new (integer/single...
  7. Replies
    2
    Views
    762

    VS 2010 Re: Creating some sort of log

    To expand on kebo's answer, if you want to record several pieces of info each time, you could use commas (or some other delimiter, I prefer the pipe | because it's rare in normal use) to separate the...
  8. VS 2010 Re: How to ensure correct positioning on various resolutions

    Thank you for your response however I have a question.
    I understand what you said about using a container and using a panel for instance, to place the guessed letters could well solve that part of...
  9. VS 2010 How to ensure correct positioning on various resolutions

    I have a hangman program which works just right on my computer. I make a release version and emailed it to another computer. It works on that computer but some things are positioned differently. I'm...
  10. Replies
    2
    Views
    3,917

    VS 2010 Re: How to Insert Label inside Textbox in vb

    I think a Cue Banner will do what you want. It is a default text to display when the textbox is empty and guides the user about the input required. Have a look at this thread
  11. Replies
    13
    Views
    7,586

    Re: i seek code for an undefined problem (-:

    It is not possible to ask too much! In a previous job, I was asked to put systems in place for a factory and not given any tools to do so. I did the whole exercise in VBA and in the end it tracked...
  12. Replies
    4
    Views
    906

    VS 2010 Re: When value reaches x perform y

    DigitalShaman has given you the answer but I'll explain why your code didn't work as expected.
    Take this line from your code.

    If set3 = set4 < 0.5 Then
    The comparison operators you are using ( =...
  13. Re: Problem writing with WriteAllLines

    Thank you for the guidance Ident. I have now condensed my code to this based on your comments.
    Private Sub btnFiull_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  14. Re: Problem writing with WriteAllLines

    I knew there'd have to be a more succinct way to write this bit and I had an idea it would involve Lambda functions. They are called Lambda fuctions yes? Anyway this part of the code is very helpful,...
  15. Re: Problem writing with WriteAllLines

    The file (myFile) is a .txt which holds a list of all the words. This is about 200,000 long. I read those in at one go with ReadAllLines to an array called Words()
    This array is used to populate a...
  16. Re: Problem writing with WriteAllLines

    Thank you John, you put me on the right track to find the problem. It wasn't anything to do with the listbox though. It was that I didn't clear the list "dict" at any time so the second time I filled...
  17. [RESOLVED] Problem writing with WriteAllLines

    I have a program with a listbox which I fill with a word list 200,000 words. The user can select multiple entries in the listbox and then press a button to delete those entries from the list. As far...
  18. VS 2013 Re: Sub finishes before reaching end

    Sub does definitely NOT exit where you say it exits. It may appear so because it doesn't run the final For-Next. The only reason that the final For-Next will exit without doing anything is if the...
  19. Thread: Listbox

    by Españolita
    Replies
    4
    Views
    1,156

    VS 2010 Re: Listbox

    This is happening because you are sorting strings instead of numbers. Without researching it, I can suggest a quick and dirty hack though. When you fill your listbox, give the listbox values...
  20. VS 2005 Re: Bolding and Changing Font Type and Size in Richtextbox

    Colour is a user-defined sub. I included it in the code I posted. I simply pass the value of the textbox text to my sub and the sub dies the highlighting.

    I notice from your code however, that you...
  21. VS 2005 Re: Bolding and Changing Font Type and Size in Richtextbox

    I created a simple form with an RTB (RichTextBox1), a Textbox (Textbox1) and a button (Button1)
    I entered a string in the textbox to test then ran it. I typed a word in the textbox and clicked the...
  22. Replies
    3
    Views
    863

    Re: To delete or not to delete

    I have a similar situation with my school. A student comes to a course and then drops out or finishes the course. They may come back another time for another course, or when work allows. I have a...
  23. VS 2005 Re: Bolding and Changing Font Type and Size in Richtextbox

    looks like this thread may have what you're looking for. I know little about RichTextBox but the code here seems to change the font of a part of the text as you describe.
  24. Re: how to round up values to nearest 50s in vb.net

    Take the integer division of your value (value\50). This gives the integer part of the division. Add 1, then multiply by 50.
    Be careful. This will wrongly round up for example 100 =>150, but...
  25. Replies
    0
    Views
    6,972

    VB2010 Hangman game

    114937
    This is a simple game I made for my school. I hope to be able to deploy it on an interactive whiteboard eventually. We use hangman a lot to learn the alphabet and that is the reason I have...
  26. VS 2010 Re: remove all controls that start with a string

    Thanks tg, no need to look it up, I've solved it with this code thanks to your advice.
    Private Sub RemoveAllLetters()
    Dim LabelsToRemove As New List(Of Label)
    ...
  27. VS 2010 [RESOLVED] remove all controls that start with a string

    Private Sub RemoveAllLetters()
    For Each ctrl In Me.Controls
    If TypeOf ctrl Is Label Then
    Dim ThisLabel As Label = CType(ctrl, Label)
    If...
  28. VS 2010 Re: [RESOLVED] Adding labels programmatically but they don't show

    nope, that's not it, I have left Dim as Char and .ToArray as they were and it works. Good thing too really because I am going to have to refer to each letter by index and search the array for...
  29. VS 2010 Re: Adding labels programmatically but they don't show

    @DBasnett, there is something in the text, an underline.
    @grags, it seems the only thing you changed was Placeholder.Size to Placeholder.Width and Placeholder.Height and made no difference....
  30. VS 2010 [RESOLVED] Adding labels programmatically but they don't show

    I am trying to create labels and tile them across the form. I have followed examples from the internet but they don't display. Me.Controls.Add should work!!! I checked they should be in the visible...
  31. Replies
    4
    Views
    763

    Re: Simple Text Reading

    After reading the documentation about String.Split, you will see that it creates an array with each word in a separate index. Be aware that arrays are 0-indexed which means that the first element in...
  32. Re: Console Application: How to write text after readline?

    You read and write to the console sequentially. When you Console.ReadLine, everything stops until the user presses <ENTER> the app then continues with processing. You cannot display anything below...
  33. Replies
    34
    Views
    3,904

    Re: Question about image resources

    Maybe check your filenames. In post 6, it complains it can't find "Broken Window" (with a space). In post 7, You have a file called "Broken_Window" (with an underline)
  34. Replies
    34
    Views
    3,904

    Re: Question about image resources

    I put all the required files in the same folder as the exe and then use App.Path in code. This way, when you deploy, it doesn't matter what the name of the folder is where you have your .exe It is...
  35. Replies
    3
    Views
    2,432

    Re: Size and Position the ToolTip Window?

    Have a look at the MSDN for tooltip.Show method and its overloads. One of them sets the position of the tip.
    There is also an old thread here that you might find useful
  36. Replies
    10
    Views
    1,189

    VS 2010 Re: Download a list 100 items at a time

    If dgView.Rows.Count Mod 100 = 0 Then
    'multiple of 100 so do send stuff
    Else
    'Not multiple of 100 so ignore it and download the next
    End If
  37. Re: [RESOLVED] Any problems with this splash plan?

    As an off-the wall idea, why not set the coordinates for the form so it shows outside the display area. Then when the last control is added, set the display coordinates back inside the display area?
  38. Re: Read from another for in another application

    Is it as simple as a typo? In your description, you refer to frmAccess but in your code, you refer to frmAcces
  39. VS 2010 Re: Boolean trouble. Why is it resetting to true? Argh!

    About subs: The code you have in post 7 is a sub. It is attached to the click event of BtnA. This sub is automatically generated for you when you double click the button in the designer.
    But, you...
  40. Replies
    4
    Views
    958

    Re: Easy way to learn computer languages

    As George says, you can learn and develop your skills at home. To demonstrate you have the necessary skills, you would simply have to take along an app or 2 that you have written. I would strongly...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width