Search results for query: *

  • Users: juhah
  • Order by date
  1. J

    Question How to bypass Proxy

    I'm writing a windows application that uses WebService calls. However some of our clients use Proxy server. I need to bypass the proxy somehow in order to WebService calls to work. How do I do that? Can I do it directly writing a piece of code or do I have to update app.config somehow? I can...
  2. J

    Question How to draw rubberband line fast?

    Thanks for the tips! I still don't get perfect response, but I think it's the best WinForms can do. Invalidating the picturebox with narrowed area gives a small boost indeed, but not very noticable. However it's more than sufficient for the software our client has requested, so I think using...
  3. J

    Question How to draw rubberband line fast?

    Now, this is a very basic problem that has been bugged me in many projects and I haven't found an answer. How to draw a rubberband line to a picturebox or panel that follows the mouse in real-time, when it has a background image inserted to it? In VB6 there was the simple Line-method that did...
  4. J

    Reading EMF-files

    Hello there, Yes I fixed the problem. Actually the only problem was that the FileGet function couldn't read data into arrays properly. In my case the data in the file was just certain length of strings, integers, doubles and so on. So that means you can actually read the data piece by piece...
  5. J

    Question Digital filter

    My software reads analog input signal from NI device. Is there any way to filter the values, for example using some DSP module written for VB? The signal should be filtered off above 50 Hz. Right now I don't have time to write any DSP functionality myself, so it would be great if there was some...
  6. J

    Question Listbox faster method for selecting all

    This solved the problem, thanks a lot! :) I had to use Int32 data type in the declaration since UInt16 wasn't supported.
  7. J

    Question Listbox faster method for selecting all

    I have a listbox control that has a selection mode "MultiSimple" (I've also tried MultiExtended). I also have a button that uses this code to select all the items in the list: Dim i As Integer For i = 0 To ListBox1.Items.Count - 1 ListBox1.SetSelected(i, True) Next i It works ok...
  8. J

    ListView header height

    How can I get the height of the column header of listview control?
  9. J

    Question Datagrid problem

    Thanks for the tip but it doesn't work. Any other solutions? :confused:
  10. J

    Question Datagrid problem

    I already tried it but the first cell is still selectable and it's still painted as gray and blue
  11. J

    Question Datagrid problem

    Every time a form is loaded, I create a datagrid with two columns. The problem is that the first cell in the first column is automatically selected and blue. Setting the datagrid ReadOnly-property to False doesn't help. I found that setting the datagrid.Enabled=False helps, but then the...
  12. J

    Datagrid column width

    How do I set width for each column individually of datagrid control? I already created a datatable as a source of the datagrid and created columns and rows into it. Here's an example: 'Create columns Dim dataTable As DataTable = New DataTable...
  13. J

    Question Panel horizontal scrollbar

    How can I add a horizontal scrollbar to the panel control?
  14. J

    Reading a binary file problem

    Thanks! This pretty much solved the problem :)
  15. J

    Reading a binary file problem

    Here's my problem: I have a binary file that has been created with Visual Basic 6. It contains structures. Every structure contain fixed length variables, like integers, longs, doubles and strings (for example: Dim TypeCode as string *3). the VB6 program reads the structures from the file with...
  16. J

    Timers problem

    Ok I got it working. But it's not accurate. If i put the interval as 439, the real interval varies +/- 4 ms. On the other hand an average value of 10 intervals is very close to 439. How could I get a timer that has every interval precisely 439 ms?
  17. J

    Timers problem

    This would be a good solution. But it's written in C#. I tried to re-write it in VB.NET but it'sa bit hard though. I wonder if someone has done the same with VB..?
  18. J

    Timers problem

    Thanks for your answer. This sounds something I could use, it's just I don't know how to do it. Could you post a small example code of using that API call? I'm not familiar using those..
  19. J

    Timers problem

    Here's my problem: I set a timer interval as 200 ms. If there is heavy code in the tick event, does the timer work like this?: - timer interval is 200 ms - it takes 20 ms to run the code in the tick event - after tick event the timer waits 200 ms again so after all it has taken 420 ms to run...
  20. J

    Reading USB-port

    I have already found a solution: Even I thought there are drivers and DLL:s only for Labview, I found a website where you can download DT-open layers for VS.NET 2003 and 2005. The DT-open layers software is designed specifically for DAQ-boards and it includes all necessary classes and methods...
Back
Top