|
Well It Looks like I had a typo after-all. I had a space in the sable name where it should have been an Underscore.
Thanks.
|
|
|
|
|
I connect them by using a select query. Access is all about tables, querys and records
|
|
|
|
|
Good Evening,
I would like to make a progressBar - (Visual Basic Express 2010) vb - connect his PC, for example, the Lego Mindstorm bluetooth.
I click on the "connect" the progressBar should be filled completely, then subsequently a label is displayed by marking "Connected"; if you click on the button "disconnect" the ProgressBar empties completely the label is displayed by marking "disconnected".
While the progressbar fills or empties there must be a connection or disconnection between the PC and the Lego Mindstorm (here).
And displayed directly in the label1 "connected" or "disconnected".
Thank you in advance, I will be very grateful to you.
I'm sorry for details, and expressions that I used.
I hope you understood what I mean.
Best Regards,
William
P.S: This is extremely urgent !!
Thank you to contact me asap for more detail.
|
|
|
|
|
Member 11380762 wrote: P.S: This is extremely urgent !! To you, yes, not to me. We're volunteers, and I can even choose to ignore the post completely. I would not even be rushed if you were paying.
As for the question, it needs more detail. If connecting consists of a few measurable steps, with the Lego giving you feedback on how connected it is, then yes, you can have a meaningful progressbar.
I'll bet you a banana that it doesn't. In that case you start with an "indeterminate" state, and measure how long it takes. On next startup, take that value as the max and measure again, and adjust the current max. Make it an average for better results.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Member 11380762 wrote: P.S: This is extremely urgent !! Sorry, not to anyone here.
|
|
|
|
|
Hi there,
For some functionality, I'm thinking about developing a custom control. It would be a kind of mini pnnel containing a few basic controls.
On my form, I would then have to create a panel displaying something liek a listbox, but instead of display text, it should be displaying instances of my custom control. When they don't fit in the panel, there should be a vertical scroll bar appearing.
I also need drag & drop functionality. This means I will need to somehow catch per control if a certain other control is dropped on it (like in a TreeView).
Does anyone have any idea about how to get this done? What container control is best to use in this case and how do I use it?
Thanks in advance!
|
|
|
|
|
Bart Van Eyndhoven wrote: Does anyone have any idea about how to get this done?
Derive a new class from UserControl. Add your controls in the UI designer. Develop your code in the source editor. Voila!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Instead of a UserControl, I'd use a Panel. That's the only difference.
Bart Van Eyndhoven wrote: When they don't fit in the panel, there should be a vertical scroll bar appearing. AutoScroll[^].
Bart Van Eyndhoven wrote: I also need drag & drop functionality. This means I will need to somehow
catch per control if a certain other control is dropped on it (like in a
TreeView). There's a HOWTO on MSDN, a walkthrough and various examples.
Bart Van Eyndhoven wrote: Does anyone have any idea about how to get this done? MSDN[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
I'm new to VB2013 and am looking to generate a small app that will read SNMP data from a device and log it to a file. I came accross this nice little tool An introduction to #SNMP, an Open Source SNMP implementation[^]
It has some small examples but they all seem to have been written for 2008 or older. Does anyone have a newer example of how to use this (assume I needs to do everything) or some other way to perform SNMP GET and Even SET (later task)?
Thanks!
|
|
|
|
|
I don't know what you mean by "written for 2008", but you should use the forum at the end of the article for your questions.
|
|
|
|
|
Member 11378320 wrote: It has some small examples but they all seem to have been written for 2008 or
older. Code examples aren't written for a specific version of Visual Studio. It targets a specific version of the .NET runtime. Now, you can run code that targets "older" .NET versions on newer versions.
If you run into problems using the code, then there's a forum at the end of the article; you could use it to contact the author, he/she might have more ideas. Also, it'd be rather wise to explain what you tried, and what exactly went wrong - if there's an error or exception, than include that. That way the person responding can give usable advice, otherwise they'd have to guess at which examples you tried and what could be happening.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I'm using the Right Mouse click to launch a popup menu, but when I Right Mouse click in the TextBox, a menu appears:
Undo (Grayed)
Cut (Grayed)
Copy (Grayed)
Paste
Delete (Grayed)
Select All
Right to left Reading order
Show Unicode control characters (Grayed)
Insert Unicode control character> (Grayed)
Open IME
Reconversion (Grayed)
After hitting the Esc key, then my popup menu appears.
I have no idea where this is coming from or how to stop it.
Any ideas?
|
|
|
|
|
Please don't cross-post ... I've responded to your post in Quick Answers
|
|
|
|
|
Sorry, Didn't mean to cross-post.
Just after I had posted the original, I realized this is where I should have posted. So I did, and went back to remove the original, and you had responded so quickly (Thanks you), before I was able to deleted it.
|
|
|
|
|
Either forum would do .. just not both
|
|
|
|
|
Hi there,
does anybody know where to find a DJB2 Hashing algorithm code or lib for VB.NET?
|
|
|
|
|
|
Well,
guess you are right about it should not be difficult to be done, but I'm smashing my head on the wall since some time already, keep getting overflow errors and cast errors...
I'm probably not that good in that kind of VB programming, that's why I'm asking if anybody suceeded in have it done and working... and available to share it.
Thanks in advance.
|
|
|
|
|
Well, I'm not a VB programmer but I can probably help if you show your code and what errors you receive.
|
|
|
|
|
I have tried so many variants that I lost the path
BTW, the following is one of them
Public Function CRC_calc_crc_bernstein(frame As String, len As Integer)
Dim crc As UInt16 = 5831
Dim tmp As UInt16 = 0
Dim t As UInt16 = 0
For i = 1 To len
tmp = Mid(frame, i, 1)
t = (crc * 33) + 1
t = t + crc
t = t + tmp
Next
CRC_calc_crc_bernstein = crc
End Function
The main error I get is that usually after few cycles of For I get an Overflow exception
I tried the use of Ctype() and DirectCast() without success, so... I'm almost giving up.
Thanks in advance for your kind help.
|
|
|
|
|
Your logic is not the same as described in the algorithm (not sure why). Try:
Public Function Hash_calc(frame As String)
Dim hash As UInteger = 5831
Dim nextChar As Char
Dim temp As UInt32
For i = 0 To frame.Length() - 1
nextChar = frame.Substring(i, 1)
temp = Convert.ToUInt32(nextChar)
hash = hash * 33 + temp
Next
Hash_calc = hash
End Function
I have changed the function name to Hash_calc as that is more meaningful, this is a hashing algorithm, not a CRC. I also changed the integer declarations to UInteger as that makes more sense for use in a 32-bit or 64-bit application. Finally you need to switch off the overflow checking in your projects properties page in Visual Studio.
|
|
|
|
|
Many thanks,
guess the point was about disabling the overflow checking (which I was not aware about).
I need just one more improvement, about getting the Hash_calc result to become a value between 0000h and FFFFh (a WORD). Which would be the correct approach?
Thanks once more.
|
|
|
|
|
I guess just go back to using UInt16 .
|
|
|
|
|
seems the right choice is Ushort.
I get results within FFFFh now.
Just need to find out why those results are not matching the originator's hash, will debug further.
|
|
|
|
|
Make sure that the originator is using exactly the same algorithm, including the hash seed value.
|
|
|
|