944,204 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 8850
  • VB.NET RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Apr 18th, 2004
0

Re: Anyone a VB.NET Guru?

hi im quite new to vb.net and was wondering whether you know how i could print pictures stored in a file with vb.net?

thanks

Quote originally posted by Tekmaven ...
The varient datatype equivlent in VB.NET is Object.

Here's a sample:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyVar as Object
MyVar = "Hello"
MyVar = 10 + 10
MyVar += 50
MyVar = New FileStream("c:\test.txt", FileMode.Open)
MyVar = Nothing
End Sub

You can set basically anything to it :-). I don't reccomend using this type often, it takes lots of memory.

Also, you may want to set your variable equal to nothing when your finished with it, just in case the GC dosen't get to it fast enough.
oni
Reputation Points: 10
Solved Threads: 0
Newbie Poster
oni is offline Offline
3 posts
since Apr 2004
Sep 2nd, 2004
0

Re: Anyone a VB.NET Guru?

.........
does vc++ .net also convert to MSIL????but according to my knowledge......vc++ .net does not convert to msil like other languages
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dmohanty is offline Offline
13 posts
since Sep 2004
Sep 2nd, 2004
0

Re: Anyone a VB.NET Guru?

VC++.NET compiles to MSIL or standard machine code. You can set it in the project properties. (The /clr switch)
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Sep 3rd, 2004
0

Re: Anyone a VB.NET Guru?

Hmmm....
Can Any Body Say How To Hide Codes From Being Exposed....
As in Isladm.exe we can see some codes......
if i pass the password for my DataBase in my code can be exposed.......
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dmohanty is offline Offline
13 posts
since Sep 2004
Sep 3rd, 2004
0

Re: Anyone a VB.NET Guru?

Don't embed your password into your app; it's very bad practice. What if the password changes? You'd need to recompile every time..
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Sep 6th, 2004
0

Re: Anyone a VB.NET Guru?

Actually i want to hide the database password from my clients.......if they will give the password then they will have authorities over database what i dont want so what to do???
i cant embded password in application for exposure risk.......so is there any good way to do those????
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dmohanty is offline Offline
13 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Saving Images In Database
Next Thread in VB.NET Forum Timeline: Changeing Font Based on Reg Settings





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC