Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    4
    Views
    204

    VS 2010 Re: Print Database Content

    Hi,



    Well you would wouldn’t you? Read your own code again to see what is happening:-

    1) You create a For Loop to repeat 10 times.
    2) On the FIRST Iteration of the For Loop you read your...
  2. Replies
    13
    Views
    254

    Re: Overload resolution failed

    Hi,

    When creating a New Font there is only 1 Overload that accepts an Actual existing Font as its first Argument. This overload then only accepts a total of 2 Arguments being a Font and a Font...
  3. Replies
    17
    Views
    406

    Re: Gradient Brushes

    Hi,

    I am not great at fancy Graphics, and I am sure there must be a better way to do this, but with a bit of mathematics I came up with this:-

    Private Sub PictureBox1_Paint(sender As Object, e...
  4. Replies
    2
    Views
    183

    Re: Database and search

    Hi,


    You can’t, this is the Maximum number of columns that can be added to a single table in Access. Even if you did have a table with this many Columns in it then I would suggest that you need...
  5. Replies
    14
    Views
    300

    Re: Tips For Visual Basic/Programming Student

    Hi,

    There are loads of tips regarding techniques and best practice principles that we could give you so let me start the ball rolling, jmcilhinney beat me to it, with these two:-

    1) Turn Option...
  6. Replies
    1
    Views
    137

    Re: Raise event from another class

    Hi and welcome to the Forum,

    If I understand your requirements correctly you have some Code on a Parent Form (Class) that you want to run from a Child Form (Class) after that Child form has been...
  7. Replies
    4
    Views
    204

    VS 2010 Re: Print Database Content

    Hi,

    I do a lot of work with the PrintDocument Control and in the very simplest of terms Printing with this control is all about using mathematics to calculate the Region in which you want to...
  8. Re: Paste in DataGridView from clipboard?

    Hi,

    Since you have not provided any knowledge of how the Numbers are added to the Clipboard and in addition to that how you are adding the items to the DataGridView then all I can provide is an...
  9. Replies
    2
    Views
    206

    VS 2012 Re: How to open file from listbox?

    Hi and Welcome to the Forum.

    To answer your second question first you would just alter the file pattern you use with the GetFiles Method. Here is another version of the code you have so far:-
    ...
  10. Replies
    2
    Views
    138

    VS 2010 Re: OpenFileDialog first file listed

    Hi,

    You can do this by querying the Initial Directory that you want the OpenFileDialog Component to start in using the IO.Directory and IO.Path Classes. Have a play with this:-

    Using...
  11. Replies
    18
    Views
    538

    Re: Explaination of this For Next Statement?

    LOL, Well done passel.

    I always check for Nothing before using any Object so it never occurred to me that CInt(Nothing) would return Zero.

    BTW, apologies that I missed you had mentioned this...
  12. Replies
    1
    Views
    103

    Re: DB Query to Listview Error

    Hi,

    It sounds like you have not got the View Property of the ListView set correctly so check that Property and make sure it is set to “Details”

    Hope that helps.

    Cheers,

    Ian
  13. Replies
    18
    Views
    538

    Re: Explaination of this For Next Statement?

    Hi,

    Here is some more to add.

    Since you are not telling us what the error is that you are having I am going to make a guess. This is where you should always be as specific as possible when...
  14. Thread: KeyDown issue

    by IanRyder
    Replies
    4
    Views
    176

    VS 2010 Re: KeyDown issue

    Hi again,

    As far as I am aware there are no predefined methods available to do this (someone could prove me wrong here?) so you would need to come up with something for yourself. Here is a quick...
  15. VS 2012 Re: Help Finding Specific Numbers and Counting the Number of Time They Appear

    Hi and welcome to the Forum,

    I see that dday9 has just beat me to this and you may find it a lot easier to stick with that example but I was about to say:-

    You would typically do this sort of...
  16. Replies
    2
    Views
    214

    VS 2010 Re: Simple IP Controller

    Hi,

    I have not tried this but a simple Google Search, which you should always do for yourself, resulted in this as the top result:-

    Remote Shutdown in VB.NET 2003 and C#.NET 2008

    Over to...
  17. Thread: KeyDown issue

    by IanRyder
    Replies
    4
    Views
    176

    VS 2010 Re: KeyDown issue

    Hi,

    You need to check the Modifiers Property of the KeyEventArgs Class. i.e:-

    If e.KeyCode = Keys.F2 AndAlso e.Modifiers = Nothing Then
    MsgBox("Hello")
    End If

    Hope that helps.
  18. VS 2013 Re: Really need help how to stop all processes in listbox in vb.net

    Hi,

    You start with the value of i being 1 and in the first block of code you have Do … While i > 1 which you increment i by 1 with each iteration of the loop. That means that i will always be...
  19. VS 2013 Re: Search the input text for the provided character counting the number of times it

    Hi,

    You have got things a bit back to front and upside down there so trying to keep as close to your original code as possible here are a few tips for you:-

    Before you start your Do Loop to...
  20. VS 2013 Re: RichTextBox Removing Spaces from Text but ignoring text in Parentheses

    Hi,

    I am sure there are a few ways to do this but one way would be to split the string by the parenthesis and then remove the spaces or add the parenthesis back in alternate rows of the Array....
  21. Replies
    18
    Views
    538

    Re: Explaination of this For Next Statement?

    Yep! That would be correct.

    Ian
  22. Replies
    18
    Views
    538

    Re: Explaination of this For Next Statement?

    Hi,

    If I remember rightly from your other posts you have 36 Buttons on a form representing Airline Seats and you have a two dimensional array, something like SomeArray(X,Y), to hold the...
  23. Replies
    4
    Views
    220

    4.0 Re: 17th of current month and 17 of next

    Hi,

    It looks like you are working in C# but in VB a lot less “messy” solution could be:-

    Dim startDate As Date = New Date(Now.Year, Now.Month, 20)
    Dim endDate As Date = startDate.AddMonths(1)...
  24. Replies
    8
    Views
    380

    VS 2013 Re: Problem sending SSL email???

    Hi,

    I have had this in the past and I can tell you that Port 465 is wrong. If I remember rightly Port 465 is correct for Outlook but for VB.NET you need to use port 587.

    Hope that helps.
    ...
  25. Replies
    2
    Views
    193

    Re: remove button is not working

    Hi,

    Your issue is not actually your Remove Button Code but actually the resulting consequence of Removing an Item from your ListBox.

    As you know when you select an Item in a ListBox the...
  26. Re: Another problem with extended ASCII characters.

    Hi,

    You don’t need to spend hours working this out. The simple answer is to use the IO.File Class and pass the Encoding you need for the file. Try these two examples:-

    Private Sub...
  27. Replies
    8
    Views
    218

    VS 2012 Re: Remove multiple items from Playlist ?

    Hi,

    I do apologise, but since you have not done any of that which I asked about then I am not able to help you any further.

    Good luck with solving your problem.

    Cheers,

    Ian
  28. VS 2013 Re: Search a list box while typing in a text box but do not delete from listbox1 ite

    Hi,

    As I said, I answered to first question and the first question only. If this does not work then the code that you added to the For Loop is wrong. What else would you like me to say?

    Cheers,...
  29. Replies
    8
    Views
    218

    VS 2012 Re: Remove multiple items from Playlist ?

    OK,

    So what Version of the Framework are you using and are you sure that you have changed your code to use the SelectedIndices collection?

    If you have got all this right and it still does not...
  30. VS 2013 Re: Search a list box while typing in a text box but do not delete from listbox1 ite

    Hi,

    Since each Thread should be a single question I will start by answering the First Question. That being:-



    This is due to the way that you are iterating through the ListBox to remove...
  31. Replies
    8
    Views
    218

    VS 2012 Re: Remove multiple items from Playlist ?

    Hi,

    The Cast Method was introduced with version 3.5 of the .NET Framework so please do check the version of the .NET Framework that you are targeting in your project.

    Cheers,

    Ian
  32. Replies
    8
    Views
    218

    VS 2012 Re: Remove multiple items from Playlist ?

    Hi,

    Since you add each item to the mediaList and the Listbox at the same time you have synchronised the Index of the mediaList to the Index of the Item in the Listbox which you can now use to...
  33. Replies
    3
    Views
    258

    Re: Join Statement

    Hi,

    Try this:-

    SELECT DerivedTableB.DiaryID, dbo.TableA.MedicalCodeID FROM
    (SELECT DiaryID, CASE WHEN EmisCode LIKE 'EMISATT%' THEN 'EMISATT' ELSE EmisCode END AS TrueEmisCode, RealCode
    ...
  34. VS 2013 Re: HELP!!! System.InvalidOperationException' occurred !!! I can't fix it for 4 hours

    Hi,

    It’s these bits that are wrong:-

    Public Class Form1

    Dim decPrice As Decimal = CDec(txtPrice.Text)
    Dim intQuantity As Integer = CInt(txtQuantity.Text)
    Dim decTotal As Decimal =...
  35. Re: Determine the index position of button control.

    Hi,

    One option is to create your own Index at the point that you create the Button Controls and store that Index in the Button’s Tag Property. Have a look at this:-

    Private Sub...
  36. Replies
    2
    Views
    219

    Re: Access tick box linking with VB Form

    Hi,

    If the data table column in Access is a Checkbox then the underlying column type is a Boolean (Yes/No, True/False). Therefore the simple answer to your question is “SomeField = False”.

    Hope...
  37. Contest 8, Roman Numeral Converter - IanRyder

    Hi,

    Here's my Saturday Morning Play at this Competition.

    Have fun.

    Cheers,

    Ian
  38. Re: serialize object/expandoobject/dynamicobject/anonymous type object to XML

    Hi,

    You need to look into Using Generics in the .NET Framework. Generics allow you pass different types to a Routine and then deal with them as per the Type that was passed. As a quick Example, I...
  39. Replies
    14
    Views
    277

    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...
  40. Replies
    68
    Views
    1,489

    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",...
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.