Jump to content
Xtreme .Net Talk

hawk1ns

Avatar/Signature
  • Posts

    37
  • Joined

  • Last visited

Everything posted by hawk1ns

  1. thanks , but... yes the solution works if i leave the line at : Dim writer As New System.IO.StreamWriter("C:\test.txt") this creates a new file at that location called test.txt i need to create a veriable like.. nameoffile = "c:\affwiz\html\" & TextBox6.Text & ".htm" and then use : Dim writer As New System.IO.StreamWriter (nameoffile) but when i do this i get a blue line under the write ? so how can i change where it says C:\test.txt to my nameoffile veriable ? thankyou for your help.. Regards Carl
  2. C:\affwiz\DataForm1.vb(1062): Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: 'Public Overloads Sub New(path As String)': Argument matching parameter 'path' narrows from 'System.Object' to 'String'. 'Public Overloads Sub New(stream As System.IO.Stream)': Argument matching parameter 'stream' narrows from 'System.Object' to 'System.IO.Stream'.
  3. i tried that but something wrong... Dim nameoffile : Dim savetext nameoffile = "c:\affwiz\html\" & TextBox6.Text & ".htm" Dim writer As New IO.StreamWriter(nameoffile) writer.Write(filesave.Text) writer.Flush() Above is what i tried , i get an error under Writer ( Dim Writer ) also i need to save over 100 files and the name for each file will change every time , thats why i use the nameoffile string, have i used this correctly ? Regards Carl
  4. hello , in an older version ( vb 5 ) i used this to save content of a textbox to a file... nameoffile = "html\" & filename & ".htm" Open nameoffile For Output As #2 Print #2, Text9.Text Close #2 this worked just fine , but i cant seem to get it working on .net ? any suggestions please... Kind Regards Carl
  5. thankyou :)
  6. hello :) can you tell me how i would do this in vb.net please if mid(body,t,1) = chr$(13) then Regards
  7. sorry i think i have found a tread here http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49944&highlight=left+string any help would still b welcome
  8. Hello guys .... hope all is well.. Right i wanted help with this if you would please.. i have an older code in vb5 , i used the left and right sting commands to split a variable into 2 then insert other veriable between them... before = Left( bodytext , t ) after = right( bodytext , u ) newvariable = before & inserted & after i see these dont seem to be available on vb.net can you tell me what i should use instead please? Regards Carl
  9. Thankyou for your help here.... I much appreciate it ..... Unfortunatly , i guess i know nothing it seems about what i need to do , its probably so simple .... i have used VB6 and got a basic qualification in it so i am not an absolute beginner, , with vb5 + 6 i understood what i needed to do , open form , drag a data option from toolbox , change properties to suite database , drag over a text box , change properties to suite and display a chosen field in the database , this all took about 2 mins.... it seems so easy that way , ( it was ...) again i much appreciate the help , its great ... but the above code is very new to me ? bfill and ddusers ? what goes here ? whats on the form ? where in the code do i put the above code ?? Can anyone explain how i do it from the form design screens ? 1 : open form 2 : choose oledbconnect 3 : change properties to..... 4 : put a text box on form 5 : change properties to... can someone tell me in that sort of way :) can it be done this way ? Thanks again , please dont give up on me :) Kind Regards Carl
  10. nope sorry , i just dont get what to do here .... Please understand i know little about databases and vb.net... can someone explain to me how to connect to database set up the basics so that i can view the fields in a text box.. all in design view ? Pretend i am 3 yrs old :) OR can someone send me some code that already does this ??? OR can i send someone else the code i have for vb5 and have them convert it to vb.net ??? Regards Carl
  11. thanks i will try this :) I am use to vb5 but .net has completley thrown me !!! can you give a step by step like.. open form put on a dbconnect object... config to... add a text box config to... etc etc... Regards Carl
  12. Hello... i am new to vb.net , i used vb5 before this.. Right i am sure you guys know the answers to this ... I have a vb 5 program that uses mainly text boxes that display contents of a database i have in dbase IV format.. it was easy to set this up , just add the text boxes and add a data option to the form , then just configure the data properties to read the dbase IV file then the text box to display fields....EASY ....... But !!!! now i have vb.net standard... I know very little about databases or connections to them.. I cant see the logic in what i need to add to the form in order to connect to the database then get text boxes on the form to display fields ..... ok this is probably simple but i cant do it ? can someone give me a step by step on how i connect to my dbase IV file then display the fields in seperate text boxes.... Thankyou for your help Regards Carl
×
×
  • Create New...