Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    14
    Views
    170

    VS 2005 Re: SqlDataReader Add Blank Row

    Hi,

    Maybe I am missing something or maybe this is just the default behaviour of the Elegant.UI.ComboBox but a standard ComboBox does not have anything selected when you use its Add or AddRange...
  2. Replies
    40
    Views
    601

    Re: Lets Build a Program

    015 MessageBox.Show(String.Join(" ", Enumerable.Range(0, myRandom.Next({"you", "are", "all", "going", "Bonkers", "when", "marriage", "should", "be", "the", "most", "memorable", "Time", "in", "your",...
  3. Replies
    40
    Views
    601

    Re: Lets Build a Program

    I normally don’t play with these threads but this did make me laugh so according to the rules:-


    014 Dim myRandom As New Random
  4. VS 2010 Re: How to change date in date time picker to last weekday of previous month?

    Hi,

    Since you already know about the Methods provided by the DateTime Structure I am surprised that you did not get this. All you need to do is to use the AddMonths Method with your Start Date...
  5. Replies
    8
    Views
    214

    VS 2010 Re: Having issue trying to sort listbox.

    Hi and Welcome to the Forum,

    If I am not mistaken, what you have described is an old Bubble Sort algorithm. There are easier ways to Sort in VB.NET but assuming that this is something you need to...
  6. Re: very stuck on a program, need major help!

    Hi,

    This is where you need to expand on what you have already learnt. As you now know the Tag Property can hold any Type of Object and therefore does not just have to be a string. So, what you can...
  7. Re: very stuck on a program, need major help!

    Hi,

    You have got things a bit back to front through a misunderstanding of what you are doing. If we stick with the idea you have chosen at the moment then the first thing to understand is that...
  8. VS 2012 Re: Putting comma separated lines of text into array structures

    Hi and Welcome to the Forum.

    There are easier ways to do this sort of thing in VB.NET but since this is an assignment lets stick with what you have got. Your issue is to do with the following line...
  9. Replies
    8
    Views
    326

    Re: Help with StreamWriter

    Hi,

    Here are some other pointers for you:-

    .NET has a habit of swallowing exceptions in the Load event, particularly on 64 bit machines and therefore I expect your error is being masked in this...
  10. Re: Understanding ContainerControl.Dispose Method (Boolean) Correctly

    Hi Niya,

    Many thanks for that nice little bit of code to demonstrate things being Disposed within a Container Control. Now why didn’t I think of that to check my own code? You don’t need to answer...
  11. Understanding ContainerControl.Dispose Method (Boolean) Correctly

    Hi Guys ‘n’ Girls,

    A quick question of understanding if I may. I have created a Parent User Control which is shown in a Flow Layout Panel in the UI. When this Parent User Control is Created is...
  12. Replies
    1
    Views
    110

    Re: i'm making calculator

    Hi and welcome to the Forum,

    I am all for helping beginners to get started with programming but what you have asked us is a simple question about Mathematics. So, on paper, how would you...
  13. Replies
    14
    Views
    345

    VS 2013 Re: Loosly compare string

    Hi,

    I assume you got the LINQ question sorted so I will ignore that for the moment. With regards to your last post, don’t forget that the example I provided worked on the principle of 90% of files...
  14. Thread: Validation

    by IanRyder
    Replies
    20
    Views
    375

    Re: Validation

    Hi,

    There are various ways to do data validation of control information on a Form. When using Textboxes one of the most convenient ways is to code the Validating Event of the control. In this case...
  15. Replies
    14
    Views
    345

    VS 2013 Re: Loosly compare string

    Hi,

    Here is my contribution for what its worth. You are going to have to do some sort of File Name “Pattern Recognition” and work out a way to discern what is an “Ugly Duckling” and what is a...
  16. VS 2010 Re: Type of Object passed as argument

    Hi,

    You are talking about Generics in the .NET Framework which did not come across quite as clearly in your first post as it did your last post.

    Have a read though this to get you started:-
    ...
  17. Re: Streamreader - random line (quiz software)

    Hi,

    To achieve this you need to read the File into a Collection of some type, let’s say an Array, and then use the Random Class to generate a Random Index to be selected from that Array. You can...
  18. Re: how to round down integer value to nearest 25 in vb.net

    Hi,

    Just to clarify, the Math.Floor and Math.Round Methods deal with rounding either Decimal or Double values which is not the requirement of the OP here and as far as I am aware there is no...
  19. Re: how to round down integer value to nearest 25 in vb.net

    Hi,

    Here is a quick Function to do that using Integer Division:-

    Private Function IntFloor(ByVal originalValue As Integer, ByVal floorThreshold As Integer)
    Return (originalValue \...
  20. Replies
    16
    Views
    312

    VS 2008 Re: Find specific characters

    Hi,

    Just to expand on what has already been posted and using LINQ with Edgemeal’s String Variable, how about:-

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click...
  21. Re: Help needed about adding multiple parametes to sql command

    Hi,

    In principle, all that code looks fine, so what is not happening that is supposed to be happening? In other words, what are you actually trying to achieve?

    If you want to query different...
  22. Re: Accepting negative numbers in textbox help

    Hi,

    Since this code is in the TextChanged Event of a TextBox it would be the Minus sign on its own, signifying the start of a Negative Number, that is causing the current issue. The easy answer...
  23. VS 2010 Re: Adding multiple variables into another variable

    Hi and welcome to the Forum,

    Since you are using VS2010 I will give you some tips and examples using technologies and classes within VB.NET rather than trying to stick with old VB6 technologies.
    ...
  24. Thread: Toggle Mic

    by IanRyder
    Replies
    3
    Views
    162

    VS 2012 Re: Toggle Mic

    Hi and Welcome to the Forum,

    I have not tried this so I cannot confirm if this is exactly what you need but have a read through this to see if this what you are looking for:-

    Using P/Invoke to...
  25. Replies
    4
    Views
    214

    Re: COM Port Code Inquiry

    Hi,

    I am a bit confused for one. What “errors shown in brackets”?

    Anyway, this line:-


    Dim myImage As Image = PictureBox1

    Should be:-
  26. Re: Compare Data before storing in New Database from Last Value,Last15 Min value,last

    Hi,

    It sounds like you just need a couple of Database Query’s to get the information you are after. Here are two simple examples of SQL query’s (written in SQL Server) to give you an idea of what...
  27. Replies
    4
    Views
    234

    Re: Visual Basics Virgin. Help

    Hi,

    All you need to do here is to loop through the Items Collection of the ListBox and take the Last value of the Array after splitting each element in the list. (.paul. showed you how to split...
  28. VS 2013 Re: How to wait for an await method to cancel?

    Hi,

    I have faced a similar problem in the past and I solved this by thinking about this a bit differently. I found that trying to wait for the cancellation of a background thread could take a...
  29. Replies
    5
    Views
    224

    VS 2013 Re: Trouble with cmdText and double quotes

    Hi,

    Assuming that your variable “s” contains double or single quotes as part of the value you are searching for then you should really use Parameters with your OleDbCommand object to query your...
  30. VS 2008 Re: Sorting programmatically 3 times causes error in datagridview

    Hi,

    You are using the wrong Enumeration Type for your “jsort” variable. You are currently using the System.ComponentModel.ListSortDirection Enumeration when you should be using the...
  31. VS 2012 Re: VB.net 2012 Export List view to existing excel but not overwrite

    Hi,

    FOR you to understand why your routine is not working you need to take a step back to your first post to fully understand what it was that you "sourced from the net".

    Once you have done...
  32. Replies
    1
    Views
    218

    VS 2012 Re: The Big One!

    Hi,

    The thing to do here is to expand on what you have already done. In this case you should create a new Class to hold the relevant information for each student read from the file. For instance:-...
  33. VS 2012 Re: VB.net 2012 Export List view to existing excel but not overwrite

    Hi,

    Like I said I rarely use Excel with VB.NET but after a quick look around the internet about selecting the Last Empty Row in an Excel Spreadsheet I found this simple formula for selecting the...
  34. VS 2012 Re: VB.net 2012 Export List view to existing excel but not overwrite

    Hi,

    I have just tried your example since I do not do a lot with Excel but the one thing that stands out is that everything is added to the Excel Spreadsheet starting at cell "A1". Based on your...
  35. VS 2012 Re: How to set picturebox location in FlowLayoutPanel ?

    Hi,

    Just to add to what passel has already said, you cannot “set coordinates” of a control added to the FlowLayoutPanel (FLP) but one thing you can do is control the Index of a control added to...
  36. Re: How do I remove an item from a collection via listbox

    Hi,

    Rather than adding a List of items to a ListBox using its Add Method and then trying to keep the ListBox and its associated List synchronised I would suggest that you use a BindingList here as...
  37. Replies
    16
    Views
    364

    Re: mysql class connection confusion

    Hi,


    More efficient, Yes, since I have used Using Blocks with the Database Objects which are then Disposed off when they are finished with.


    No, but less lines in the code do make for easier...
  38. Replies
    16
    Views
    364

    Re: mysql class connection confusion

    Hi,

    Unfortunately you are making things a bit harder for yourself than you need to. The first thing to mention is that you should only ever open your Database Connection when you actually need to...
  39. VS 2013 Re: [RESOLVED] Need help making an image flicker when a file changes (like a hard dri

    Hi,

    Good to hear you got it working but I have one comment for you. The CreatPauseAsync function is still just that, a basic function, and as such, can still accept arguments as part of that...
  40. Replies
    2
    Views
    179

    Re: Reset a combo box

    Hi,

    The only way you can get that error is if you have NOT added any items to the ComboBox or you have NOT set the Datasource of the ComboBox.

    So, how have you populated the ComboBox since the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.