|
Create a list that includes company name and date of visit(s). Check the date against today's date and show the alert if it's nearly time for the visit. What part of this are you having problems with?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Use Outlook to create recurring meetings. I don't see the issue. Maybe if you gave more details?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
i found some messenger code, modify and use it,
my problem is, txtMessage keydown event that will automatically click button send is not working,
and again everytime my form loads, focus is on txtDisplay, not on txtMessage.
i copied some of the code below.
is this caused by add handler and thread?
Option Strict On
Imports System.Windows.Forms
Imports System.Net
Imports System.Net.Sockets
Imports System.Threading
Imports System.Text
Imports DevExpress.XtraEditors
Namespace Forms
Public Class Messenger
Delegate Sub AddMessage(ByRef message As String)
Private Const port As Integer = 33333
Private Const broadcastAddress As String = "255.255.255.255"
Private receivingClient As UdpClient
Private sendingClient As UdpClient
Private receivingThread As Thread
Public Sub New()
InitializeComponent()
AddHandler btnSend.Click, AddressOf btnSend_Click
End Sub
Private Sub txtMessage_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs)
Select Case e.KeyCode
Case Keys.Enter
btnSend.PerformClick()
End Select
End Sub
Private Sub Messenger_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Objects.Classes.Universal.Variables.formMessenger = True
InitializeSender()
InitializeReceiver()
Me.txtMessage.Text = ""
Me.txtMessage.Focus()
End Sub
Private Sub btnSend_Click(sender As System.Object, e As System.EventArgs)
txtMessage.Text = txtMessage.Text.Trim()
Dim toSend As String =
"(" +
DateTime.Now.ToString("HH:mm") +
")" +
Objects.Classes.Universal.Variables.Username + " > " + txtMessage.Text
Dim data() As Byte = Encoding.ASCII.GetBytes(toSend)
sendingClient.Send(data, data.Length)
Me.txtMessage.Text = ""
Me.txtMessage.Focus()
End Sub
Private Sub MessageReceived(ByRef message As String)
txtDisplay.Text += message + vbNewLine
End Sub
Private Sub InitializeSender()
sendingClient = New UdpClient(broadcastAddress, port)
sendingClient.EnableBroadcast = True
End Sub
Private Sub InitializeReceiver()
receivingClient = New UdpClient(port)
Dim start As ThreadStart = New ThreadStart(AddressOf Receiver)
receivingThread = New Thread(start)
receivingThread.IsBackground = True
receivingThread.Start()
End Sub
Private Sub Receiver()
Dim endPoint As IPEndPoint = New IPEndPoint(IPAddress.Any, port)
Dim messageDelegate As AddMessage = AddressOf MessageReceived
While (True)
Dim data() As Byte
data = receivingClient.Receive(endPoint)
Dim message As String = Encoding.ASCII.GetString(data)
Invoke(messageDelegate, message)
End While
End Sub
End Class
End Namespace
|
|
|
|
|
have you looked at the tab order of the two textboxes?
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
yes, i put tabindex for txtMessage = 0 and 99 for txtDisplay.
but still the txtDisplay was focused when i open the form.
|
|
|
|
|
I think that is because on some of the subs, you tell it what to handle.
txtMessage_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs)
should be
txtMessage_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) handles txtmessage_keydown
|
|
|
|
|
thank you very much, yes i forgot to put that handle.
afterall, it's because i use LayoutControl from another component, that control defaultly focuses any textbox at the top, i've turn it off.
|
|
|
|
|
I am an amateur programmer working on some personal music software. Under Win98 and VB5 I wrote a routine that used the WinAPI involving callbacks to find, open and process real time input from a MIDI keyboard.
Revisiting the project after installing VB2010 Express, I am having trouble getting my head round the colossal increase in size and complexity of the language. In particular the need to use delegates to legitimise callback functions is puzzling me deeply.
I have written code which runs error free but nothing actually happens when I play the MIDI keyboard. I need help with understanding the program structure and relationships needed to create a midi_device class with methods to open the device, respond to the realtime inputs and close the device. Thanks for any help, David T
midigeek
|
|
|
|
|
Take a look at some of these articles[^], which may help to explain things more clearly. If you have some specific piece of code that is causing problems you can post it here and people will try to help you.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Thank you for the references to delegates, which will be helpful. I was already well aware of the analogy of function pointers inherent in delegates. I will take up your suggestion and will code up a minimalist version which opens, handles midi messages and closes the device and see where that takes us.
I have copied code examples before for handling callbacks via delegates but never got anywhere. I suspect that because most examples are not complete viable programs, I must be getting something wrong with the overall program structure. Oh for the glorious simplicity of Dartmouth BASIC which I started with in the 1970s !!
|
|
|
|
|
dmt1940 wrote: Oh for the glorious simplicity ...
Today we have sophistication.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
can't save a VB6 project with flash10.ocx control. how to fix it?
|
|
|
|
|
By moving to something more modern. Implement new functionality with VB.NET, and integrate that into your legacy-VB6 project using the InterOp Forms Toolkit. That's a free download that can glue VB.NET code into your existing VB6-code.
Thus, glue new functionality in there with VB.NET, and try to migrate the rest as soon as you can. VB6 will apps will run on Weight, but there's no guarantees for Wine or Wen.
By the way, why couldn't you save it? Did the IDE throw some kind of message at ya? If yes, could you kindly post it here?
Bastard Programmer from Hell
|
|
|
|
|
Well, with the total lack of detail and any error messages, the best anyone can tell you is that you screwed something up.
Seriously, why are you starting new developement work in VB6? It's been dead and unsupported for YEARS now. VB.NET Express is free and downloadable from here[^].
|
|
|
|
|
True, but can still create programs from it and it still works.
Simple Thanks and Regards,
Brandon T. H.
Been programming in Visual Basic for 4 years this point forward, and is very good at it (I can even create programs completely on code, without dragging those items from the toolbox). Programming C++ for 1 year so far and the same with C#.
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
and you can learn a bunch of bad habits from it that you're going to have to unlearn when VB6 no longer works at all.
|
|
|
|
|
Est idem Latina
Bastard Programmer from Hell
|
|
|
|
|
Please Help me with this I will make you a program on visual basic 2010, im just learning visual basic 6.0. I have made a lot of programs with it but im more familiar with visual basic 2010, I found that they are almost the same, but anyway I need some help with this program. I would up load it here but it says the file is to big. So thanks, Oh I can program using C#2010 or C++ 2010 and visual basic 2010 just tell me what you would like on a program and what language you want me to use. Thanks for looking at my post, Oh, I tried to e-mail, but the owner has not got back to me. Thanks. http://www.mediafire.com/?7k4zrq5c6n7a2hh[^]
|
|
|
|
|
Sorry, but nobody is going to download some file(s) from a web site in order to figure out what your problem is. If you have a technical question then post it here and include any extracts of your program that is causing you problems.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
gamemaker825 wrote: just tell me what you would like on a program and what language you want me to use.
I'd like a program that generates next week's winning lottery numbers for UK lottery - must guarantee they are winning. You can choose between a Lisp or APL implementation.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
Can you send me a copy?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
mediafire with curious file name..
i won't download it.
|
|
|
|
|
All files on mediafire look like this (I use it myself) but I still wouldn't download it!
|
|
|
|
|
If you are trying to share source-code, then take a look at the article-section. I doubt that there will be many people who are going to learn VB6, as the language is on it's way out. If you find both languages very similar, then it'd be wise to switch to something from this millennium, not the past one.
This site has got 8 million+ members. I don't think that the owner will have the time to respond to personal emails very often.
Bastard Programmer from Hell
|
|
|
|
|
i've heard it called true basic, but i'm talking about the basic i learned in 84. i was good at that, and i'm trying to write a program in basic, but can't find a compiler. i looked on the internet all day today with no luck. specifically, i need to know what file extension to save, if i need to use anything besides notepad, and if i need a compiler. thanx
|
|
|
|