Search:

Type: Posts; User: Tinbeard

Page 1 of 10 1 2 3 4

Search: Search took 0.61 seconds.

  1. Replies
    10
    Views
    5,221

    Re: VS2012 Press & Hold for Right Click.

    Thanks for the help unfortunately if I prevent the MyBase.Wnproc(m) from executing with the boolean flag, the form does not load and I get the folowing exception

    'An unhandled exception of type...
  2. Replies
    10
    Views
    5,221

    Re: VS2012 Press & Hold for Right Click.

    OK need a little advice on this, I've had a few goes at it and done a fair bit of reading but I must be missing something as I can't seem to disable the press and hold function.

    Here are the...
  3. Replies
    10
    Views
    5,221

    Re: VS2012 Press & Hold for Right Click.

    Looks like the answer is to stop the window receiving the event using this method.

    http://msdn.microsoft.com/en-gb/library/windows/desktop/bb969148%28v=vs.85%29.aspx

    It steps beyond my comfort...
  4. Replies
    10
    Views
    5,221

    Re: VS2012 Press & Hold for Right Click.

    Thanks for your reply, what you are saying regarding the mouse down event does make sense, I can however get it to work by tapping the button quickly then holding it down and the mousedown code...
  5. Replies
    10
    Views
    5,221

    VS2012 Press & Hold for Right Click.

    Hi,

    I've created a win forms application that is designed to run on a windows 8 tablet, however I have one issue that I cannot seem to resolve.

    The application allows the users to move remote...
  6. Replies
    2
    Views
    19,771

    Re: Chart X Axis Labels [VS 2010]

    Sorted it out, for future reference I needed to use the following.


    myChart.ChartAreas("TimeChartArea").AxisX.Interval = 1
    myChart.ChartAreas("TimeChartArea").AxisX.IntervalType =...
  7. Replies
    2
    Views
    19,771

    [RESOLVED] Chart X Axis Labels [VS 2010]

    Hi,

    I'm seeing a strange problem with the labels on the X axis of my charts.

    I've setup two chart areas and aligned them (which displays fine) and the user can manipulate the chart by...
  8. Re: [RESOLVED] Large SQL Database, how best to read it.

    Hi,

    I've now re written the application so that all the grouping and counting is done by the SQL server and the graph is now more or less instant :D

    Thanks to you all :thumb:
  9. Re: Large SQL Database, how best to read it.

    Hi,

    Looks like the SQL query is relatively fast around 10 seconds, the major bottle neck seems to be the dataManipulator operation.

    I'll re write the application so the counting and grouping...
  10. Re: Large SQL Database, how best to read it.

    Hi,

    Sorry for not being clear, the query returned 240,000 rows and the two columns I'm getting via the select statement are an eventID and a Created Time.

    I'm then grouping these using the...
  11. Re: Large SQL Database, how best to read it.

    Hi,

    I''m using a select statement as I only need to grab a couple of columns from the database table but there are lots of rows :sick:

    I recoded the application today to use the SqlDataReader...
  12. Re: Large SQL Database, how best to read it.

    Thanks for the replies and tips.

    I'm only reading from the database there's never going to be any writing back to it so I'll give the reader a go and see what sort of difference it makes.

    Also...
  13. [RESOLVED] Large SQL Database, how best to read it.

    Hi,

    Been a long time since I fired up Visual Studio or posted here but I've got the bug again.

    I'm currently writing a reporting application and some of the queries I need to run will return...
  14. Replies
    9
    Views
    843

    Re: [2008] Me.Visible mucking up?

    Just put me.visible inside the forms 'Shown' event, think the reason it won't work in the load event is that the form is still being created.
  15. Replies
    12
    Views
    881

    Re: How to get the key pressed and Dim it?

    Use the KeyPress event,that will give you access to the KeyChar of the pressed key, then its a very simple matter to store this and do what ever you want with it.


    Private strKeypress As String
    ...
  16. Replies
    2
    Views
    469

    [2008] Wait for keyboard input

    Just a quick question, what is the best way to wait for keyboard input in an application.

    For background this is a morse code trainer application and I want it to pause after the morse is sounded...
  17. Replies
    22
    Views
    1,135

    Re: [2008] Update textbox?

    Your trying to assign a system drawing point to a textbox, this won't work.
    What are you trying to do here ?

    btw Welcome to the forum :)
  18. Re: [2008] Database help needed - new to 2008

    Try changing your sub to use 'ByVal' instead of 'ByRef'.
  19. Re: [2005] mdf file only keeps data when running???

    hmm......... something strange going on there then, the copy if newer prevents a fresh copy of the database being copied to the bin directory which would result in previously added data being lost.
    ...
  20. Re: [2005] mdf file only keeps data when running???

    In the database properties 'Copy to Output' property you need to select the 'Copy if newer' option, this will maintain the database in the bin directory complete with your data.
  21. Replies
    5
    Views
    614

    Re: [2008] Need help

    To simplify things you could replace your select case...

    For i = 0 To 4
    Select Case digit(i)
    'number 0
    Case "0"
    If txt1.Text =...
  22. Replies
    5
    Views
    614

    Re: [2008] Need help

    Look at your select case and think what will happen on each one ..........


    Given the values assigned to the digit array.


    digit(0) = txt1.Text
    digit(1) = txt1.text
    ...
  23. Replies
    5
    Views
    614

    Re: [2008] Need help

    Well just looking at it briefly every value of the digit array will always be the same because your assigning txt1.text to each element.
  24. Replies
    11
    Views
    1,008

    Re: I don't know why...its messed up

    You need to convert the textbox 'Strings' to 'Integers' then do the evaluation.
  25. Replies
    5
    Views
    1,143

    Re: Create a rectangle-drawing application.

    Fairly simple to modify it to resize the rectangle smaller if the mouse is dragged back......



    Dim ptStart As Point
    Dim ptCurr As Point
    'rectangle to hold current rectangle
    Dim...
  26. Replies
    5
    Views
    1,143

    Re: Create a rectangle-drawing application.

    This will give you a starter, it's fairly basic and only supports dragging from top left to bottom right but it shows the general principals.


    Dim ptCurr As Point
    'rectangle to hold current...
  27. Replies
    2
    Views
    613

    Re: [2005] Open Richtext format

    What happens if you just pass the path ?


    RTB.LoadFile(sFilePath)
  28. Replies
    6
    Views
    1,158

    Re: [2005] Split Container question

    You can paint the splitter bar yourself to make it always visible.


    Private Sub SplitContainer1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles...
  29. Replies
    3
    Views
    1,088

    Re: [2008] Webcam Control.

    Thanks JMC :thumb:
  30. Replies
    3
    Views
    1,088

    Re: [2008] Webcam Control.

    Think I may have found part of the answer but this raises another question, how do I declare this structure in vb.net ?

    http://msdn2.microsoft.com/en-gb/library/ms707173(VS.85).aspx
  31. Replies
    3
    Views
    1,088

    [RESOLVED] [2008] Webcam Control.

    Just a quick question, does anybody know how to invoke and display a web cams settings page from within an application.

    I can display and record the video but I am looking to control frame rate...
  32. Replies
    5
    Views
    793

    Re: [2008] Help updating some things

    If your only saving the state of four check boxes it would be pretty straightforward to use My.Settings instead on an ini file.
  33. Re: help with if statement using radio buttons

    Welcome to the forum :wave:


    You need to change 'Enabled' to 'Checked' .....


    if radiobutton1.checked = true then
    label1.text= "Correct"
    Else if radiobutton2.checked = true then...
  34. Replies
    2
    Views
    666

    Re: [2005] Current culture.

    Try this to get your decimal seperator..


    MessageBox.Show(Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyDecimalSeparator.ToString)
  35. Replies
    4
    Views
    669

    Re: [02/03] insert "

    I could be wrong but t think Access uses a '?' to represent a parameter..


    Insert into table1 (field1) values (?)

    Might be helpful if you post the error details too.
  36. Replies
    14
    Views
    1,038

    Re: [2005] how store information

    You should have this in intellisense.....

    60354
  37. Re: [2005] Copying Objects W/O Pointers

    Maybe I'm missing something here, but if I add a watch to both rectangle1 and rectangle2 after I modify rectangle2.x the modified value only shows up in rectangle2, rectangle1 remains unchanged.
    ...
  38. Re: [2005] Copying Objects W/O Pointers

    It's pretty straight forward to do, I hope this example is easy to follow...


    Dim rectangle1 As New Rectangle(50, 50, 100, 100)
    Dim rectangle2 As Rectangle

    Public Sub ModifyObject()
    ...
  39. Re: [2005] Can a Listbox be made to return a DialogResult?

    Yes you can, just set the dialogResult you want in the SelectedIndexChanged event...


    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  40. Replies
    14
    Views
    1,038

    Re: [2005] how store information

    You need to select the 'Settings' tab from the project property page and configure your settings there before you use them in your application.

    properties --> Settings
Results 1 to 40 of 377
Page 1 of 10 1 2 3 4



Click Here to Expand Forum to Full Width