|
These two links may help. The first from MSDN should have VB Code Samples, the second, if memory serves is C# but is nonetheless an excellent article on this sort of thing.
Create And Host Custom Designers With The .NET Framework 2.0[^]
hosting-windows-forms-designers/[^]
If they are of no help, what you are trying to do is essentially the same as a 'Drawing' application. Allowing users to place shapes on a surface and move them around. So Google for drawing applications vb.net, sketchpad vb.net and similar phrases.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi all,
i'm using web service in my form, this web service return html text format, i want to extract text writen between html tags
Thanks for help
|
|
|
|
|
You can parse the HTML if it is XML, using the DOM. Or you can use regex.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks for your help
do you have any paper about this subject
|
|
|
|
|
Well, it's really pretty easy. USe the DOM ( XmlDocument class ) to parse XML, or use the RegEx object to run a regular expression. In both cases, there's tons of info on the web.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello everybody,
Iam trying to make like xp panel.Here iam unable to move up my 4th panel.
i've 5panels.1main panel,2panels on top and 2 panels on bottom in main panel.
iam unable to move my panel4 "UP" when am unexpanding(pressing up arrow button) my panel2, and getting back to its original height i.e, oldheight when am expanding my panel2....
Please Help me....
Thanks.
modified on Monday, June 22, 2009 5:27 AM
|
|
|
|
|
I think that to get any help you are going to have to reword your question. Currently it makes no sense to me.
What on earth is XP Panel?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello,
Actually XP Panel means is what we see when we double click on my computer at the left hand side.These panels consists of lables 1)View System Information, Change a setting 2)My Network Place, My Documents.I already made this one but the problem is when we click on an up(^) arrow of lets say panel1 then the bottom panels should come up and when we click on down arrow these panels should go to their standard(old) positions.I need the code of how to move those panels when we click on up and down arrows of panels.
Plz Help me
Thanks in advance
modified on Monday, June 22, 2009 7:47 AM
|
|
|
|
|
Have you looked at Full-featured XP Style Collapsible Panel[^]?
If you do not find the answers there, there are plenty more examples on t'interweb.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I've seen that article but i'm not getting some part of it.i only need how to move the below panels when we click on the up arrow button of a top panel.....
its a small code but dont know y i'm unable to do....
Thanks for your reply..
if u can provide me that code....
thanks.
|
|
|
|
|
mirzamujib wrote: if u can provide me that code....
You show me yours and I, or somebody else, might show you ours!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
sory i dont get u...
kindly do help..
|
|
|
|
|
You show us what you have done so far. Not all of it, just the bit you can't get to work, together with a full explanation of how it doesn't work, error messages etc.
Then if anyone sees a problem they will probably offer some help.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dear All,
I have a problem whle declaring input and output variable to pass a 'C' based Dll.
The Dll Api is as follows:
int rw_polling(int PortNumber,unsigned char *SelSysCode, unsigned char *IDm, unsigned char *PMm,int *Response)
Function :Send Polling Command to Card
Return :TRUE = succeeded FALSE = failed
Input :
*PortNumber : com port number (1-8)
*SelSysCode(2bytes) : systemcode of target card
Output :
*IDm(8bytes) : IDm from card
*PMm(8bytes) : PMm from card
*Response : 0 = succeeded
1 = Reader Writer is not open
2 = no response (ACK) from reader/writer
3 = check sum error of received data
10 = card is not detected
Problem:
In the above function I want to pass values of the variable
Input Variables
1) PortNumber=1
2) unsigned char *SelSysCode = 2bytes i.e FF and FF
Output variables
3)IDm (8 Bytes)
4) PMm (8 Bytes)
5) Response.
How I tried:
in Declarations:
Declare Function rw_polling Lib "RCS962INSPCT.dll" (ByVal PortNumber As Long, ByRef SelSysCode As Long, ByRef IDm As Long, ByRef PMm As Long, ByRef Response As Long) As Long
While calling through VB Form:
Dim PortNumber As Long
Dim SelSysCode(1) As Byte
Dim IDm(7) As Byte
Dim PMm(7) As Byte
Dim Response As Long
Dim ReturnCode As Long
'PortNumber = cmbComPort.ItemData(Me.cmbComPort.ListIndex)
PortNumber=1
'Here I want to pass value of 2 bytes i.e FF and FF
SelSysCode(0) = &HFF
SelSysCode(1) = &HFF
ReturnCode = rw_polling(PortNumber, VarPtr(SelSysCode(0)), VarPtr(IDm(0)), VarPtr(PMm(0)), Response)
Result: Function is returning false
Response: 10
If Response = 0 Then
pp = "succeeded"
ElseIf Response = 1 Then
pp = "Reader Writer is not open"
ElseIf Response = 2 Then
pp = "no response (ACK) from reader/writer"
ElseIf Response = 3 Then
pp = "check sum error of received data"
ElseIf Response = 10 Then
pp = "card is not detected"
End If
If ReturnCode = 0 Then
txtMsg.Text = Trim(txtMsg.Text) & vbCrLf & pp
txtMsg.Text = Trim(txtMsg.Text) & vbCrLf & "Pooling Fail"
Else
txtMsg.Text = Trim(txtMsg.Text) & vbCrLf & pp
txtMsg.Text = Trim(txtMsg.Text) & vbCrLf & "Pooling Success"
End If
What I want is:
by which way can I pass the value (FF and FF 2bytes) Input Variable for SelSysCode.
I am able to caputre the Response also.
Please anybody help me in this regarding in VB6
Ram
|
|
|
|
|
Why are you still using VB6 in 2009 ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
This is my normal reaction until one of the junior devs found out that passing a struct from C#/VB.net to a C DLL fails whereas using VBA/VB6 works . I found this so distressing I refused to have anything to do with the project.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
In my company we had VB6 Apps and our main Priority was to get rig of them. and we Did, and never wanted to do anything that is related to it , i will not attempt to answer vb6 Questions , i cant remember how it is
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hi,
i want to check printer is currently installed or not?
then one more how to check printer status?
i mean printer is busy or not..
plz help me.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
goto start menu settings printer and faxes then lesect ur printer name thats it
Regards
Vidhish
|
|
|
|
|
hi,
i got printer name.
thx for your information.
i have one more doubt..
i have using network sharing printer.
now i am give print request. but already somebodies use same printer.
now i need status of printer is busy or not...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Why?? The jobs will queue up on each machine until the printer is no longer busy with the previous job. Then, it'll print the next job in the queue automatically.
|
|
|
|
|
ya i no..
but i need some status of printer...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Again, why do you need the status of the printer?? It's rare that anyone would need this.
|
|
|
|
|
|
I've asked this before, but just in case it was missed, I thought I'd ask again.
"I want to emphasize the relationship of some adjacent Cell Rows in a Column, by Drawing a 2 or 3 Pixel Line around the Group of Cells.
I read that the Microsoft DataGridView Control does not support the Individual Cell Border Style in the Current Version.
Does anyone have a routine, or suggestions that will achieve this result with the MS DataGridView Control."
Regards, Graham
|
|
|
|