dcsimg

Search:

Type: Posts; User: cicatrix

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. 4.0 [RESOLVED] Help optimising LINQ query is needed

    I've a class


    Class DeclInfo
    {
    public int Year {get; set;}
    public int Quarter {get; set;}
    public int CorrectionNumber {get; set;}
    // ...
    } // class DeclInfo
  2. Replies
    4
    Views
    1,063

    4.0 Re: Await with sync method.

    That's true, I haven't quite grasped this new feature.
    Basically, what I need is to call my sync method asyncronously.
    I have a sync method Foo(object param), what I need is to write an async...
  3. Replies
    4
    Views
    1,063

    4.0 Await with sync method.

    Hello, I'm trying to sort the things out with the new multithreading model using the await and async keywords.
    Now I have a project where I have a lengthly method that I'd preferred to call...
  4. Replies
    2
    Views
    407

    Re: Help fixing this error?

    From what I can see there's nothing wrong with your code provided the full name should be displayed in txtFirstName.
    You use this line twice for some reason:

    txtFirstName.Text = FullName
    but it...
  5. Replies
    4
    Views
    865

    VS 2010 Re: Help making vb app to android

    Man, the Windows.Forms namespace has that 'Windows' part which means that it is working with MS Windows application programming interface.
    I'm not an expert in Android OS architecture, but I'm...
  6. Replies
    4
    Views
    854

    VS 2012 Re: TreeView Drag&Drop nodes

    Got it working, even though I still don't understand why this was necessary. All I needed was to add the DragEnter event handler:


    Private Sub TreeView1_DragEnter(sender As Object, e As...
  7. Replies
    4
    Views
    854

    VS 2012 Re: TreeView Drag&Drop nodes

    This one works, but I need to drag nodes within a single Treeview. I can't understand why this isn't working.
  8. Replies
    4
    Views
    854

    VS 2012 [RESOLVED] TreeView Drag&Drop nodes

    Please, I'm on the verge of pulling my hair out. What am I doing wrong?
    Basically I need to be able to drag nodes between different parents within a treeview.
    The treeview simply does not acctept...
  9. Replies
    2
    Views
    1,500

    VS 2010 Re: Casting IntPtr to COM Interface

    I looked, there appears to be 2 candidates:
    GetTypedObjectForIUnknown and GetObjectForIUnknown, will try both. Thank you.
  10. Replies
    2
    Views
    1,500

    VS 2010 Casting IntPtr to COM Interface

    Hello, can anyone tell me how to cast IntPtr to a COM Interface?

    I'm obtaining a pointer to an IShellFolder interface using SHGetDesktopFolder:



    Dim sfiRoot As IntPtr = IntPtr.Zero;
    Dim...
  11. Replies
    21
    Views
    1,726

    VS 2010 Re: [RESOLVED] Get rid of these results

    Here's what I remember from my school days:
    if the sum of all digits in a number divides by 3 without a remainder the whole number is divisible by 3 as well
    same thing with division by 9 - you can...
  12. Replies
    21
    Views
    1,726

    VS 2010 Re: Get rid of these results

    boops boops is right - 1/3 is perfectly rational whereas SQRT(2) is irrational.
  13. Replies
    1
    Views
    456

    Re: Copy values from one array into another

    Sounds like a homework. So, you'll need a loop (or two loops), two arrays and one condition.


    Start a loop iterating along the 'x axis' of the array
    Start a loop iterating along the 'y axis'...
  14. Replies
    21
    Views
    1,726

    VS 2010 Re: Get rid of these results

    I still think that this will be nearly 100% precise:


    Dim i As Decimal
    Dim j As Decimal
    Dim result As Decimal
    For i = 1 To 10
    For j = 1 To 10
    result = i / j
    If (result -...
  15. Replies
    3
    Views
    559

    VS 2010 Re: CA root certificate

    Keep in mind also, that there is a difference between an SSL certificate and a Code Signing certificate.
  16. Replies
    21
    Views
    1,726

    VS 2010 Re: Get rid of these results

    You can cheat a little. You can check if the string returned by .ToString() method is greater than a certain threshold (say, 4 figures after the decimal point) and cast such result out. This won't...
  17. Replies
    21
    Views
    1,726

    VS 2010 Re: Get rid of these results

    Take a look at this arcicle.
  18. Replies
    3
    Views
    559

    VS 2010 Re: CA root certificate

    You can issue your own root certificate and the difficult part is to make your end-users add this certificate to trusted lists.

    If you want a universally accepted one then yes, you pay for them....
  19. VS 2010 Re: How to find controls in MenuStrip1

    Would it appear new to you when I say that a control can have no name whatsoever?
  20. VS 2010 Re: How to find controls in MenuStrip1

    Your menu items are not in the .Controls collection of your form. They belong to the .Controls collection of your menustrip.
    You should iterate through your MenuStrip.Controls collection to get your...
  21. Replies
    17
    Views
    1,392

    VS 2008 Re: How to convert to parametrized query fashion

    Here's an example (I took it directly from one of my projects):

    Usage:

    ' you substitute actual values with parameter names in your sql command text (paramid):
    Dim sqltext As String = "Select...
  22. Re: Combo Box to Database beginner

    If your combobox is databound, set its DisplayMember property to "Code"
    to databind your combobox you should set its DataSource property to the same one you use for your datagridview.
  23. Replies
    5
    Views
    1,935

    VS 2012 Re: run as administrator without prompt

    The whole purpose of the UAC is to prevent that from happenning. :D
  24. VS 2008 Re: How to receive data from barcode scanner connected with serial port ?

    There is development kit:
    http://www.honeywellaidc.com/en-AP/resources/Pages/download.aspx?pid=IT4600
  25. VS 2008 Re: How to receive data from barcode scanner connected with serial port ?

    Does the scanner have any documentation?
    At least, tell its model number and manufacturer
  26. Re: Application hangs in memory when run on Windows Server

    What your application does?
    Do you use any unmanaged resources (COM components)?
    Do you use multithreading?

    This is an overkill:


    If you have a windowed app just Me.Close() is usually enough.
  27. Re: Building a filter query with end user choices

    Suppose you have several conditions to consider, for the sake of generality let's call them Condition1, Condition2 and Condition 3
    Your query will be as such:
    ... WHERE Condition1 LogicOperator1...
  28. Replies
    4
    Views
    571

    Re: vb.net automated aplication

    The best way to do this is rather simple and is not related to programming whatsoever - use Windows Task Manager (WTM) servuce whish is designed EXACTLY for this purpose.
    Of course you can build an...
  29. Replies
    10
    Views
    1,271

    Re: Syntax Error in Insert statement

    This is very simply to check out - just add an explicitly created InsertCommand and check. I am maybe paranoic but I don't trust anything that is 'automatically created' :D
  30. Replies
    10
    Views
    1,271

    Re: Syntax Error in Insert statement

    MSDN about InsertCommand:
    http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.insertcommand(v=vs.110).aspx

    During Update, if this property is not set and primary key...
  31. Replies
    10
    Views
    954

    VS 2010 Re: Server Processing

    You just create a class that handles the interaction with a server. Then you pass the information the user had entered to this class, it sends it to server and then receives its reaction.
    This way...
  32. Replies
    10
    Views
    1,271

    Re: Syntax Error in Insert statement

    This is documented behavior. Most often people use data adapters just for selecting rows. That's why the constructor overload has the select command. Other commands should be added manually.
  33. Replies
    10
    Views
    1,271

    Re: Syntax Error in Insert statement

    By default, when you initialize a data adapter you provide only SELECT command. You must also provide UPDATE, INSERT and DELETE commands if you want the adapter to update, insert or delete rows....
  34. Replies
    10
    Views
    954

    VS 2010 Re: Server Processing

    It's a question of design. Depending on your need the information exchange can be fully automated and require no user attention. This way you won't need another form, just a class that handles it....
  35. Replies
    10
    Views
    954

    VS 2010 Re: Server Processing

    You will obviously need to modify your client part to make it possible for it to communicate with the server and receive the necessary information from the server-side. All other elements can remain...
  36. Replies
    10
    Views
    954

    VS 2010 Re: Server Processing

    Then you should build a server application that runs on the server and waits for incoming connections (TCP/IP or http). The whole concept of a client-server app is too large to be covered in a single...
  37. VS 2008 Re: unable to display records in listview properly

    You created a listviewitem, but it doesn't belong to your listview - as if you build a car without wheels and then you create wheels. In order to make it a whole car you must install them on your...
  38. Re: Fit the text inside a TextBox in VB.net windows forms

    See your TextFont.Height property for height.

    And if you want PRECISE measurement use MeasureCharacterRanges method instead of MeasureString.
    You might also be interested in playing with...
  39. VS 2008 Re: unable to display records in listview properly

    For j As Integer = 1 To ds.Tables(0).Rows(i).ItemArray.Length - 1
  40. VS 2008 Re: unable to display records in listview properly

    Try this:


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    con.Open()

    Dim da As New SqlDataAdapter("SELECT...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width