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 strongm 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. Antzelinaki

    How to keep Color in DB

    you can use the val function to convert string to integer too!!!!
  2. Antzelinaki

    How to keep Color in DB

    What about if you add a string field named ColourValue in your table that will keep the value of each colour as &HFFFFFF& for example??? I disagree with integer type... you can convert the type of the field if you need it in your code. You don't have to remove COLOR_DESC field because it makes...
  3. Antzelinaki

    RichTextBox1.SelectionFont bold

    Andrzerek, it's just a small change in my code. ;) Here you are!!! Have fun :D If RichTextBox1.SelectionFont.Bold = True Then RichTextBox1.SelectionFont = New Font(RichTextBox1.Font, FontStyle.Regular) ElseIf RichTextBox1.SelectionFont.Bold = False Then RichTextBox1.SelectionFont =...
  4. Antzelinaki

    RichTextBox1.SelectionFont bold

    Simple!!! If RichTextBox1.Font.Bold = True Then RichTextBox1.SelectionFont = New Font(RichTextBox1.Font, FontStyle.Regular) ElseIf RichTextBox1.Font.Bold = False Then RichTextBox1.SelectionFont = New Font(RichTextBox1.Font, FontStyle.Bold) End If RichTextBox1.Font =...
  5. Antzelinaki

    Completion of Leave event sub closes form

    I am glad that I helped you. I have faced many times problems like this. That's why I told you to look to the sub which form show event executed, because your code was correct without any problems!!! :)
  6. Antzelinaki

    Completion of Leave event sub closes form

    I ran it once more, it's ok!!! and if the user click on yes the form closes. if the user clicks on no then exit sub, end sub without the form been closed. If form show command is first block of code, then you have to look there. If you run it step by step before the user click on the cansel...
  7. Antzelinaki

    Completion of Leave event sub closes form

    Your code is correct. I checked it. After the exit sub, end sub is executed and then everything is ok. Where is exactly the Form Show command??? I want a favour from you. Please write us the piece of code of the event which the form show returns and executed.
  8. Antzelinaki

    Completion of Leave event sub closes form

    First of all I want to ask you in which event is the form.show statement? Secondly did you try to cut paste the code of the leave event to a sub created by you? and call this sub from the point that you want so that when the sub will finish to return to the next statement? I checked how it works...
  9. Antzelinaki

    IsDBNull???

    You're getting this error because you have written in wrong way the condition. All the arguments must be an index as integer and not a string. for example dschapters.Tables(0).Rows(0).item(0) dschapters.Tables(0).Rows(0).item(1) Your if statement must me like that If...
  10. Antzelinaki

    How to find 12 unique solutions of 8 queens problem?

    I have writen a program that finds 92 solutions of 8 queens placed on a chessboard without attack each other. I have found through a google search that 12 of these are unique from symmetry. So... I thought to take totally 368 solutions of 92 x 4 because, if we turn the chessbord which is a...
  11. Antzelinaki

    How to assign a value to a location.x of a picturebox programmatically?

    Thank you so much jebenson. The second way works for me :)
  12. Antzelinaki

    How to assign a value to a location.x of a picturebox programmatically?

    Hello!!! I have created an array of pictureboxes named pbs. Public pbs(8) As PictureBox And the what I want to do is to assign a different specific value for Location.X and Location.Y programmatically for each element. x,y are variables that change their values for each element...
  13. Antzelinaki

    Problem holding values in an array

    Thank you so much jebenson. I finally found it by my own. Public solutions(92) As List(Of Queen) and it was ok. :)
  14. Antzelinaki

    Problem holding values in an array

    Hello everybody. I have a class Queen with row, col properties and I am declaring variable Queens as a list of Queens because it represents 8 queens with their positions (row,col) Public Queens As New Collections.Generic.List(Of Queen) So, I need an array that holds 92 solutions of the 8 Queens...

Part and Inventory Search

Back
Top