umm.. so, i just write msScript.Run("Main", ref strParam)? it returns error name ref is not declare comma, ')', or a valid expression continuation expected. do i need to imports anything? thanks
aphei
Posts
-
passing parameter to run method at msscriptcontrol -
passing parameter to run method at msscriptcontrolin my project, i need a lot of different formulas so there is no standard formula and parameter the parameter will write on textbox, the formula in richtextbox example: formula 1 Parameter = test1, test2 (so there are 2 parameters) formula = test1 * test2 formula 2 Parameter = test1, test2, test3 formula = (test1 * test2) / test3 when i execute the formula i write strExec = "Dim formula" & vbCrLf strExec = strExec & "Sub Main (" & parameter & ")" & vbCrLf strExec = strExec & formula & vbCrLf strExec = strExec & "End Sub" & vbCrLf i use VBScript as the language the problem is, when the run method msScript.Run("Main", xxx) the parameter doesn't have a standard value, i may 2 or 3 parameter how to write in the xxx part? i have try using array, but it return error thanks
-
Compressing in vb .net 2003is there any way to compress file in vb .net 2003 without using outside reference?
-
sub report with dataset in .NET 2005i have a problem in load sub report's data, the field become not consecutive i am using this code "ReportFile.Subreports(strSubRepName).SetDataSource(dtDataSubRep)" is there anything wrong with that?? i have try it in usual report ( not sub report ), and that is ok, but if in sub report, it become problem, please help, thanks
-
datagridview readonly propertythanks Bhaskar Shetty. your answer is help me very much.:)
-
datagridview readonly propertythanks Tom.. your answer is help me very much..:-D
-
datagridview readonly propertythat's nothing wrong with that script. but i still can't edit the columns. when i write "datagrid1.Columns.Item(0).ReadOnly = False" it become error how can i edit my datagrid when i bind it?? thank's -- modified at 2:22 Tuesday 21st August, 2007
-
datagridview readonly propertyi am using vb .net 2005 is there a way to make datagridview readonly property become false when we bind a datagridview with datatable ??
-
combobox with AutoCompleteModeif i use the SuggestAppend AutoCompleteMode property... when i use the mouse scroll it will not display all item in the combo box.. it just display item that like w type when we scroll it..
-
combobox with AutoCompleteModehmm.. but i need the 13 keypress event ....
-
combobox with AutoCompleteModehi all, i am developing program with vb.net 2005 i am using combobox and i set the AutoCompleteMode property to Suggest, so when i type something to there, it will appear a list for every the content that likes what i type.. the problem is.. when we click on the list... it will return keycode 13 or enter... how can i disable that... is anybody have the answer? Thanks...
-
Making a particular cell of datagrids uneditable [modified]you can try this code first you must set your grid readonly property to false Dim intI, intJ As Integer With grid For intI = 0 To .Rows.Count - 1 .Rows(intI).ReadOnly = True if intI = x then .Rows(intI).ReadOnly = False For intJ = 0 To .Columns.Count - 1 if intJ = y then .Columns(intJ).ReadOnly = False end if Next End If Next End With hope this can help to solve your problem
-
Merge CellHi all... is there any way to merge two or more cell in datagridview of .NET 2005?? Thank's
-
combo in datagridviewthanks a lot Rich Feldman... your code is very help me to solve my problem...:)
-
combo in datagridviewhi all, how to fill a value to combo in datagridview thanks
-
count of file in a directorythanks.. your code is very help me...
-
code on form minimize buttonyou can make a new button to minimize you form and hide the form minimize button... so you can write some code in the new minimize button that you made
-
count of file in a directoryhi all, how to know that how many file and what is the name of file in the directory that our specified in vb .net 2005?? anyone can help me??
-
minimize to system traythanks for your help....
-
minimize to system traysir/madam.. i want to make my program when it minimize it will appear at system tray... how to make that.. thanks...