User Profile

Collapse

Profile Sidebar

Collapse
RhysW
RhysW
Last Activity: Jun 8 '12, 10:17 AM
Joined: Mar 4 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    public void MakeOnTop()
    {
       myTopForm.TopMost = true;
    }
    See if this works for you
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to dataGridView Selection?
    oh i see, you mean how to make it show the little black arrow pointing to the actual line thats selected?

    wow what version of visual studio are you using btw?

    these quotes from the link at the bottom of this answer, though the logic should help you now that i know what youre on about XD i honestly couldnt figure out what you mean but the picture helped :L they speak a thousand words you know, but i would love to see you...
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to dataGridView Selection?
    so whats the problem? you said you dont want it to select the frist row, then explained that it started with the second row anyway, im not seeing what the problem is :S
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to Listbox, ArrayList of objects.
    yes, dont use a listbox, use a datagridview, and dont use an array list, use a bindinglist. unless the spec says you have to use those two.
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to dataGridView Selection?
    write a bit of code that is fired everytime the selected row is changed, make this code check if row 0 is selected, if it is, set selected row to row 1.
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to How to convert rows to clumns
    http://aspalliance.com/538_CodeSnip_...rizontally.all

    This page gives a very detailed tutorial on how to have is set so records are viewed in the way you want, you may have to click, view etire article, its the last two headers that explain it. essentially you manually replace each record into the right place in a special bound datagrid. the tutorial really explains it better than...
    See more | Go to post

    Leave a comment:


  • Edit: Already answered, duplicate question http://bytes.com/topic/c-sharp/answe...esizeend-event
    See more | Go to post

    Leave a comment:


  • i would say you aren't using the autocomplete properly then if its deleting everything
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to MVC3 razor view dropdownlist from Enum
    in your enumeration you're setting both text and value to c, this could be the reason why the text and the value are the same
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to Graphic Pen 1 Sided Width?
    only allow increments in even numbers then, i cant make rectangles accept something they dont XD
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to Buttons visibility
    hehe thought it might be that the moment i tried it because i suddenly remembered doing something similar a few projects ago
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to validate if item is already exists
    no that because the example i gave wasnt in the perfect format, you would need to look up a little bit of code to show you how to get a certain column from each row and put that in there instead, thats just a frame for how it could be done, not the exact template of what to do
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to 910209 - Where's ResizeEnd event?
    according to the link i gave you there isnt a way to know when the browser is finished resizing, because "Remember the event doesn't really start or end, it just "happens" when a resize occurs" this is the logic of browser resizing, it doesnt need to know if the user is finished or not so there is no event for it, so the only way to know is if you write your own method for deciding if a resize is done, and a timer is a way to...
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to validate if item is already exists
    before you add it to the list run a check to see if txtProductID.Te xt matches with the ID column in the database

    Code:
    public bool CheckExisting()
    {
    foreach(ID_ROW row IN DATABASE_TABLE)
    {
    if (row == tbxProductID.Text)
    {
    return true;
    }
    }
    return false;
    }
    you would have to change the code in the foreach to check the right column in the right table of your...
    See more | Go to post

    Leave a comment:


  • no i mean the file, not vis studio or its equivalent, i mean the literal file that its being stored in, as in if youre reading from notepad i think if you opened notepad it would show that questionmark not the character. if you open up some files in notepad and it deosnt know the symbol it displays that questionmark in its place, this might be the problem though i havent checked

    Edit: though hecking in notepad it does support those characters,...
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to 910209 - Where's ResizeEnd event?
    found you a solution, well, if you are happy with using javascript i have found you a solution! i found an answer on stack overflow, some javascript that uses your idea, it sees if ther is another change in size within 500ms of the last resize event, if not it updates the width and height textbox areas, but im sure you will be able to use it instead to resize the map, here is both a link and the code incase the question is deleted:

    Code:
    $(window).resize(function()
    ...
    See more | Go to post
    Last edited by RhysW; Apr 30 '12, 12:28 PM. Reason: tidying up grammar and spelling

    Leave a comment:


  • RhysW
    replied to validate if item is already exists
    in psuedo code:

    every time you add an item

    Code:
    string AddedproductID = (the new id)
    
    foreach (item I in cart)
    {
    int loop++;
    if (AddedProductID == I.ID)
    {
    MessageBox.show("Already exists");
    int matches++;
    }
    if(matches ==0 && loop ==cart.count)
    {
    //code to add item to list
    }
    }
    I havent tested this but it Should work,...
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to 910209 - Where's ResizeEnd event?
    hmm, as i can't find a solution to this and no-one else on the other sites youve posted seems to know, might i make a suggestion to how to do this?

    When the user finishes resizing the window you want to fire off and get a new map presumeably to fit in the windows new size correct? but what if the user only moves it a millimeter, perhaps by accident (which i do alot when im moving the mouse about) you arent going to want to send off...
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to 910209 - Where's ResizeEnd event?
    then the only solution i can think of it storing the size of the form or whatever, and everytime the mousebutton is released check to see if the size is different from the stored values, if it is store the new values for future comparisons and fire the rest of your code, i dont think there is an event that does exactly what you ask so you will have a hard time finding it unless you write something that does it for you. the event you are looking for...
    See more | Go to post

    Leave a comment:


  • RhysW
    replied to Buttons visibility
    On a massive side note i just tried to replicate the problem you have, i used 26 buttons instead of your 15, hoping that this would exaggerate your problem, and i didnt have it, it showed just as quickly as it hid. So its nothing with your code, its literally just the speed that your computer is capable of hiding and drawing at (mine is only a month or so old so has next to nothing slowing it down) so yeah the problem is not the code, so you dont...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...