You cannot run the same .EXE file on a Mac and expect it to work.
There are two possibilities. You can run Windows inside a virtual machine on the Mac. You'll need virtual machine software and a licensed copy of Windows, then install the .NET Framework on it, and you'll then be able to run your app in the virtual machine.
The second method is what has already been proposed. Get Mono and compile your code using that framework. You'll, more than likely, have to rewrite parts of your app to get it to work completely, since Mono is NOT a 100% replacement for the .NET Framework.
thanks for your quick response.I downloaded mono software I got .dmg file.
can you please tell me how to open .dmg file.for that i followed some procedure but its not working.I downloaded dmg2iso.exe and followed the below command C:\>dmg2iso.exe filename.dmg filename.iso
I am getting this error
partition 0...ERROR: Inflation failed
Please help how to use .dmg file and how to proceed further.
My VB6 program is using NET USE command to connect the remote folder to get some files. This program also disconnects after the processing of the files by using following command- net use \\10.10.0.234\abc_folder /delete
At above command line, my program gets hanged
When i run the above command in DOS command prompt, its giving me following error -
There are open files and/or incomplete directory searches pending on the connection to \\10.10.0.234\abc_folder
Is it OK to continue disconnecting and force them closed? <Y/N> [N]:
Here is a solution, I hope this will work for you also
Private Sub Grid_DataSourceChanged(ByVal sender As Object, ByVal e As System.EventArgs)
For Each clmn As DataGridViewColumn In Grid.Columns
clmn.SortMode = DataGridViewColumnSortMode.NotSortable
Catch ex As Exception
Here you have to catch the DataSourceChanged event of DataGridView, and to insert
the code for setting SortMode to NotSortable for columns you require to be not
For exporting to word/excel, you must have to iterate through Row of datagridview rows, using following code snippet
For Each currentRow As DataRow In DataGridView1.Rows
'Use the values in current cell using following syntax.
'until all cells are covered.
Alternatively if you are looking for only copying the data to excel/word, just select the data copy using (ctrl+c) and paste to word/excel (This will work with .NET framework version 2.0 and greater).
You can do one thing. Write the data of your DGV to a CSV (comma separated value) file.
Whenever a user opens a CSV (on a machine having MS-Office) it will get open in MS-Excel by default.
Here's a raw code snippet
for each row in DGV
get value of cell and store it in string
append , (i.e. comma)
trim last character of string //(because it would contain last appended comma)
write this string to file "file.csv"
save the file
Whenever user open this CSV it will get open in MS-Excel.
If a user does not have MS-Excel he/she may do one thing. Right click the file and open it in notepad.
Hope this help you out.
I am having a common problem I suppose but it seems I cannot find a solution... Don't know if I am searching for the correct thing.... If you know of a place to look please let me know...
In my DataGridView if I park on a new line and hit F2 (or ALT+Down) and hit enter to go to the next row... It doesn't select the value that is selected. I have to go up and down (choose another and the first selected one again) for the value in the combo to update the value in the grid.
Should I update the value manually on the Combo OnLeave or something like that...