|
Use a more meaningful subject line, rather than just help.
It shouldn't be that hard to rewrite in vb.net, but why?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
good day to everyone!
can anyone help me on freezing applications or disable opening of other applications other than the system that i created using VB? can VB do such a thing?
thanks!
|
|
|
|
|
No - VB6 is rubbish. It can barely do anything.
Seriously, you can't really do it, you COULD write an app that is a service, watches for apps to start and kills them, but it would be easy to defeat, just stop it.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
This is best done using Group Policies, not your code. There's no way for your code to stop the loader from loading an arbitrary application.
|
|
|
|
|
Recommend you move away from VB6, it has been dead for three years now...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi,
i have created an application in which i have used third party dll for locking desktop.I have created this application from windows administrator account and everything is working fine from this account.Now i have created a new windows user account which does not have admin's rights and when i am running my application from this account, third party dll for locking desktop does not work.plz give me solution for this.
Thank you.
coolsatty
|
|
|
|
|
I suspect you need admin rights to lock the desktop, but you would be better off contacting the dll vendor to check this.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i hav three setup file for the same application.two setup file for main installation and the other to indicate which one to install.when installation will start i want to fire the setup file which will indicate the two types of installation.how can i call first, that indicator setup file?
pls help.
modified on Tuesday, July 8, 2008 7:29 AM
|
|
|
|
|
Hi friends,
We use SAP dll's (librfc32.dll v6405.5.162.5282, librfc32u.dll v6405.5.162.5281, ...) to open a connection to SAP server, but if server can't response us we used to wait for a while (60 sec).
Can we decrease this connection (logon) timeout to a lower constant (10 sec).
Does anyone know how to set this logon timeout?
Thanks for your help.
|
|
|
|
|
You'll probably have better luck finding an answer to questions related to SAP products here[^]
If you have access to the SAP Service Marketplace you should be able to request a user ID for the developer forums.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hello
I have the following code that draws a rectangle in panel. Now I want that when I click a button I draw the rectangle in the panel. Can any one help pls.
Thank you
Imports System.Drawing.Drawing2D
Public Class Form1
Private Sub Panel1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
Dim g As Graphics = e.Graphics
Dim rect As New Rectangle(50, 30, 100, 100)
Dim lBrush As New LinearGradientBrush(rect, Color.Red, Color.Yellow, LinearGradientMode.BackwardDiagonal)
g.FillRectangle(lBrush, rect)
End Sub
|
|
|
|
|
Call Panel1.Invalidate() in the click event of the button
|
|
|
|
|
You may use a Boolean variable and set its value on button click, in paint event of panel keep the same code however just check for value of this Boolean variable before drawing the rectangle.
Such as –
----------------------------
Private Sub Panel1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
If flag=True then
Dim g As Graphics = e.Graphics
Dim rect As New Rectangle(50, 30, 100, 100)
Dim lBrush As New LinearGradientBrush(rect, Color.Red, Color.Yellow, LinearGradientMode.BackwardDiagonal)
g.FillRectangle(lBrush, rect)
End If
End Sub
-------------------------
In case if you are going to draw more than just one rectangle in that panel, you may use an array of rectangle to draw multiple items on panel.
-Dave.
------------------------------------
http://www.componentone.com
------------------------------------
|
|
|
|
|
I am modifying a driver (DLL) that is written in VB6.
One of the modifications requires me to do a checksum check on all received data.
Here is the CRC Calculation Specification[^] which is unfortunately Greek to me (and seems to CP members also from the response I've been getting ). Mostly because my C coding knowledge is almost NULL and my ASM is very rusted.
The resulting CRC value is a string of 4 hexadecimals e.g. "1BF2".
How should I go about doing this in VB6?
Kind Regards
modified on Tuesday, July 8, 2008 9:21 AM
|
|
|
|
|
|
Jasey9 wrote: I want to downvote you just to see what the treat is!
Feel free to do so, I only put that there for some of those fiercely territorial CP members that have nothing better to do than hang around in the Lounge all day and criticize other people's posts, they really get under my skin!
Anyway, thanks for the code, at least now I now what I'm looking at (CRC16), I'm going to give it a shot tomorrow and let you know!
Thanks again!!
|
|
|
|
|
Hi There
The code didn't work but with some tweaking and re-inventing the square vb6 wheel we got a working Checksum calculator which worked with data supplied.
Thanks again!!
|
|
|
|
|
Hi All,
In database I have two columns ParentCust and ChildCust.
I have a tree view.
Now I want to convert the tree view data in the dataset. I have a dataset in which I have these two columns as ParentCust and ChildCust.
How do i do that. A code snipet will be helpfull to me.
Regards,
Sourabh.
Thanks and Regards,
|
|
|
|
|
Hi All!
Still working furoiusly hard on my JavaScript Editor, and doing quite well now that i have overcome a few obstacles, however i have been sent tumbling head-first over yet another.
In VS, I have never ceased to be amazed at the intellisense, autocomplete and error-marking (Little squiggly line under bad peices of code). How would i go about implementing roughly these features, though obvoiusly scaled down a bit, for javaScript.
I Am Using SharpDevelop's TextEditor Control for my code editor control and so need any Intellisense to be compaitable with this control.
Thanks!
MrWolfy
|
|
|
|
|
Maybe this[^] would be useful? As long as your TextEditor control has a OnKeyDown or simliar event that handles a key press that article might work.
|
|
|
|
|
Hi and Thanks!
The Link provided an excellent insight into how to begin to implement intellisense in my application, however it was not for javaScript, and from the looks of it can not be tweaked to accept javaScript.
Can anybody recommane a more database-oriented approach, perhaps using a database to fill out the intelliSense list?
Thanks Again!
MrWolfy
|
|
|
|
|
Hi MrWolfy,
I may not know exactly what you are looking for, but you can modify the code in that article to accommodate whatever intellisense you want. You could make the intellisense in a database and use that code to read the database (instead of calling readAssembly ). Sorry if I misunderstood or if I'm telling you old news.
|
|
|
|
|
Hi!
Wow, you're right! Sorry, I Didn't understand at first but now I do! Thanks, you've been a great help!
Thanks Again!
MrWolfy
|
|
|
|
|
It's possible to specify that a generic class will only accept items which meet multiple qualifications. For example, the class could be specified as working with Control objects which implement the iEnumerable and iSuperMagic interfaces by declaring it as something like
Class Whatever(of {Control,iComparable,iSuperMagic}) . Is there any way to specify that method arguments and return values, class fields, etc. should likewise possess multiple qualities?
It would be possible to ignore the interface requirement in the definition and use typecasts to make the necessary calls (e.g. have a method accept an ordinary control and then use a typecast to use other interface methods or properties, e.g.
if ctype(iComparable,theObject).Comparer > 0 then but that seems like rather a kludge, and it would also delay until run-time type checking should should in many cases be possible at compile time.
Is there some workable syntax to produce complicated types that I'm simply not seeing? I've tried many variations of the "brace" notation and can't get it to work.
|
|
|
|
|
I am not sure I fully understand, but I am sure the answer is no. You define a method when you write it. Why would you define something abstract about what it's properties are, when you are about to define them concretely ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|