|
lol , i spend 18 hrs at least on programing stuff nd still hungry , thats y ..... Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
S0FTDEV wrote: i spend 18 hrs at least on programing stuff
I guess that's per year ... txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
lmfao Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
|
Hi
I am trying to extract details from a smart card chip using a Omnikey 3121 usb reader into a VB program. I have heard that Microsoft have smart card functions built into the .net framework but I am struggling to find any information on how to implement this. Can anyone point me in the right direction.
Many thanks
|
|
|
|
|
I am not familiar with ANY smart card technology.
But what i have managed to determine with a help from our friend Google is;
Omnikey 3121 is a standard PC/SC compliant device. It is also compliant USB-CCID device, so does not require any additional drivers. It will just plug and play.
SmartCards API are built directly into the Platform SDK for windows.
A white paper can be downloaded from here[^]
I dare say if you go and search Google a little, you will be able to find out what you need.
|
|
|
|
|
Thanks for your help Dave, I will have a good read through that document
|
|
|
|
|
mates,
how to add barcode control in crystal report, in access i used the Microsoft BarCode Control 9.0. i want it to add also in cr. in short, i want to add activex control.
thanks in advance.C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Component is Not supporting in Crystal Report. You can Use Barcode Image.
You can User Barcode Fonts to Create Barcode in Crystal Report.If you can think then I Can.
|
|
|
|
|
Hi all,
I have an issue that has nearly been causing my poor VB.net non-savvy brain to melt.
I need to be able to copy a certain url into a textbox, and then be able to extract certain parts of that URL and then place them in a data grid.
Thankfully most of the parts I need in the URL are seperated by ampersands (&) which should make detecting them easier..?
The Url might look something like below:
adredirect?readform&admodel=mazda3&unid=ff501d42303c0601ca2574790021874b&make=generalnews&model=safety&time=0&client=1&adtype=useful&page=news&site=va
I need to be able, for example, to extract the following values out of the above URL:
admodel=mazda3
make=generalnews
model=safety
page=news
and somehow convert those above values into:
mazda3
generalnews
safety
news
THEN I have to place those values into a data grid... lol
I have a certain idea how to do it, but I have no idea how to VB it.
Any insight or help would be appreciated. And forgive me if my explanation is lacking.
Thanks in advance!
|
|
|
|
|
Hi FloodLight
I take it that the keywords (admodel,make,model,page) remain constant and only the values change, then you could use a function like this :
Private Function ExtractValue(ByVal URL As String, ByVal Category As String) As String
Dim strValue As String = String.Empty
Dim strSplitURL() As String = Split(strUrl, "&" & Category & "=")
Dim strSecondSplit() As String = Split(strSplitURL(1), "&")
strValue = strSecondSplit(0)
Return strValue
End Function
then you could just call it like this ExtractValue(strUrl, "admodel")
Hope this helps.
|
|
|
|
|
zimvbcoder you are an absolute legend! I actually got it to work, thanks so much for your help
|
|
|
|
|
No Worries. Thats what I'm here for.
|
|
|
|
|
Thanks again to Zimvbcoder for his awesome code which worked perfectly for me.
</td><td>9</td><td>1.59 KB</td><td>9</td><td>9</td>
Hi again, stuck with another dilemma Out of the above HTML I need to extract the values inbetween the > and the <.
So in this case, I would need to extract: 9, 1.59 KB, 9, 9
The HTML string could be any length... it will never be a fixed length
Again, any assistance will be hugeley appreciated!
|
|
|
|
|
Hi floodlight.
The answer to this really depends on the HTML to parse. For a parser to work there would have to be some sort of standardisation in the HTML pages parsed. i.e table styles would have to be known in advance so that you could extract the table contents etc. Writing an HTML parser is definitely not a trivial task. Once you have a string representing the rows and columns of a specific table then you can still use the split method to retrieve the cell contents. If you could give me a more complete example of your HTML then maybe I could help you further.
|
|
|
|
|
Hi again Zimvbcoder,
I can give you the exact string I will be parsing.
You will see that some of the string contains the fields you helped me with in an earlier post...
Okay, here's the string (it's one row from a HTML table) it's a little long lol, so you may need to paste into a HTML editor so you can see it clearly
<tr><td class="aws"><a href="http://www.goauto.com.au/mellor/mellor.nsf/adredirect?readform&admodel=outlander&unid=3f98ba22ac6414b7ca2576e00004bad6&make=general%20news&model=&time=0&client=1&adtype=useful&page=news&site=va" target="url">/mellor/mellor.nsf/adredirect?readform&admodel=outlander&unid=3f98ba22ac6414b7ca2576e00004bad6&make=general%20news&model=&time=0&client=1&adtype=useful&page=news&site=va</a></td><td>9</td><td>1.59 KB</td><td>9</td><td>9</td><td class="aws"><img src="/icon/other/hp.png" width="261" height="4"><br><img src="/icon/other/hk.png" width="249" height="4"><br><img src="/icon/other/he.png" width="261" height="4"><br><img src="/icon/other/hx.png" width="261" height="4"></td></tr>
|
|
|
|
|
Hmmm. This will be quite complicated and will take more time than I am unfortunately able to give right now. Your best bet is to try a loop first splitting the string by <td> and then by <td/>. This theoretically should give you an array of the table columns, although this is going to be messed around by property declarations in the column definitions i.e <code>class="aws"</code>. This is going to be messy, especially with the double quotes in the html, so you won't be able to store this as a single string. Sorry I can't be of more help right now.
|
|
|
|
|
No worries mate, I appreciate you taking the time to look at it anyway
I'll keep plugging away at it and see what trouble I can get myself in to, haha!
|
|
|
|
|
How do I do a transparent label in Windows mobile vb.net 2008? Label.backcolor = color.transparent does not work. Thanks
|
|
|
|
|
No, it should work. May be you have to check some other thing.
|
|
|
|
|
Hi CodeProject ,
The problem is I am drawing a LineShape control from Microsoft PowerPacks controls .dll , I am also moving the line when MouseDown,MouseMove,MouseUp,
But i am not able to drag the line in the correct position like in VB.net 2005
MouseDown
fdragging =true
startx =0
starty =0
MouseMove
m_control.StartPoint = New Point((m_control.StartPoint.X + e.X) - startx, (m_control.StartPoint.Y + e.Y) - starty)
m_control.EndPoint = New Point((m_control.EndPoint.X + e.X - startx), (m_control.EndPoint.Y + e.Y - starty))
MouseUp
fdragging = false
& the things are i am not able to handle the MouseUp event also after mousemove the pointer is slipping from the line & not able move the line in the correct direction.
Regards,For1206
|
|
|
|
|
On the mouse down, does the startx, starty not have to be the point relative to the main form position? Then on the mouse move, you use the move offsets to relocate the line relative to startx and starty.
|
|
|
|
|
Hi Dave ,
I m using a split container.On Panel1 i created a panel and on that i am drawing the line .& trying to move on the MouseDown ,Move,Up for LineShape Controls.
But i am not able to drag the line while placing the cursor at any position on the line due to the logic problem exactly & loosing the grip of the line while placing the mousepointer & dragging the line not firing the MouseUp .
Regards,For1206
|
|
|
|
|
See code below, i have just tried this and it is fine. Form, with SplitContainer, and A PowerPack Line in the right Panel
Private _lineDrag As Boolean = False
Private _x As Integer = 0
Private _y As Integer = 0
Private Sub LineShape1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles LineShape1.MouseDown
If e.Button = Windows.Forms.MouseButtons.Left Then
_lineDrag = True
_x = e.X
_y = e.Y
End If
End Sub
Private Sub LineShape1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles LineShape1.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left And _lineDrag Then
LineShape1.X1 = (LineShape1.StartPoint.X + e.X) - _x
LineShape1.X2 = (LineShape1.EndPoint.X + e.X) - _x
LineShape1.Y1 = (LineShape1.StartPoint.Y + e.Y) - _y
LineShape1.Y2 = (LineShape1.EndPoint.Y + e.Y) - _y
Me.Refresh()
End If
End Sub
Private Sub LineShape1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles LineShape1.MouseUp
If e.Button = Windows.Forms.MouseButtons.Left Then
_lineDrag = False
End If
End Sub
|
|
|
|
|
Hi Dave ,
Thanks its moving fine .
1) But my LineShape controls is slipping from the mouse pointer while moving . So not able to drag the line in a correct way ,Freely .
2) I am able to get the traces of line if resized on the Start point or End Point handles . & i have to refresh the Panel i.e., Parent of the Shapecontainer .
My way of doing the things .
SplitContainer -> Panel1 -> New Panel at runtime -- This Panel is parent for the shape controls .
The Same problem also coming for RectangleShape & Oval Shape also.
I have to press the mousebutton very forcefully & drag the control otherwise slipping from my mousepointer .
What to do ??For1206
modified on Friday, February 19, 2010 12:43 AM
|
|
|
|