Search results for query: *

  • Users: mmy
  • Order by date
  1. M

    Question add x-number of checkboxes dynamically. Gridview with multiple colums?

    found the solution... I can use the CheckboxList control with the RepeatColumns property...
  2. M

    Question add x-number of checkboxes dynamically. Gridview with multiple colums?

    Hi, hope to get a tip or good practice method to become this result... I'm using an SQL command to read 1 column (example: name), returning a x-number of records. I want to display these results as a checkbox item on a webpage. Since it's only 1 column, showing all these records row by row...
  3. M

    Question calculating xor of different characters

    hmm, seems this does the trick I think... dim result as string result = Hex(CLng("1") Xor CLng("2")) 'OR result = Hex(AscW("1") Xor AscW("2")) -> gives 3 as a result But now I have to put this into a for each loop... For Each mychar As Char In "12" result = Hex(AscW(result) Xor...
  4. M

    Question calculating xor of different characters

    Hi, for a project, I have to calculate a checksum that would be the XOR of every individual ascci character. For example -> (string) "12". -> Character 1 = Ascii 0x31 = binary 110001 -> Character 2 = Ascii 0x32 = binary 110010 0x31 XOR 0x32 = 0x003 (according to my windows calculator)...
  5. M

    Question ShortDatePattern always returns d/MM/yyyy instead off ...

    Hi, I have tried the code below in a windows form and a windows service. System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern It returns the short date format configured in the operating system, for example: M/d/yyyy However, when I use exactly the same code in another...
  6. M

    Question best practice: creating 100 labels or ...?

    edit: think I got a better solution... 1) global variable: dim lblInfo(100) as Label 2) on the Onload -> lblPrefix(propertyID).Text = .... -> lblPrefix(propertyID).Location = ... -> me.controls.add(lblPrefix(propertyID)) 3) when I receive new values -> lblPrefix(propertyID).Text = new value...
  7. M

    Question best practice: creating 100 labels or ...?

    Hi, I'm developping a project to receive and display properties with values from a PBX (how many calls in progress, ...) Each property has its own propertyID (fixed), title (random) and value (random). Example: - propertyID = "9", title = "number of calls", value = 5 - propertyID = "15"...
  8. M

    best practice for service - UI for the settings or not?

    Hi, I'm currently (re)designing software to register info sent out from a PBX (call loggin software). One part of the program will be installed on a server, with the only purpose to gather the info and write it to a database. The main user interface (web application) will read this data and...
  9. M

    Question calculate execution time

    thanks for the reply! I looked at the class for a seconds, and seems pretty easy. I used it in some test code and seems to work good. I'll implement it later. Thanks
  10. M

    Question calculate execution time

    Hi, is there a way to calculate the execution time between 2 lines of code in vb.net? I know debugging software exists to do this, but I couldn't find any freeware till now. There must be a tool in visual studio / or in the debug mode to do this? Or do I have to use the datetime function...
  11. M

    Question sendkeys - alt tab & copy -> works in one application, but not in the other?

    Hi, I have created 2 projects, both sending alt tab + copy when I press a button. The objective is to copy the selected text in another random application. txtInfo.Focus() 'I have to do this, otherwise this code never works Clipboard.Clear() Application.DoEvents()...
  12. M

    Question can't connect to a local database

    I knew that site before, but couldn't get it to work... But this code seems to work ok Imports MySql.Data.MySqlClient Dim conn As MySqlConnection = New MySqlConnection conn.ConnectionString = "server=localhost;user id=root;password=;database=bkm2" conn.Open() Although, you have to download a...
  13. M

    Question can't connect to a local database

    Hi, I have a database (test) with one table (names) in it. I'm using MySQL 5.0.5, installed with WAMP. In Visual Studio 2005 I'm trying to connect to this database. I use the following code Imports System.Data.SqlClient Dim strConnection As String = "Data Source=localhost;User ID =...
  14. M

    Question SendKeys / SendInput

    Hi, I'm trying to copy a selected text from another program running and paste it into a variable. What I'm doing is the following 1) hide the VB.NET form 2) System.Windows.Forms.SendKeys.SendWait("^C") (send ctrl+C = the shortcut for the copy function in the other application) 3) show the...
  15. M

    20sec before connection and freezing interface when using asynchr. connection method

    update... I have tested a 2nd method and this one connects immediately to a PBX. In this case, a TCPClient is used. Imports System.Net.Sockets Imports System.Text Public Class Form1 Private ASCII As New System.Text.ASCIIEncoding Private MyClient As TcpClient Private mydata(4095) As Byte...
  16. M

    20sec before connection and freezing interface when using asynchr. connection method

    A server sends data on a particular port. I want to connect to this server and listen for every data on that port. For now, I don't need to send data, just receive. In the past I worked with VB6 and the winsock control. Now I want to use vb.net and the new method, sockets. I'v learned that...
  17. M

    user defined function in sql from vb.net

    cjard, in Access I got it working. It's quite simple. You can try it using when designing a query. make one field as: ColumnName: FuctionName([access field x]) in a module create this function: function FunctionName(variable x) as string (or the datatype you want to return) ... ... return...
  18. M

    crystal report refers to wrong .mdb

    In VB.NET 2005 I'v added a crystal report (project - add windows form - crystal report - "rapport.rpt") With the report wizard I created a new connection (create new connection - OleDb (ADO) - Microsoft Jet 4.0 ... - data base name: test.mdb) I selected the table, and placed the fields on the...
  19. M

    passing 2 parameters from a textbox to a crystal report

    David, thanks for the reply. I'm using a dummy table with the 2 extra variables in (the one I used as a parameter in the report). Now I can make a function in the detail section and in the report footer a running total (insert - sum). I'll try this way when I get in the same situation. Thanks
  20. M

    user defined function in sql from vb.net

    In Access I could write a module containing the the function and vba-code. but I understand the sql line is executed on the database, and this one should know how to execute the function. I needed this to fill 2 columns containing extra information. But I bypassed this by making a formula...
Back
Top