Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.29 seconds.

  1. Replies
    3
    Views
    107

    Re: Select case with and condition

    You can't. Select Case statements aren't magic. Just use an If statement.
  2. Replies
    1
    Views
    56

    5.0 Re: XML Literals in C#

    There are no XML literals in C# so there is no conversion. You'll just have to use a string.
  3. VS 2010 Re: Filter binding source by date and string

    I already told you how.
  4. VS 2010 Re: Filter binding source by date and string

    Think about what the Filter contains. It's a condition that must be True for an item for that item to be included. How do you usually combine Boolean expressions? With AND and OR operators. This...
  5. Replies
    4
    Views
    111

    Re: Get two Row indexes in dgv

    Use the Thread Tools menu above your first post.
  6. Replies
    4
    Views
    111

    Re: Get two Row indexes in dgv

    You can get the index of all the rows in the SelectedRows collection. If you know the index of the last row selected then you can easily tell whether that's the top or bottom row in the selection.
  7. Re: Put New Line in front of certain words.

    As you haven't bothered to tell us, I'm just going to assume that you simply have that text in a String. In that case, the answer to your question is simple call to String.Replace:
    myString =...
  8. Replies
    10
    Views
    180

    VS 2010 Re: vb 2010 and xml database

    If a NullReferenceException is being thrown on that line then obviously you're trying to use a null reference. Which reference on that line is Nothing? There aren't many references being used so it...
  9. Re: Scan every line and fix it!

    myTextBox.Lines = myTextBox.Lines.Select(Function(s) s.TrimStart()).ToArray()
  10. Re: Finding Minimum or Maximum in an Array

    Your results aren't really meaningful. In the second and third cases you are sorting once and then retrieving single elements/items multiple times whereas Min and Max have to traverse the entire...
  11. Replies
    12
    Views
    196

    Re: Center String

    If I recall correctly, the StringFormat has a property for the vertical alignment as well. You can read the documentation to find out what that property is, which you really should already have done.
  12. Replies
    4
    Views
    122

    Re: Visualbasic program plz help ;>

    We're not here to write your code for you. If you don't know how to write VB apps then read a few tutorials. Then have a go at what you want to do and come back when you have a specific issue. ...
  13. Re: Finding Minimum or Maximum in an Array

    If you're using .NET 3.5 or later then you can simply call the Min and Max methods on an array to get the lowest and highest values.

    If you can't or don't want to use those then you would start by...
  14. Replies
    7
    Views
    150

    VS 2013 Re: MDI children forms loading slowly

    Quite.You should be using a Stopwatch to time each step, breaking the steps into smaller and smaller parts until you find the bottleneck. You can then look at testing just the task performed by that...
  15. Replies
    10
    Views
    180

    VS 2010 Re: vb 2010 and xml database

    Um...
  16. Re: Unable to log on after installing Sql Server 2008 Express on client computer

    It took me 10 seconds to find this with a web search using the keywords enable remote connections sql server:

    http://www.sophos.com/en-us/support/knowledgebase/118473.aspx

    Not sure whether the...
  17. Re: Collection was modified...or not

    I would suggest that that is something that should be in your method documentation and conveyed to the developer via Intellisense. They might not look but then that's their fault. The use of ByRef...
  18. Replies
    12
    Views
    196

    Re: Center String

    Think about it. If you're passing a RectangleF to DrawString then it can be whatever width you want.
  19. Replies
    7
    Views
    151

    VS 2010 Re: Copy Header DataGridView

    Um, perhaps you should have a second read of what I posted.
  20. Replies
    7
    Views
    151

    VS 2010 Re: Copy Header DataGridView

    There's probably another way too but you could first loop through the Columns of the grid and get the HeaderCell or HeaderText of each column.
  21. Replies
    1
    Views
    66

    Re: Help/ Advice

    My genuine advice would be to look first and ask questions later. It would take seconds to find the information you seek with a web search.
    ...
  22. Replies
    7
    Views
    150

    VS 2013 Re: MDI children forms loading slowly

    How are the grids populated? Are you using a complex query that might be being cached?
  23. Replies
    1
    Views
    69

    Re: CR and VS 2012

    Have you referenced the appropriate CR assembly(ies)? If you don't know what that means, follow the Blog link in my signature below and check out my post on Assemblies & Namespaces?
  24. Replies
    7
    Views
    150

    VS 2013 Re: MDI children forms loading slowly

    When you display a form by calling its Show method, as you must with MDI child forms, the form gets disposed when you close it. As such, you would have to be creating a new instance each time. Why...
  25. Replies
    2
    Views
    103

    Re: how to manage dataset with MySql/BSD

    There's presumably a bit of a language barrier but I'm afraid that it's unclear exactly what you're asking for. Can you try rephrasing your question to make it a bit clearer?

    In general, if you...
  26. Replies
    2
    Views
    96

    VS 2010 Re: Form Designer Error

    Something is obviously corrupt somewhere but working out exactly what e time-consuming and possibly fruitless in the end anyway. What I do when I encounter issues like this is add another project to...
  27. Re: Collection was modified...or not

    I'd have to look more closely at the implementation of the Dictionary class to see exactly what was going on but my example shows that using ByRef in that situation causes the value for the specified...
  28. Re: Collection was modified...or not

    What you're seeing is exactly what you should see because the collection IS being modified. The ByRef causes the object that you pass into AlterStuff to be assigned back to the value of the same key...
  29. Re: Adding calculated columns to a SQL View export to excel

    No there is not. Either set Expression of the underlying DataColumn or perform the calculation manually.
  30. VS 2012 Re: Dynamic SQL how to cater for IN syntax

    Here are some extension methods that you can use as is or make use of the their principles:public static class ObjectExtensions
    {
    public static bool IsEnumerable(this object source)
    {
    ...
  31. Replies
    10
    Views
    180

    VS 2010 Re: vb 2010 and xml database

    Nope. That's occurring because you're trying to access a member of an object that doesn't exist. Again, details!? What line does the exception get thrown on? What reference on that line is...
  32. Replies
    10
    Views
    180

    VS 2010 Re: vb 2010 and xml database

    Given that we have no idea what that CreateXML method does or what the error is, we'd have to be psychic to have any idea what the cause is. Try providing all the relevant information and then we'll...
  33. VS 2012 Re: Dynamic SQL how to cater for IN syntax

    I can't help thinking that anything that doesn't insert values into SQL code using parameters is deficient from the start. That said, String.Join is a good option in a case like that but, assuming...
  34. Replies
    12
    Views
    196

    Re: Center String

    You don't have to care about the length of the string. Call the overload of DrawString that takes a RectangleF and StringFormat as arguments. Use a RectangleF that is the full width of the...
  35. Re: looping through all richtextbox controls in my form controls

    That code would not compile with Option Strict On because your cControl variable will be type Object and Object has no SelectionProtected property. If you were going to do it without OfType then...
  36. Replies
    3
    Views
    115

    Re: Message System in VS 2012 (C#)

    Use a Timer with an Interval of 10 * 60 * 1000 and Start it when the list gets completed.
  37. Replies
    11
    Views
    183

    Re: How to save a font to the program?

    You've posted a screen shot of some code that includes a compilation error and then you've posted some different code. Are we supposed to guess which one you're actually using?
  38. Replies
    11
    Views
    183

    Re: How to save a font to the program?

    You haven't shown us anything to do with Labels so far. As far as we know, there is no such code and that's the issue. Show us the exact code you're using now to create the Font object and change...
  39. Replies
    3
    Views
    93

    Re: VB.NET + VB6 + Windows 8 (UAC On)

    I would have thought that you could simply do this:
    Process.Start(OutputPDF)Did you try that first up? You might also want to call WaitForInputIdle on the Process, just to be sure that exiting the...
  40. Re: Unable to log on after installing Sql Server 2008 Express on client computer

    No, ModPrimaryServer is the server/instance name. In SQL Server, logins exist at the instance level and are the entities that have passwords. You specify a login name and password to login to an...
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.