Visual basic 6 and .net

vbmaster

Junior member
  • Jun 29, 2008
    132
    1
    18
    37
    in Al****'s heart
    TDM said:
    ela wedak machan.....matath podi hlp ekak one,.,

    1)machan, machine eke thiena text file ekak(i mean .txt extention file) ethule thiyena wrds read karaganda i vb walin mokak hari .txt extention ekata save karandai.. karana heti kiyala denda puluwanda...,.,.

    2) machan mokak hari extention ekak vb ethuledima define karna vidihak kiyanna puluwanda..(without manually configering a new extention )
    for an example can you tell me the way to creat a extention like *.tdm :P:P ..and also machan a wage extention ekakin file ekak (text) save karana hetith ehema save karapu ekak read karana hetith poddak kiyanawada...


    (IN VB 6)
    thanX mate....i'm waiting 4 an answr..k :P:P:P:P:P

    easima vidiha dennada

    ad0d6cecbb.jpg


    pennala thiyena eka D click karala

    next > finish


    vb2.bmp


    file > save , code tika mehema venas karanna , red colour eva


    Private Sub mnuFileSave_Click()
    Dim sFile As String
    If Left$(ActiveForm.Caption, 8) = "Document" Then
    With dlgCommonDialog
    .DialogTitle = "Save"
    .CancelError = False
    'ToDo: set the flags and attributes of the common dialog control
    .Filter = "TDM (*.TDM)|*.TDM"
    .ShowSave
    If Len(.FileName) = 0 Then
    Exit Sub
    End If
    sFile = .FileName
    End With
    ActiveForm.rtfText.SaveFile sFile
    Else
    sFile = ActiveForm.Caption
    ActiveForm.rtfText.SaveFile sFile, 1
    End If

    End Sub


    save as eka mehema

    Private Sub mnuFileSaveAs_Click()
    Dim sFile As String


    If ActiveForm Is Nothing Then Exit Sub


    With dlgCommonDialog
    .DialogTitle = "Save As"
    .CancelError = False
    'ToDo: set the flags and attributes of the common dialog control
    .Filter = "TDM (*.TDM)|*.TDM|Text File|*.txt|All Files (*.*)|*.*"
    .ShowSave
    If Len(.FileName) = 0 Then
    Exit Sub
    End If
    sFile = .FileName
    End With
    ActiveForm.Caption = sFile
    ActiveForm.rtfText.SaveFile sFile, 1

    End Sub
    file > open , eka mehema


    Private Sub mnuFileOpen_Click()
    Dim sFile As String


    If ActiveForm Is Nothing Then LoadNewDoc


    With dlgCommonDialog
    .DialogTitle = "Open"
    .CancelError = False
    'ToDo: set the flags and attributes of the common dialog control
    .Filter = "TDM (*.TDM)|*.TDM|Text File|*.txt|All Files (*.*)|*.*"
    .ShowOpen
    If Len(.FileName) = 0 Then
    Exit Sub
    End If
    sFile = .FileName
    End With
    ActiveForm.rtfText.LoadFile sFile
    ActiveForm.Caption = sFile

    End Sub



    vb3.bmp



    i'm watting ur reply
     
    Last edited:

    vbmaster

    Junior member
  • Jun 29, 2008
    132
    1
    18
    37
    in Al****'s heart
    Tyronne said:
    Ane Mata Crystal Reports gana poddak kiyanawada?

    Sorry machan mamanam Crystal Reports use karalama nehe ,mokada mama use karanne magema reports nisa ,So i get this ans from Yahoo answer
    Crystal Reports' is a popular third party package that is included with Visual Basic, which allows you to create reports for your application. The package consists of a designer - where you can design and test the reports, Crystal Reports API calls and Crystal Reports control.

    Note: Crystal Reports is shipped and installed as part of the VB installation package except in VB6. This can be found in \common\tools\crysrep double click on crystl32.exe to install.

    Creating a Report
    =================

    VB5 or less
    To access the Crystal Report Designer, select the Report Designer from the Add-In menu in the VB environment

    VB6
    To access the Crystal Report Designer, a Start menu group and shortcut will have been automatically created.

    Initially there is one tab on the report - Design - when you select the print preview to see how the report looks with data in, another tab named Preview will appear.

    While you are in design mode you can draw and arrange the data fields on the report. This is done in a similar way to creating controls on a form in VB.

    Drag and drop the fields you want on to the report. Now if you run it by selecting Print Preview. Now save the report and we have a template that now can be used in VB.

    Note: Turn off the Save Data with report option if you want the data to contain new information each time the report is used. Going to the File menu, selecting Options and clicking on the Reporting Tab sets the option.

    Using Crystal Reports in VB
    ===========================

    When you have designed your report, the saved file should have an extension .rpt. You can use this report with the Crystal Report control to display or print your report in a VB application.

    Note:Check the crystal report help files for the files you need to distribute with the control. You will also need any .rpt files that you have created

    You will have to add the Crystal Report control to the toolbox, this is done by going to the Project menu and selecting Components, then looking down the list for the control and clicking on it

    To use the control add it to a form and set the following properties

    * ReportFileName - The path and the filename of the .rpt file you have created

    * DataFiles(0) - The path and the filename of the database that you want it to use.
    If this is left blank it will use the one in the report.

    * SelectionFormula - The formula to select the subset of data that you want.

    * Destination - 0 to Preview, 1 to Print
    To display the report use the .printreport method i.e CrystalReport1.PrintReport

    There is alot more to crystal reports than I have covered here, but I hope it gives you an idea of how Crystal Reports works.

    tutorial search
    tutorial video
     
    Last edited:

    vbmaster

    Junior member
  • Jun 29, 2008
    132
    1
    18
    37
    in Al****'s heart
    koondeGoda said:
    mamath VB.NET valin Diary programe ekak heduwa. meka 100% mage vedak. please download it . and make your comments , suggestions , shortcomings about it. highly appreciate it .
    if u wan't u can give me your programms . let's share those .

    machan mama baluwa oyage diary program eka
    So mata thiyena gataluwa nam barapathalai , Security eka nam godakma adui, user frindly gathiya thwa tikak vadi karanam hodai.
    ane machan tharahaganna nam epa mama ideas denne , oyage wed nam ati vishishtai

    1 Haking software meken dapu password eka hoyaganna puluwan ,mama meka haduwe oyage code mokuth balanne nathuwa , meken oyage "*.codref" read karala balanna

    2. password dammata wadak nehe neda , liyapu eva "*.txt" file onema kenekuta kiyawanna puluwan :confused:

    mey dakatama hodama vidiha thamai hodata encrypt karana eka , hoyaganna amaru widihata encrypt karanna code onenam illanna ,mama dennam
     

    TDM

    Well-known member
  • Jan 7, 2007
    2,347
    25
    48
    36
    Kandy
    thnX 4 ur valuble help macho..,,.
    machan thawa podi prashnayak thiyenawa....
    .............
    vb3.bmp


    1..)machan mata one..me .tdm kiyana file eka double click karanakota mama hadapu programm eken open wena vidihata....(without configuring the windows settings manually..)

    2...)thawa machan.,.e files manually nethuwa(without a user permision) specific path ekakata save karaganne kohomada?

    3...)3rd is..is there any way that i can read a specific wrd in a specific line in a txt file..
    ..

    please hacki ikmanata mewata solutions denna ...ela ela .....thanks ...macho..,
     

    vbmaster

    Junior member
  • Jun 29, 2008
    132
    1
    18
    37
    in Al****'s heart
    1..)machan mata one..me .tdm kiyana file eka double click karanakota mama hadapu programm eken open wena vidihata....(without configuring the windows settings manually..)

    mekanam matath podi prashnayak ,mekata time denna
    open with > browse > oyage EXE file eka ekaparak dunnoth athi (but manually So it isn't solutions for ur prob)
    2...)thawa machan.,.e files manually nethuwa(without a user permision) specific path ekakata save karaganne kohomada?


    mata therena vidihata mekata ans 3kak mata thiyenawa

    1 specific path > form load event eke
    dlgCommonDialog.InitDir = "Ur specific path"

    2 without a user permision >
    frmDocument ekata CommonDialog ekak ADD karanna . eke name eka "dlgCommonDialog"

    Private Sub rtfText_Change()
    Dim sFile As String
    If Left$(Me.Caption, 8) = "Document" Then
    With dlgCommonDialog
    .DialogTitle = "Save"
    .CancelError = False
    'ToDo: set the flags and attributes of the common dialog control
    .Filter = "TDM (*.TDM)|*.TDM"
    .ShowSave
    If Len(.FileName) = 0 Then
    Exit Sub
    End If
    sFile = .FileName
    End With
    ****rtfText.SaveFile sFile, 1
    Else
    sFile = Me.Caption
    ****rtfText.SaveFile sFile, 1
    End If

    End Sub

    mekedi ekaparak save karanna ahanawa ita passe ahanne nehe type karana karana parata save venawa

    3 specific path & without a user permision

    Private Sub rtfText_Change()
    rtfText.SaveFile "ur specific path" , 1

    'specific path like "C:\DataFile.tdm" But give exciting path ,file name eka mokak unath kamak nehe
    End Sub
    mekenam ahanne nehe oya dunna path eke type karana karana parata save venawa


    3...)3rd is..is there any way that i can read a specific wrd in a specific line in a txt file..


    variable = rtfText.Find ("searchin words ", start palce(number) ,end place(number) )

    variable ekata ei oya hoyana word eke mula letter eka keeveniyatada thiyenne kiyala number ekak enne
    oya dunna word eka select karanna kamathinam

    rtftext.selstart = rtfText.Find ("searchin words" , start palce(number) ,end place(number) )
    rtftext.SelLength = len("searchin words")
    rtfText.SetFocus
     
    Last edited:

    vbmaster

    Junior member
  • Jun 29, 2008
    132
    1
    18
    37
    in Al****'s heart
    harshasoon said:
    machan JAVA walatath thread eakak dapanko

    java thama mama igena gannawa , java thread ekak dammoth ahana samahara evata ans mama danne nathi wei ,BUT java monawa hari prob ekak thiyenawanam mekema danna mata puluwannam help karannam
     

    koondeGoda

    Member
    Nov 28, 2007
    4,892
    35
    0
    ₪ Hyper_Cube ₪
    vbmaster said:
    machan mama baluwa oyage diary program eka
    So mata thiyena gataluwa nam barapathalai , Security eka nam godakma adui, user frindly gathiya thwa tikak vadi karanam hodai.
    ane machan tharahaganna nam epa mama ideas denne , oyage wed nam ati vishishtai

    1 Haking software meken dapu password eka hoyaganna puluwan ,mama meka haduwe oyage code mokuth balanne nathuwa , meken oyage "*.codref" read karala balanna

    2. password dammata wadak nehe neda , liyapu eva "*.txt" file onema kenekuta kiyawanna puluwan :confused:

    many thanks friend . i really appreciate
    i will use a encryption algorithem .
    using a coderef file risky i know. for it can be deleted.
    i am currently uploading the project file i 'll post the link.

    thanx again.:)
     

    TDM

    Well-known member
  • Jan 7, 2007
    2,347
    25
    48
    36
    Kandy
    vbmaster said:
    1..)machan mata one..me .tdm kiyana file eka double click karanakota mama hadapu programm eken open wena vidihata....(without configuring the windows settings manually..)


    2...)thawa machan.,.e files manually nethuwa(without a user permision) specific path ekakata save karaganne kohomada?





    3...)3rd is..is there any way that i can read a specific wrd in a specific line in a txt file..


    amma ela ne...thanks macho..ur great...,.,.,.,1st ekath hacki ikmanata hoyala denna hode..,.,patta:P :P :P :P :P :P :P ...oya case eka hinda mata iwara karaganda beriwuna programms 4k 5k ma thiyenawa..mama ewa hadala upload karannam....bt machan me dawas wal tikak busy(bcoz of the A/L).,e magula iwara una gamanma man ewa tika hadala dannam.......ela ela ..
    thank you very much.,,,..and macho...please don't delete or move those pictures which u posted in this tread..coz i'll need those in 1 monthe....;) ;) ;)
    umaba nam deiyek...thankX:yes: :yes: :yes: :yes: