dcsimg

Search:

Type: Posts; User: Vectris

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    668

    VS 2008 Re: Please help with my code!

    Try using the correct code tags so we can see the indentation.
  2. Alternate Colors and sort by number of posts in unread topics

    When browsing through topics for people that need help, I sometimes find it useful to look for topics with the smallest number of posts to see what people haven't been reached or what posters are not...
  3. Replies
    10
    Views
    1,013

    VS 2010 Re: same function for any checkbox?

    Is list displayed in some kind of box somewhere during runtime or is the list not used until after the user is done checking boxes? If the user needs to see the list while he is checking boxes, why...
  4. Replies
    4
    Views
    592

    VS 2010 Re: Parsing a string

    Just for future reference you can still use split, it has an overload that accepts an array of strings so something like this would work.

    Dim test As String = """test"",""test2"""
    ...
  5. Replies
    5
    Views
    691

    Re: Parse a text file by line

    I was not aware you could do that, I'll definitely change it.
  6. Replies
    5
    Views
    691

    Re: Parse a text file by line

    I always use option strict on but I put together this example rather than the exact code I was using before and left it out. Also, what if the text I want is in a string? Is there an easier way to...
  7. Replies
    5
    Views
    691

    Parse a text file by line

    I'm running into a problem whenever I try to parse a text file by each line. I know I could use stream reader to read line by line but it is a lot easier to simply use split() and I would also like...
  8. Replies
    0
    Views
    502

    [RESOLVED] Drawing Circles

    For my CompSc 101 class I'm assigned the completely abitrary and retarded assignment of creating a ppm image with a couple cirlces in it. If you don't know what a ppm is, it's a type of image file...
  9. Re: Replacing a string with array's data based on array's index

    The best answer is learn it yourself. If you don't know how to go from the numbers back to abc then you obviously copied the code above and I don't believe in just letting you copy more. First figure...
  10. Replies
    9
    Views
    1,132

    VS 2010 Re: Beginner Projects?

    If you know how to use loops and are really good at math you could check out Project Euler. They get really hard but if your math skills are decent there a fun challenge.

    http://projecteuler.net/
  11. Replies
    19
    Views
    1,409

    VS 2008 Re: Windows 7 API Problems

    This is the GetAsyncKeyState function, I just renamed the function to be shorter. As for the return value, that makes sense because my new computer is 64-bit and my old 32 so I'm guessing that's why...
  12. Replies
    19
    Views
    1,409

    VS 2008 [RESOLVED] Windows 7 API Problems

    My problem is with the following API.


    Private Declare Function GetKeyState Lib "user32" (ByVal keyCode As Integer) As Integer

    In Windows XP, I could simply use the API like this:


    If...
  13. Replies
    18
    Views
    1,048

    VS 2010 Re: write data to txt file

    If you leave off the path for the file it will automatically be created in the same folder as the the program. As for the second question, how are you going to format that data to a listbox as you...
  14. Re: Restrict Textbox to only certain characters, numeric or symbolic, but with a cont

    Works well but I suggest adding a feature to keep the same cursor location as it's a bit annoying when it resets to the beginning every time. Otherwise nice job.
  15. Replies
    8
    Views
    1,661

    Re: Shorten a String

    Your code doesn't work for a number of reasons. If you want to see if "5.00" is entered in your textbox then why does your .Contains condition use only "."? Change that. Then, why do you have so much...
  16. Replies
    5
    Views
    840

    VS 2008 Re: Split string

    Have you tried checking the MSDN library for the split function? Even spending 30 seconds in google would reveal the answer to how to use split.
  17. Replies
    5
    Views
    720

    VS 2008 Re: Save text boxes as file

    look at his code


    Dim sWriter As IO.StreamWriter = New IO.StreamWriter("C:\Test.txt")
  18. Replies
    9
    Views
    574

    Re: Little noobstick help

    The key to optimizing any length of code is to look for the similarities in not only the function performed, but the methods calling that function.

    Look at your button names and then look at the...
  19. Replies
    9
    Views
    1,602

    VS 2008 Re: Translucent layer on form

    I've looked for something like this before. Your best bet is to take a screenshot of the form and use a PictureBox to hold the image while hiding the real controls underneath.
  20. Replies
    9
    Views
    574

    Re: Little noobstick help

    From what you've shown us, the only difference is the value that you add to "txtCnt1.Text" and "txtVal1.Text". So why not just create a function with parameters for the values to add to each textbox...
  21. Re: Restrict TextBox to only certain characters, numeric or symbolic

    I think you meant that to be for charactersDISallowed but yes that works just fine. I'm not sure if there's a way to apply that method to charactersAllowed though. If there is go ahead and post your...
  22. Replies
    13
    Views
    3,911

    VS 2008 Re: Standard Deviation?

    That's why not to use linq.



    And yet again you guys are just doing someone else's homework. Not to mention he doesn't even understand the code your giving him.

    @ComputerGeek

    To find the...
  23. Replies
    13
    Views
    1,243

    VS 2008 Re: Get size of text in textbox?

    Ah the problem was I was using a RichTextBox while you were using a regular TextBox. The length method works fine for a regular textbox.

    If the OP is trying to exactly model notepad then yes a...
  24. Replies
    3
    Views
    1,653

    Re: iTunes SDK (control)

    Ok I understand what you mean now. So regardless of whether or not your trying to actually use the program, just opening it also opens iTunes.

    If you don't use the iTunes control I doubt there is...
  25. Replies
    13
    Views
    1,243

    VS 2008 Re: Get size of text in textbox?

    The OP never said anything about what kind of textbox he's using. If he's making a text editor assuming it's a richtextbox is a better assumption.

    Also how could I count wrong? Right clicking a...
  26. Replies
    13
    Views
    1,243

    VS 2008 Re: Get size of text in textbox?

    Correct, but I said that line breaks are counted differently, not that there not counted at all. Here's a simple test I used, make a form with a rich text box and just use a button to msgbox you the...
  27. Replies
    3
    Views
    1,653

    Re: iTunes SDK (control)

    How can you have a song playing with iTunes without starting iTunes?
  28. Replies
    13
    Views
    1,243

    VS 2008 Re: Get size of text in textbox?

    Well first of all it's not * 2. A byte is a character (at least for .txt files) so no multiplying. Second, if there are any line breaks in the document it will throw your estimate waaaay off, hardly...
  29. Replies
    13
    Views
    1,243

    VS 2008 Re: Get size of text in textbox?

    To be sure it'd be smarter to save a temp version of the file first and then get the size of the it.
  30. Replies
    1
    Views
    496

    Re: font dialog problems

    Where are you finding that it's ReadOnly?

    I opened a new project, dragged on a FontDialog and under the Form Load event used this code to change the font before it's displayed and it works just...
  31. Replies
    3
    Views
    697

    VS 2010 Re: Delete from a text file

    Ok I'm not really sure what your trying to do here. Tell me what the purpose of your program is and I should be able to help you better. As of now I have no idea why you have a For loop that goes...
  32. Replies
    6
    Views
    936

    VS 2010 Re: [RESOLVED] Math function on big numbers

    Along the lines of actually coding a calculator I suggest you take a different approach. Check out the calculator in my sig.

    I approached the problem by splitting the input into 3 parts, part 1 is...
  33. Re: Help with Select Case Statements

    Juggalo, though examples are a good way for people to learn, I don't think you should just be giving code away especially since this is for a college class. Explaining it would help him a lot more in...
  34. Re: Check letters (but not for comma, spaces or linebreaks)

    Check the link in my signature.
  35. Replies
    18
    Views
    1,440

    VS 2010 Re: Converting recursion to iteration

    What exactly are you trying to do with the code. I understand that your checking grid boxes surrounding a single box but what is the overall purpose?
  36. Replies
    4
    Views
    3,380

    VS 2008 Re: Picturebox load image from folder

    First I have no idea what you tried and I have no idea what you mean by it didn't work. You need to be more specific. And in the resources I'm referring to no, you can't have folders.
  37. Replies
    20
    Views
    1,289

    VS 2008 Re: Picturebox Transparent background

    For all intents and purposes in this topic they're the same thing. I'm trying to keep things simpler for the OP. But to be 100% correct yes the same graphics object.
  38. Replies
    20
    Views
    1,289

    VS 2008 Re: Picturebox Transparent background

    mini is correct, PictureBox transparencies only work for the form but will not be transparent to each other.

    If you really want your images to be transparent to each other you have to use...
  39. Replies
    3
    Views
    697

    VS 2010 Re: Delete from a text file

    Don't write to a text file. Instead use a string and then you can use an if statement for the backspace key and if true use string.RemoveAt to get rid of the last character.
  40. Replies
    4
    Views
    3,380

    VS 2008 Re: Picturebox load image from folder

    Not sure what LoGiCAnti said but if your going to use Image.FromFile you have to use the whole reference because the folder Resources is not in the same folder as the .exe that you run when you...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width