Search results for query: *

  • Users: InertiaM
  • Content: Threads
  • Order by date
  1. I

    That 'should know better' sensation

    How often do you look at some code that you have written, and wonder why it doesnt work? I mean, REALLY wonder why it doesnt work? You look at it, and realise that you know it's something you've done, but just cannot for the life of you work out why it isnt working. I have a new solution to...
  2. I

    Finding "First chance exceptions"

    I've been trying to eradicate all first chance exceptions, to ensure all errors are properly accounted for. However, when I close my program, I still have two First Chance exceptions :- As far as I knew, all my many threads are closed properly, but obviously not. I have tried to find the...
  3. I

    MenuStrip scrolling

    On my main form, I have a MenuStrip with 16 items. When the user drops one of the items down, and then scrolls left to right without actually clicking on an item, my DataGridView underneath does not get redrawn (the DGV has Paint overriden) and therefore still shows some of the now hidden menu...
  4. I

    Views / Replies count

    On a recent thread, there were 3 replies and 0 views. Surely every time there is a reply, the thread must have been viewed. JohnH was one of the users who replied. I know John is good, but to be able to reply without even viewing the question - that's superb :D
  5. I

    FYI Real life example of SQL Injection attack

    I know most of us frequently go on about using Parameters to avoid a SQL Injection attack, but I have never before found such a perfect real-life example. BBC News - Sites hit in massive web attack It's a lesson to us all :)
  6. I

    Modify "Try....Catch.... End Try"

    I have been using the Intellisense "Try...Catch...End Try" a lot recently, where I wished it also put in the Finally part. Is it possible to modify the standard Intellisense snippets?
  7. I

    Forum spam

    Is it me, or is there loads of spam in the forum that is 'hidden'? I used the Search function today (as I frequently do), but it showed loads of Visitor Messages in the results for users who have never posted. One example is user 'jorgealarcon'.
  8. I

    2005: Regions collapse, but dont expand?

    Have recently started using regions in a large project, so that it makes it quicker to page through. The more regions I put in, it seems that once the regions collapse, they will not expand again, no matter how many times I click on the Expand icon. The only workaround I have found is to set a...
  9. I

    GDI Matrix transformations

    I am drawing on the screen with Y direction as up the screen, rather than down, using the following code :- Private mYFlip As New Matrix(1, 0, 0, -1, 0, 0) With e.Graphics .PageUnit = GraphicsUnit.Millimeter .Transform = mYFlip 'drawing happens here End With...
  10. I

    UDP MultiCasting

    I am trying to send messages to multiple PCs using UDP MultiCasting. The code I am using is essentially the same as this UDP chat The problem I have is that I only ever seem to receive four bytes, and then nothing else unless the program is shut down. The firewall installed on the PCs shows...
  11. I

    PrintPreview without an installed printer

    I have access to several PCs, all running the same VB.NET project. 1 PC has a printer installed, the others do not. Sometimes, I would like to be able to preview the print output on the PCs without the printers installed. Does anyone know of a workaround to be able to run a PrintPreview, when...
  12. I

    Application hangs after period of time

    I deployed an application on a PC recently, and it 'hangs' after a period of time. Summary of the application is as follows :- Application has a single form. The form has a ToolStrip and nothing else. All the drawing on the form is done using GDI in the Paint event. It is also running...
  13. I

    Mirrored text

    I am trying to draw on the screen, with Y being positive from the bottom up - like a normal graph. Private mYFlip As New Matrix(1, 0, 0, -1, 0, 0) Private Sub frmMain_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint With e.Graphics...
  14. I

    Delegates

    I've only ever used delegates before when trying to update a ProgressBar etc. Unfortunately, I now have to write an application that communicates with a third party DLL written by a coder who has no knowledge of VB. Here's what I have so far:- Public Declare Function Optimise Lib...
  15. I

    Pattern recognition

    I am writing an application to take camera images and detect patterns within the image. I know there are lots of third party products out there to do this, but before we spend money on it, I wanted to see how difficult it is :rolleyes: So far I can take a coloured image, convert it to...
  16. I

    WndProc error

    Stripped down code :- Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) Select Case m.Msg Case WM_SYSCOMMAND Select Case Convert.ToInt32(m.WParam) Case Else MyBase.WndProc(m)...
  17. I

    ToolStripStatusLabel and threading

    I need to update a ToolStripStatusLabel from a different thread. As the TSSL has no invoke, I tried the following code :- Delegate Sub SetBarcodeInvoker(ByVal Barcode As String) Public Sub SetBarcodeText(ByVal Barcode As String) If StatusStrip1.InvokeRequired Then...
  18. I

    Question limiting NumericUpDown control

    I need to make a NumericUpDown control with extremely limited functionality. It should not possible for the user to type in the value - the only way it changes is to use the up and down buttons. I tried to make the standard control read-only, but it still accepts the cursor into the entry box...
  19. I

    GDI+ and mouse coordinates

    Is there a simple way to convert mouse coordinates based on the current Scale and Transform values? For example, if I do :- Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint With e.Graphics...
  20. I

    Split single rows into multiple rows

    Any quick ideas on how to write a query to split TYPE NAME QTY -------------------------- A PROD1 3 A PROD2 4 B PROD6 1 B PROD7 2 C PROD9 2 into TYPE NAME ---------------------- A...
Back
Top