The Wayback Machine - https://web.archive.org/web/20090302185337/http://www.codeproject.com:80/script/Forums/view.aspx?fid=1646
Click here to Skip to main content
5,936,723 members and growing! (16,573 online)
Announcements
* Bold indicates new messages since 8:53 2 Mar '09
BullFrog Power
Advanced Search
Sitemap

Visual Basic


Home > Forums > Visual Basic

 Msgs 1 to 25 of 3,878 (Total in Forum: 89,474) (Refresh)FirstPrevNext
AdminHow to get an answer to your questionadminChris Maunder17:30 10 Nov '05  
For those new to message boards please try to follow a few simple rules when posting your question.
  1. Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
  2. Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
  3. Keep the subject line brief, but descriptive. eg "File Serialization problem"
  4. Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
  5. If you are posting source code with your question, place it inside <pre></pre> tags, or click the "Ignore HTML tags in this message" check box.
  6. Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
  7. Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
  8. Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
  9. If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
  10. No advertising or soliciting.
  11. We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.

cheers,
Chris Maunder
CodeProject.com : C++ MVP

QuestionHyper Terminal to VB 6.0 or VB.Net 2008memberIshaan Karnik3hrs 43mins ago 
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.
AnswerRe: Hyper Terminal to VB 6.0 or VB.Net 2008mvpDave Kreskowiak1 hr 54mins ago 
WHy are you bothering with HyperTerminal when .NET 2.0 has the SerialPort class to support communication over the serial ports?


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




QuestionMigration from framework 2.0 to 3.5memberpraveenkumar palla6hrs 17mins ago 
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
AnswerRe: Migration from framework 2.0 to 3.5memberEddy Vluggen6hrs 3mins ago 
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 Smile

I are troll Smile

GeneralRe: Migration from framework 2.0 to 3.5memberpraveenkumar palla5hrs 59mins ago 
Thanks for the soon reply
Questionmake exe file in vb,netmemberwafaajaradat7hrs 29mins ago 
hi'
please any one could help me to make my project an exe file using vb.net
thanks alot Smile
wafaa
AnswerRe: make exe file in vb,netmemberRupesh Kumar Swami7hrs 5mins ago 
are you navigate to Debug/Release directory of your project?

whenever you run application, then a updated EXE is generated automatically in above directory

Rupesh Kumar Swami
Software Developer,
Integrated Solution,
Bikaner (India)

My Company
Award: Best VB.NET article of June 2008: Create Column Charts Using OWC11

QuestionHow i can adjust the client area of the MDI formmemberavinashpatil3484new8hrs 12mins ago 
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
AnswerRe: How i can adjust the client area of the MDI formmvpDave Kreskowiak5hrs 44mins ago 
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



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Questionabout .net framework 3.5memberrajmca.g8hrs 26mins ago 
Please tell me where i can find the information and coding about WCF,WPF,Linq in .net framework 3.5.......
AnswerRe: about .net framework 3.5memberABitSmart8hrs 10mins ago 
MSDN[^]
AnswerRe: about .net framework 3.5memberEddy Vluggen7hrs 58mins ago 
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 Smile

I are troll Smile

QuestionHow To Open A File + Sourabh DasmemberDot Net Jantu9hrs 57mins ago 
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,

AnswerRe: How To Open A File + Sourabh DasmemberJoeSharp9hrs 45mins ago 
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
GeneralRe: How To Open A File + Sourabh DasmvpLuc Pattyn3hrs 53mins ago 
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.

Smile

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


QuestionSet my program as default.memberGagan.2013hrs 50mins ago 
Hi all...

Please suggest me how can I make my "Image Viewer" as default program for images through VB.Net.

Thanks.

Gagan
AnswerRe: Set my program as default.memberBharat Jain10hrs 50mins ago 
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

GeneralRe: Set my program as default.memberGagan.2010hrs 14mins ago 
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
Questionlistview to a word documentmemberspruha36913hrs 51mins ago 
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

AnswerRe: listview to a word documentmemberAndy_L_J12hrs 37mins ago 
Google Office Interop

http://www.google.com.au/search?sourceid=navclient&hl=en-GB&ie=UTF-8&rlz=1T4DAAU_en-GBAU243AU243&q=Office+Interop[^]

I don't speak Idiot - please talk slowly and clearly

I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury

QuestionControl Collections with Multiple Formsmembercarterza13hrs 54mins ago 
Hello,

I'm having some difficulties with Control Collections and multiple forms. I set up a control collection to use on the second form of my project. However, I am getting the following error in the .vb file for the second form:

Argument not specified for parameter 'host' of 'Public Sub New(host As System.Windows.Forms.Form)'.

However, in the New subroutine of the control collection there is clearly a link made between the two:

    Public Sub New(ByVal host As System.Windows.Forms.Form)
Form2 = host
Me.AddNewTextBox()
End Sub


It's confusing me because when I type Form2 = host, I don't see a Form2 class available in the drop down menu of MS Studio 2008, only a reference to the ReadOnly object.

I would greatly appreciate any help you all could provide me with.

Thanks, and have a great week!
GeneralRe: Control Collections with Multiple FormsmvpLuc Pattyn13hrs 30mins ago 
Hi,

Error messages contain file names and line numbers, they often point you to the exact location of the problem. In general it is useful to tell your IDE to always display line numbers in editor windows; for Visual Studio, look under menu Tools/Options/...

That, or a little google search on "Argument not specified for parameter" will tell you exactly what the problem is. I leave it up to you to discover it.

Smile

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


GeneralRe: Control Collections with Multiple Formsmembercarterza13hrs ago 
Thanks for the Reply Luc,

I actually figured it out, and when creating the global control collection object in my Form2 class I was using the statement Private _MyControlCollection As New ControlCollection. The New was causing the problem.

I should have been using the statement Private _MyControlCollection As ControlCollection.
QuestionSQL queries - Where is my mistakememberivo758:50 1 Mar '09  
i have 2 table Rabotnici and zaplata
this my code

Dim a As Date
Dim b As Date
a = FormatDateTime(DateTimePicker1.Value, DateFormat.ShortDate)
b = FormatDateTime(DateTimePicker2.Value, DateFormat.ShortDate)
Dim selectData = "select rabotnici.* from rabotnici,zaplata where rabotnici.rabotnik_name <>zaplata.worker_name and rabotnici.data_rabota<>zaplata.data_rabota and rabotnici.rabotnik_name='" & ComboBox1.Text & "' and rabotnici.data_rabota>='" & a & "' and rabotnici.data_rabota<='" & b & "' order by rabotnici.data_rabota"


but have a error I don't know where is my error

give me this error "Data type mismatch in criteria expression"

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Last Updated 9 Aug 2007
Web10 | 2.2.1042 | Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use