Click here to Skip to main content
15,887,914 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
r_mohd10-Mar-09 16:33
r_mohd10-Mar-09 16:33 
AnswerRe: How do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
Dave Kreskowiak10-Mar-09 18:18
mveDave Kreskowiak10-Mar-09 18:18 
GeneralRe: How do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
Pankaj Garg10-Mar-09 19:55
Pankaj Garg10-Mar-09 19:55 
GeneralRe: How do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
Dave Kreskowiak11-Mar-09 2:59
mveDave Kreskowiak11-Mar-09 2:59 
QuestionCharacter Encoding and .bat files Pin
Alan Burkhart10-Mar-09 15:34
Alan Burkhart10-Mar-09 15:34 
AnswerRe: Character Encoding and .bat files Pin
Dave Kreskowiak10-Mar-09 18:17
mveDave Kreskowiak10-Mar-09 18:17 
GeneralRe: Character Encoding and .bat files Pin
Alan Burkhart10-Mar-09 19:04
Alan Burkhart10-Mar-09 19:04 
QuestionVB 2008 Pin
Manfred ramirez10-Mar-09 10:22
Manfred ramirez10-Mar-09 10:22 
Hello I am trying to create a windows form application with VB 2008 and i am intending to read info from any textbox or whatever and export the data to word I do not know how to do it, I did some research and this is what I found :
Dim oWord As Word._Application()
oWord = New Word.Application()

But is giving me errors the word.application declaration seems to work with older version but not 2008. Please help.

I also found this code but it does not work:

Public Module DriveWord

Public Sub Main()

'Start Word in the background
Dim App As New Word.Application()
App.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone

'Create a new document
Dim Doc As Word._Doucment = App.Documents.Add()

Console.WriteLine()
Console.Writeline("Creating New Document")
Console.Writeline()

'Add a heading and two lines of text
Dim Range As Word.Range = Doc.Paragraphs.Add().Range

Range.InsertBefore ("Test Document")
Range.Style = "Heading 1"

Range = Doc.Paragraphs.Add().Range
Range.InsertBefore("Line one." &vbCrLf & "Line two.")
Range.Font.Bold = True

'Save and close the current document.
Doc.SaveAs(App.StartupPath & "\test.doc")
Doc.Close()
Doc=Nothing

End Sub

regards,
Questionclass structure Pin
captainmogo10-Mar-09 7:48
captainmogo10-Mar-09 7:48 
AnswerRe: class structure Pin
Luc Pattyn10-Mar-09 8:26
sitebuilderLuc Pattyn10-Mar-09 8:26 
GeneralRe: class structure Pin
captainmogo10-Mar-09 8:48
captainmogo10-Mar-09 8:48 
GeneralRe: class structure Pin
Luc Pattyn10-Mar-09 8:55
sitebuilderLuc Pattyn10-Mar-09 8:55 
Questionproblem in printing Pin
Jagz W10-Mar-09 7:11
professionalJagz W10-Mar-09 7:11 
AnswerRe: problem in printing Pin
Dave Kreskowiak11-Mar-09 2:50
mveDave Kreskowiak11-Mar-09 2:50 
QuestionProgress bar and FTP server Pin
Farid_Bilal10-Mar-09 6:33
Farid_Bilal10-Mar-09 6:33 
AnswerRe: Progress bar and FTP server Pin
0x3c010-Mar-09 6:55
0x3c010-Mar-09 6:55 
QuestionTreeview duplicating nodes Pin
garfield18510-Mar-09 4:45
garfield18510-Mar-09 4:45 
AnswerRe: Treeview duplicating nodes Pin
Jon_Boy10-Mar-09 9:07
Jon_Boy10-Mar-09 9:07 
GeneralRe: Treeview duplicating nodes Pin
garfield18510-Mar-09 21:59
garfield18510-Mar-09 21:59 
GeneralRe: Treeview duplicating nodes Pin
Jon_Boy11-Mar-09 3:36
Jon_Boy11-Mar-09 3:36 
GeneralRe: Treeview duplicating nodes Pin
garfield18511-Mar-09 3:56
garfield18511-Mar-09 3:56 
QuestionDelete from Mutiple listboxes at the same time Pin
Ebrima Sawaneh10-Mar-09 2:08
Ebrima Sawaneh10-Mar-09 2:08 
AnswerRe: Delete from Mutiple listboxes at the same time Pin
Jon_Boy10-Mar-09 9:13
Jon_Boy10-Mar-09 9:13 
Questionresizing flash sockwave object in vb.net Pin
hrishiS10-Mar-09 1:25
hrishiS10-Mar-09 1:25 
Questionvb.net set up Pin
hrishiS10-Mar-09 1:22
hrishiS10-Mar-09 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.