Search:

Type: Posts; User: matt3011

Page 1 of 3 1 2 3

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    21,761

    Re: EAN-13 Code Bar Generator

    I added 2 classes : 1 for Code39 And 1 for Code128 (CharacterSetB)

    I found Code39 on a French VB Forum and I updated It

    I coded Code128 from the specifications which can be found there

    Here...
  2. Replies
    4
    Views
    930

    Re: Printing and margins problem

    OK It works,
    Public Class PrinterBounds

    Private Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As IntPtr, ByVal capindex As Int32) As Int32

    Private Const PHYSICALOFFSETX...
  3. Replies
    6
    Views
    3,154

    Re: Active Directory - SetPassword

    Is your program lauched with an account with sufficient powers (ie Administrator or Domain admin...).

    I use the same code (almost) as you and I don't have any problem. The only difference is that...
  4. Re: Reading and then splitting information

    Oops I forgot 1 line and it was an endless loop :
    Dim reader As StreamReader = File.OpenText("file.txt")
    Dim line As String
    Dim a() As String
    Dim Tester As String
    Dim LineCount As Integer = 0
    ...
  5. Re: Reading and then splitting information

    You try to read When there's no more lines :

    While Not (reader.ReadLine() Is Nothing)
    LineCount += 1
    End While
    This piece of code read your file to the end

    So I suppose you get an error...
  6. Replies
    4
    Views
    930

    Re: Printing and margins problem

    OK, it was interesting. I also found an article at this address : http://etc.nkadesign.com/Programming/CSharpSnippets
    It retrieves the real margins from the printer. But when I print using these, I...
  7. Replies
    3
    Views
    775

    Re: Significant Figures

    Function FormatSF(value As Double,Optional intSF as Integer=2) As String
    Dim formatString As String
    Dim Values As String()
    If intSF<1 Then Throw New Exception("intSF must be >0")...
  8. Replies
    3
    Views
    775

    Re: Significant Figures

    You can display your figures in the sientific format :

    Function FormatSF(value As Double,Optional intSF as Integer=2) As String
    Dim formatString As String
    If intSF<1 Then Throw New...
  9. Replies
    4
    Views
    930

    Re: Printing and margins problem

    Anyone ?
  10. Re: Authenticating Domain Username and Password...

    This code doesn't log the user on but it checks its creditentials. I think that's what you're looking for :
    Private Function Objet_Login(ByVal strLogin As String) As String
    Dim entry As New...
  11. Replies
    4
    Views
    930

    [RESOLVED] Printing and margins problem

    Does anybody know how to find the margins which maximize the print area ?
    The default margin are set to 100 and I don't know how to get the printer limit.
    Anyhelp would be great
  12. Replies
    11
    Views
    21,761

    EAN-13,CODE39,UPC,CODE128 Code Bar Generator

    Here is a code to produce a bar code which complies with EAN13 specifications. I adapted It from a JS Script by Ghislain Lavoie I found on this web site.


    Public Class EAN13
    Private...
  13. Replies
    6
    Views
    862

    Re: read word/excel doc into memory

    OK, now you're almost done. Try something like this
    Dim ioStream As IO.Stream = File.Open(Application.StartupPath & "\dat\Attachements\" & dfAtach.File, FileMode.Open)
    Dim...
  14. Replies
    6
    Views
    862

    Re: read word/excel doc into memory

    You should open your file with the IO.File.Open() function which returns a FileStream.
    You can read that stream byte per byte, or fill a buffer with it
  15. Thread: MP3 Player

    by matt3011
    Replies
    9
    Views
    1,006

    Re: MP3 Player

    You should try using FMOD. It can play whatever audio you want.

    Here is the website : http://www.fmod.org
  16. Re: How to simply check if a file is locked by ANOTHER application?

    Maybe you should try something like this :

    Function FileLocked(ByVal FileName As String) As Boolean
    Try
    Dim myStream As IO.FileStream
    ...
  17. Replies
    4
    Views
    712

    Re: ListView Speed Problem

    Ok, I pointed the problem out. I have a ListView.ListViewItemSorter set on my control, and it is active when inserting data.
    I now set it to nothing when inserting data and I set it back when...
  18. Replies
    4
    Views
    712

    Re: ListView Speed Problem

    It doesn't change anything at all. I assume that the effect of ListView.BeginUpdate is the same as ListView.SuspendLayout. It just doesn't allow the control to redraw unless ListView.EndUpdate Or...
  19. Replies
    4
    Views
    712

    [RESOLVED] ListView Speed Problem

    I am adding ListViewItems to a listView from a SQLDataReader. The problem is that when the number of items grows, the time to add them to the listbox grows exponentially.

    For example, when I add...
  20. Re: Sort the ListView Data by Clicking Column Header???

    You need to implement a Comparer in order to sort a listview :

    Private Class myListViewComparer
    Implements IComparer

    Public ListViewColumn As Integer = 5 'The column to sort
    ...
  21. Replies
    4
    Views
    2,091

    Re: SQL SERVER DATEPART week problem

    I don't see your point, since you're just proposing a DATEDIFF method. I want the week number in the year.

    I made my own function


    CREATE FUNCTION [dbo].[fn_week] (@d_date AS datetime) ...
  22. Replies
    4
    Views
    2,091

    Re: SQL SERVER DATEPART week problem

    I mean, if you assume that first week of year starts on jan 1st, then today (june, 22nd) we are in week 26 (what I get). But if you assume that first week of year is the first full week of january...
  23. Replies
    4
    Views
    2,091

    SQL SERVER DATEPART week problem [Solved]

    I want to do a search based on the week of a given date field.

    I'm using DATEPART(ww,myField) to get that week number but, I don't get the number I want.

    SQL SERVER assumes that the first week...
  24. Replies
    1
    Views
    566

    It's Working now. Here is the code : ...

    It's Working now. Here is the code :

    <DllImport("advapi32")> Public Function LookupAccountSidA(ByVal lpSystemName As String, ByVal Sid As Integer, ByVal Name As Stringbuilder, ByRef cbName As...
  25. Replies
    1
    Views
    566

    List Logged On users [Resolved]

    Hello, I've looked many places but I still can't make this work. Everything seems to work right until the LookupAccountSid.

    I adapted the code from PSLoggedOn which is in C

    I don't know what's...
  26. Replies
    18
    Views
    28,732

    >>This is just a .rar file >>You can copy and...

    >>This is just a .rar file

    >>You can copy and paste the code from the source files and adapte It to VB6.

    I have a very old VB6 version with, i'm sure, many bugs because I move to .Net before I...
  27. Replies
    14
    Views
    1,437

    You could Also make your own control : Create...

    You could Also make your own control :

    Create a new class myTextBox that inherits the class TextBox :

    Public Class myTextBox
    Inherits TextBox

    Private Sub Enter(ByVal sender...
  28. Thread: mp3player

    by matt3011
    Replies
    11
    Views
    677

    Winamp allows you to delete a mp3 file. Just...

    Winamp allows you to delete a mp3 file. Just click on Remove button then Remove MISC and delete file physically
  29. Replies
    18
    Views
    28,732

    OK, I'll put an example when i have time. when...

    OK, I'll put an example when i have time.
    when you've a created a new instance of it try,


    myId3v2Instance.filename = "filetoread" 'the file you want the Id3v2
    myId3v2Instance.getid3() 'You put...
  30. Replies
    18
    Views
    28,732

    I don't have much time by now. Only the Form and...

    I don't have much time by now.
    Only the Form and its code are in French.
    The ID3v2 class is almost in english. Just replace "donnees" by "data" and it's done.
    I don't have much time but I think I...
  31. Here is a id3v2 reader/writer written in VB.NET...

    Here is a id3v2 reader/writer written in VB.NET ,you'll find how to add an embed picture in it:
    Id3v2 module
  32. Thread: MP3 tags

    by matt3011
    Replies
    8
    Views
    1,968

    Here is a id3v2 reader/writer written in VB.NET :...

    Here is a id3v2 reader/writer written in VB.NET :
    Id3v2 module
  33. Thread: mp3 ID3v2

    by matt3011
    Replies
    6
    Views
    1,594

    Here is a id3v2 reader/writer written in VB.NET :...

    Here is a id3v2 reader/writer written in VB.NET :
    Id3v2 Class
  34. Replies
    18
    Views
    28,732

    VB.NET : ID3v1,v2 reader , ID3v2 Writer

    I've not finished it yet, but i will upload new versions as soon as they'll be ready. It is not commented, i'll do this sometime.
    I think this could help many people wanting to use id3v2.
    Hope this...
  35. Thank you, I have the icon and the menu. But I...

    Thank you, I have the icon and the menu.

    But I can't click minimize. I could do it in VB6, Any Idea ?

    Also, move doesn't work, i can click it but i can't move the form (I had the same issue...
  36. Replies
    3
    Views
    580

    I use a form using a dll class. When i open a...

    I use a form using a dll class. When i open a form with showdialog in the dll class, it remain displayed over all main app windows.
    So try with myform.showdialog
  37. Anyone ?

    Anyone ?
  38. Replies
    20
    Views
    1,215

    Sorry, I went through the thread a little too...

    Sorry, I went through the thread a little too fast and I kept in mind only the code of the first post which make me think of this kind of error.
    Reading more carefully, the problem seems harder...
  39. Replies
    7
    Views
    798

    I don't think that's useful to package it with...

    I don't think that's useful to package it with your app because it is installed by Internet Explorer and so, it is present on every computer running Microsoft OSs.
  40. Replies
    20
    Views
    1,215

    To open your form again, you'll have to...

    To open your form again, you'll have to instanciate a new one :
    myform=new frmTheForm
    myfrm.show
Results 1 to 40 of 84
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width