|
i have the code below
MsgBox(Me.tbtitle.Text)
My.Settings.ArrayName.Add(Me.tbtitle.Text)
the "Me.tbtitle.Text" has "moo" in it, but when i do the above value in the settings say that i put a null value in, the msgbx confirms the value "moo" before it add it, also ArrayName is a array list with the scope set to user
plz help
J.Hardy
|
|
|
|
|
This made no sense at all. Are you saying that when this code executes, it's not putting the value of the Text property in the array?? How are you determining this??
|
|
|
|
|
basically if i put this
My.Settings.ArrayName.Add("moo")
it returns:
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object.
J.Hardy
|
|
|
|
|
dont worry i fixed it i just had to put
My.Settings.ArrayName = New ArrayList
but thanks for your help
J.Hardy
modified on Wednesday, March 4, 2009 2:04 AM
|
|
|
|
|
I am doing a project where i recieve data through a RFID reciever and planning to extract the data on hyper terminal. I have heard their are com based files aviable for this . Is there some way so that i can get the data from Hyper Terminal to VB or VB.Net.
|
|
|
|
|
WHy are you bothering with HyperTerminal when .NET 2.0 has the SerialPort class to support communication over the serial ports?
|
|
|
|
|
Hi,
We done one application in .net 2005 and used (sql server, web services and reflection).
Now we want to migrate the application to frame work 3.5.
Please let me know if any deprecated methods and what should i take care
Please guide me to analyse the impact of this migration
Thanks in Advance
|
|
|
|
|
You can safely assume that if it runs in 2.0, it will run under 3.5 - the 2.0 framework is "embedded" in the 3.5 framework, so to speak
I are troll
|
|
|
|
|
Thanks for the soon reply
|
|
|
|
|
If you use IEnumerable<t>s and other collections, you may also want to take a look at LINQ. Applied correctly it makes life much simpler
|
|
|
|
|
hi'
please any one could help me to make my project an exe file using vb.net
thanks alot
wafaa
|
|
|
|
|
are you navigate to Debug/Release directory of your project?
whenever you run application, then a updated EXE is generated automatically in above directory
|
|
|
|
|
You are plainly in desperate need of reading a VB.NET book. If you don't have an exe, you've never run your project, or even compiled it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello Friends
Actually i want to set the client area of MDI form for its child windows, because whenevr i maximize the child window it starts from (0,0) co-ordinates of MDI form. but bec i have tree viwver in my mDI form i have to change it so that i can see my child window and tree view too.
plz help me out
Avinash patil
|
|
|
|
|
You'll have to enumerate the Control collection of the MdiParent form. Look for a control of Type "MdiClient". When you find it, you can call it's SetBounds method or set it's Location to appropriate values.
For Each c As Control In MyMdiParent.Controls
If TypeOf c Is MdiClient Then
Dim client As MdiClient = DirectCast(c, MdiClient)
client.Location = New Point(...)
Exit For
End If
Next
|
|
|
|
|
Please tell me where i can find the information and coding about WCF,WPF,Linq in .net framework 3.5.......
|
|
|
|
|
|
On the internet, in your library.. Do a Google, and you'll drown in the resources available to you.
I suggest you start out with the "How Do I" video-series from MSDN;
* For beginners[^]
* About WPF[^]
* Getting started with LINQ[^]
* LINQ video's from the ASP.NET[^] website.
Enjoy
I are troll
|
|
|
|
|
Hi All,
I have a text box in which a file path is displayed. A button to click and open the file. Code executes properly but the file dosent open.
Here is the Code:
Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click
Try
strIOPath = ucFile.TxtCode.Text
If strIOPath = "" Then
ShowMessage("No File For This Transaction")
Exit Sub
End If
If IO.File.Exists(strIOPath) Then
File.Open(strIOPath, FileMode.Create)
Else
ShowMessage("File Not Found")
End If
Catch ex As Exception
ShowMessage(ex.Message)
End Try
End Sub
Thanks and Regards,
|
|
|
|
|
hi
File.Open(strIOPath, FileMode.Create)
FileMode.Create = Specifies that the operating system should create a new file. If the file already exists, it will be overwritten.
try with FileMode.Open
regards
|
|
|
|
|
hi,
if File.Open does not do what you expect, then maybe your expectations are incorrect. Go and check the documentation. That is what it is for.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi all...
Please suggest me how can I make my "Image Viewer" as default program for images through VB.Net.
Thanks.
Gagan
|
|
|
|
|
http://www.codeproject.com/KB/vb/VBFileAssociation.aspx[^]
Here is what you are looking for , "Image Viewer" as default program for images through VB.Net , you need to make a registry entry to associate .jpg, .bmp , etc file to your application and then when ever some body clicks on this file your application will be launched and name of the file (image file ) will come as command line arguments , you can than use it and display image in you Image Viewer
Thanks
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|
|
Thanks for your suggestion but I already did that.
Now I can open image files through my program and Windows's default program.But the main thing is that I want to make my "Image Viewer" as default program for images through VB.Net programming.The same thing can be done as right click on image->properties->Change.(open with program).
Please help me how can I do it through programming.
Thanks.
Gagan
|
|
|
|
|
how can i write or transfer or save the items from listview to a
word document or a text file?
i m using vb6
pls guide me.
purvas
|
|
|
|