Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    185

    Re: Why isn't this working?

    Hi,

    Since a text string is actually an array of chars here is another option for you using the Char Data Type and a bit of LINQ to Objects:-

    Dim sometext As String = "Some / Text To, Be Dealt...
  2. VS 2013 Re: Rotate Image and/or Picture Box?

    LOL! No worries and glad I was able to help.

    Cheers,

    Ian
  3. Replies
    7
    Views
    212

    VS 2010 Re: Animation Codes

    Hi,

    How about using the Contains Method to distinguish which option to use. Have a look at this example:-

    'To Display an Example:-
    Dim PlayerSkillsAnimationIntervBackUp(1) As Integer...
  4. VS 2013 Re: Rotate Image and/or Picture Box?

    Hi,

    I am surprised that you did not figure this one out. This is to do with the fact that you have set the Image Property of the PictureBox (which is a FIXED Image unless you remove it) and yet...
  5. VS 2013 Re: Rotate Image and/or Picture Box?

    Hi,

    I am not sure that this answers all your issues but this should get you started with at least sorting out the size issue when you call your Rotation routine.

    The thing to remember is that...
  6. Replies
    1
    Views
    142

    VS 2010 Re: Timer Tick Event

    Hi and welcome to the Forum,

    For future reference please post your relevant code using the Code Tags provided by the forum for ease of reading. As it is I was just able to make out what is going...
  7. Replies
    4
    Views
    190

    Re: Tutorial for beginner in xml webservice

    Hi and welcome to the Forum,

    It sounds like that what you are looking for is the ability to convert your Class Objects to some text object to be delivered between your client and your web service...
  8. Replies
    3
    Views
    211

    Re: LINQ, Group and Option Infer

    Hi,

    The actual type that is returned from that particular LINQ query is of type:-



    A quick interpretation of your query could therefore be:-

    For Each Item As IGrouping(Of Integer,...
  9. Replies
    3
    Views
    228

    Re: Invalid use of Null in query

    Hi,

    Give this query a try:-

    SELECT Len(Nz([A-Time])) AS Expr1, IIf(Len(Nz([A-Time]))>0,CInt(Left([A-Time],2))*60+CInt(Right([A-Time],2)),0) AS Secs
    FROM tblTest8
    WHERE...
  10. Replies
    4
    Views
    246

    VS 2013 Re: Pivot Table -- Sum of amounts not done

    How to: Use Aggregate Functions to Work with Values in Access SQL
  11. Replies
    4
    Views
    246

    VS 2013 Re: Pivot Table -- Sum of amounts not done

    Hi,

    It’s your Grouping that is at Fault. You will need to get rid of at least the last 3 fields but then I would suggest that you only need to group by the AccountNumber or PlayerID. Once Done you...
  12. Replies
    1
    Views
    185

    VS 2010 Re: Random Question Generator?

    Hi,

    I take it that the main trouble you are having is the calculation of the answer to the random question that you have generated? If so then this is easily solved by using the Compute Method of...
  13. VS 2013 Re: can somebody help to split a file in 3 textboxes

    Hi,

    Good to see that you got it working but if your main question is now resolved then please resolve this Thread and create a New Thread to ask your additional question.

    This then keeps within...
  14. Re: Trouble figuring out CheckedListBox Index problem

    Hi,

    You have basically got one to many For Loops there. All you need to do is to Iterate the Selected Items in the CheckedListBox as you have done and then increment some Index which represents...
  15. Replies
    17
    Views
    432

    Re: Label click events - Duplication needed ?

    Hi,

    OK, to answer another point in your coding you are using the "Greater Than" Comparison Operator to check to see if something contains a string but you should really be checking this against...
  16. Replies
    17
    Views
    432

    Re: Label click events - Duplication needed ?

    Hi,

    I think you are making this harder than it really needs to be. Since currentLabel IS the label that has been clicked then why bother trying to access a control collection only to get the same...
  17. VS 2013 Re: can somebody help to split a file in 3 textboxes

    Hi and Welcome to the Forum,

    To expand a little on what vbfbryce has already posted and based on what you have said it seems to me that you need to do two separate Splits here. The first split is...
  18. Replies
    17
    Views
    432

    Re: Label click events - Duplication needed ?

    Hi,

    The better way to achieve this sort of thing is to create One Routine which can then handle the Click Event for all your labels. You do this by creating a single routine to handle a single...
  19. Thread: Invalid Cast

    by IanRyder
    Replies
    4
    Views
    237

    Re: Invalid Cast

    Hi,

    You don’t force anything what you need to do is to use the Correct Properties with the Correct Conversion Methods at the Correct Time.

    So, to get these points sorted How have you Populated...
  20. Replies
    1
    Views
    193

    Re: DataGridView Character Encoding

    Hi,

    I do not know the answer to this but I have had a browse about the internet and found a couple of things which may help. Firstly, I came across this link:-

    Microsoft.Jet.OLEDB.4.0...
  21. Replies
    9
    Views
    493

    VS 2013 Re: Ping ASYNC Accuracy issue

    Hi,

    I have had two plays now so the rest is up to you. Here are some tips:-



    If you want these results spread out in labels then do that. I just used a ListView as an example. What you do is...
  22. Replies
    9
    Views
    493

    VS 2013 Re: Ping ASYNC Accuracy issue

    Hi,

    There are quite a few issues there so I have had a bit of a play and if I were doing this I would do something like the below. In this case, we only create 1 instance of the Ping Class, we...
  23. Replies
    9
    Views
    606

    Re: Syntax manipulation

    Hi,

    If you are basically trying to work out if the Correct Radio Button is checked to answer a question then what you can do is Loop through the Control Collection of the Container that holds the...
  24. Re: VB.Net PrintDocument - How to print a horizontal line

    Hi,

    Have a look at this:-

    Graphics.DrawLine Method (Pen, Point, Point)

    Hope that helps.

    Cheers,
  25. VS 2013 Re: DataGridView: Enter on cell & validate value

    Hi,

    OK, this should have been two separate questions on the Forum since these are two separate issues but since this is done I will answer both. (Mods, please feel free to split this thread if you...
  26. Replies
    9
    Views
    493

    VS 2013 Re: Ping ASYNC Accuracy issue

    Hi,

    You have not specified what methods you are using to do this and you have not provided any code for us to work with so all I can offer is a bit of an example using the Ping Class that I know...
  27. Replies
    19
    Views
    606

    Re: oledbDataReader to Array

    Hi,

    No, your not up the creek, it’s the casting of the Base Data Type to a String which is the issue and which I did not test before posting. The easy fix is to not do the Casting to a String in...
  28. VS 2013 Re: DataGridView: Enter on cell & validate value

    Hi,

    Before I provide any sort of answer to this can I ask what the real problem is that you are having?

    Is this an actual Cell Validation issue that you are having or is this the fact that...
  29. Replies
    19
    Views
    606

    Re: oledbDataReader to Array

    Hi,

    Sorry, force of habit kicking in there and I missed that you were using OleDb. Easy to convert from SQL to OleDb. Have a try with this:-

    Private Sub GetData(ByVal someSQLQuery As String)
    ...
  30. Replies
    4
    Views
    295

    Re: Rich text box and URL's.

    Hi,

    I have just tested this myself and it works as expected so I guess you did not code this right the first time round like you mentioned.

    You should have in your code a routine similar to...
  31. Replies
    4
    Views
    295

    Re: Rich text box and URL's.

    Hi and Welcome to the Forum,

    I have not tested this but it sounds like this should do the trick:-

    RichTextBox.LinkClicked Event

    Hope that helps.

    Cheers,
  32. Replies
    19
    Views
    606

    Re: oledbDataReader to Array

    Hi,

    Yes you can get your code routine to do this by using the DataRow’s ItemArray Property. Here is a variation of the code that KevinInstructor posted. In this case I use a DataAdapter to get the...
  33. Re: DGV Sorting columns and losing back colours

    Hi,

    This all depends on where you have written the code to set the Backcolor of the Cell. The right place to do this sort of thing is in the CellFormatting Event of the DataGridView. Did you write...
  34. Replies
    19
    Views
    606

    Re: oledbDataReader to Array

    Hi,



    Yep, that is exactly what SH was referring to.

    To understand in more detail what SH was saying take some time to have a read through this. There is also a specific section here talking...
  35. Replies
    8
    Views
    425

    Re: Questions about datatables

    Hi,

    I did not quite follow what you meant in that last post but if you want to iterate through the Filtered items in the BindingSource then you can just use a For Loop. i.e:-

    For Each...
  36. Replies
    8
    Views
    425

    Re: Questions about datatables

    Hi,



    Whenever you use the Filter Property of a BindingSource the underlying DataSource, in this case your DAT Table, is never altered so you would see 5 entries in the Datatable both before and...
  37. Replies
    8
    Views
    425

    Re: Questions about datatables

    Hi,

    If you want to Filter information in a Datatable then one of the easiest and most efficient ways to do this is to use the Filter Property of a BindingSource. Have a look at this example from...
  38. Replies
    6
    Views
    322

    Re: Update Command Not Executing

    Hi,

    When accessing an Access Database with OLeDb and Paramaters then the Parameter Names are actually Ignored and it’s the ordinal position of the Parameters in the Query and the Order in which...
  39. Replies
    6
    Views
    644

    VS 2013 Re: Order files by name (ListBox)

    Hi,

    When referring to my code then you need to remember that my example assumes that your files are in the format of “Arve_<SomeNumber>.pdf”. If there are other files in your directory that do not...
  40. Replies
    6
    Views
    644

    VS 2013 Re: Order files by name (ListBox)

    Hi,

    This is because you are ordering using Strings and not Numerical values which are ordered differently. I will let you take the time to research that.

    To do this, you need to Spilt the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width