|
enforce1 filename.exe command_line_arguments
If the main application file name were derived from the command-line-app name, one could use absolutely identical command-line apps for any number of programs. The only time the console app would have to provide any "help" would be if the system couldn't find the main application, in which case a message to that effect should probably be sufficient.
BTW, I vaguely recall an article which discussed having one application named xxx.com and the other xxx.exe but I don't remember exactly what the author was doing.
|
|
|
|
|
Hi All,
I basically have a RichTextBox (WinForms) and I want to have spell check functionality.
I have been using NetSpell[^] which is very good for an open source solution but have found it does not work with rich text formatted data. Being open source I can probably modify to suite my needs but that may take time I do not currently have.
I have also found Rapid Spell[^] which seems perfect for what I want, but the price is $339 so I am looking for alternative, cheaper solutions if possible.
Basically, does anybody know of a good product they could recommend from experience that will achieve what I am looking for? I have been looking but as of yet not found anything to top Rapid Spell.
Thanks
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
How about using any spellchecker on the RichTextBox.Text content; and when something gets rejected try and locate it in the RTB to flag it somehow.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Too late, bought Keyoti Rapid Spell now
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
OK. That is bound to become an interesting article. I'm looking forward to it.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
hi everyone,
i m jst working on my final term project and i want to perform the follwoing action using asp.net, vb.net and javascript.
"how to pass values from pop- up window(child page) to a master page(parant page) datagrid? please help me out.
many thanks
staycool_khan
modified on Wednesday, July 15, 2009 10:20 AM
|
|
|
|
|
Look up window.opener. That should give you a place to start
only two letters away from being an asset
|
|
|
|
|
Hello,
I want to create a static library using .net 2008 Framework 3.5 and export a function.
In order to call this function from a vc6 enviroment what project type I should use on the .net Enviroment and how should I call this function from vc6 application?
I would appreciate if you could send me a short code of both sides(.net,vc6)
Thanks in advance...
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
For programs that were created by VB or VC 6.0, there are many tools like HIEW, WINDASM, ... that can disassemble and patch codes (example: change some code lines)
For programs that were created by .NET, it's easy to disassemble but I don't know which tool can do like that.
Please advice me
Thanks
|
|
|
|
|
Hi,
Reflector can decompile an entire method.
And I was told there are plug-ins that decompile an entire class.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
There is a plugin for the Reflector called ReflexIl or something like that, that will let you actually edit the code.
Reflector also has an MSIL view, of course.
ILDASM can also disassemble .NET assemblies but be prepared for massive suckage.
|
|
|
|
|
Ok, I see Reflexil is great plug-in
Thank you
|
|
|
|
|
I've got a problem when I use Reflexil to add some codes in to file
I try to add via "Create new..", OpCode = call. But I can't find the Operand "System.String::op_Equality(System.String, System.String)"
Does any body know how to do?
Thanks
|
|
|
|
|
You may need a vcall, have you tried that?
|
|
|
|
|
I don't see "vcall" in OpCode and how to find "System.String::op_Equality" in "Operand" ?
Thanks
|
|
|
|
|
callvirt instance bool [mscorlib]System.String::op_Equality()
I think.. no guarantees today, I'm writing this at what is 5:56 in the morning for me.
edit: Ok that is completely wrong. Note to self: don't answer question when you're half asleep. Of course it's not "callvirt instance", op_Equality is always static!
So then, I really don't know why it's not showing up.. Last modified: 1hr 6mins after originally posted --
|
|
|
|
|
Hi All,
I am Working with a project,in which we need to use Autocomplete Including Results as we get in Google search box.I am using a code in which we are getting the matching letters or words as dropdown but not number of results.
Can any one please help me?
Reply me asap,if possible
Thanks In Advance,
Regards,
Yamuna
|
|
|
|
|
|
HI Karthik,
Thankyou For your reply,
I Need Autocomplete Including Number of results as we get in Google suggests right.Like "Gmail 11,2000000 results".
But All solutions which i got are without Results only.
please help me!!
Thanks & Regards,
YamunaRani
|
|
|
|
|
I'm fairly new to C#, have worked with the C# XNA gaming studio and VB.Net 2008 but have very basic knowledge. I work in the car & manufacturing industry as an electrical engineer and am looking to broaden my programming skills using C# and the Modbus TCP protocol.
Can you please recommend any books that explain the ModbusTCP protocol in C#.net 2008.
Do you have any links to any source code or classes that could get me started. Tried one off here but can't get it to compile, I get the following errors.
Error 1 The type or namespace name 'ModbusTCP' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Martin\Downloads\Modbus_TCP_class_demo\ModbusSampleCommon\frmStart.cs 8 7 ModbusTester
Error 2 The type or namespace name 'ModbusTCP' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Martin\Downloads\Modbus_TCP_class_demo\ModbusSampleCommon\frmStart.cs 14 11 ModbusTester
Thanks - Martin
|
|
|
|
|
Hi,
there are typically two steps required before you can use classes from some managed DLL:
1. add a reference to your project; in Visual Studio, right-click your project, choose Add Reference,
wait a while, locate the assembly file of interest, and go.
2. in each source file going to refer the classes of that assembly, add a "using someNamespace;" statement for your convenience. (The odd programmer will tell you you could skip that and always use fully qualified class names).
That's it.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thanks for the info Luc
Martin
|
|
|
|
|
You're welcome.
PS: please don't delete messages, it easily makes the threads look strange. When you change your mind, just add a sentence ("ignore", or "changed my mind to....").
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I’m practicing a database and I have a 3-column table. I’m using binary formatting to save/open the file. I can’t see what is wrong with my code –
I can display records in the datagrid view ok when I press the save button
I can also save the records into the dataset ok when the save/close button is pressed.
When I reopen the programme and press the reload button to reload the dataset, additional records will not be displayed nor saved though original records will be showing in the datagrid.
When I reopen the programme and DO NOT press the reload button, I can enter new records and they will be saved because this is basically overwrites the original dataset.
Ideally, I want to be able to open the dataset and then be able to add new records to the dataset/datatable.
Any help and advice on how to correct this?
Thanks,
Steve
Here is my code:
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Public Class Frm_DataEntry
Dim ThePoint As New Point(540, 150)
Public TheRecord As DataRow
Dim ii As Integer
Private Sub Frm_DataEntry_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.Location = ThePoint
End Sub
Private Sub Tbx01_FirstName_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tbx01_FirstName.Enter
Tbx01_FirstName.Clear()
Tbx02_LastName.Clear()
Tbx03_Phone.Clear()
End Sub
Private Sub Btn01_Save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn01_Save.Click
TheRecord = Frm_Mainform.dt_Table.NewRow
TheRecord(Frm_Mainform.dt_Col02_FirstName) = Tbx01_FirstName.Text
TheRecord(Frm_Mainform.dt_Col03_LastName) = Tbx02_LastName.Text
Frm_Mainform.dt_Table.Rows.Add(TheRecord)
Frm01_WithDGV.DGV01.DataSource = Frm_Mainform.ds_Dataset
Frm01_WithDGV.DGV01.DataMember = Frm_Mainform.dt_Table.ToString
Frm01_WithDGV.DGV01_BS_Col01_PKey.DataPropertyName = Frm_Mainform.dt_Col01_PKey.ToString
Frm01_WithDGV.DGV01_BS_Col02_FirstName.DataPropertyName = Frm_Mainform.dt_Col02_FirstName.ToString
Frm01_WithDGV.DGV01_BS_Col03_LastName.DataPropertyName = Frm_Mainform.dt_Col03_LastName.ToString
Dim ii As Integer
ii = Frm_Mainform.dt_Table.Rows.Count
MessageBox.Show(ii)
End Sub
Private Sub Btn02_SaveAndClose_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn02_SaveAndClose.Click
Dim Filename As String = "PermitToWork.pmt"
Dim fStream As FileStream
Frm01_WithDGV.DGV01.DataSource = Frm_Mainform.ds_Dataset
Frm01_WithDGV.DGV01.DataMember = Frm_Mainform.dt_Table.ToString
Frm01_WithDGV.DGV01_BS_Col01_PKey.Width = 90
Frm01_WithDGV.DGV01_BS_Col02_FirstName.Width = 125
Frm01_WithDGV.DGV01_BS_Col03_LastName.Width = 125
Frm01_WithDGV.DGV01_BS_Col04_Date.Width = 125
Frm01_WithDGV.DGV01_BS_Col01_PKey.DataPropertyName = Frm_Mainform.dt_Col01_PKey.ToString
Frm01_WithDGV.DGV01_BS_Col02_FirstName.DataPropertyName = Frm_Mainform.dt_Col02_FirstName.ToString
Frm01_WithDGV.DGV01_BS_Col03_LastName.DataPropertyName = Frm_Mainform.dt_Col03_LastName.ToString
If File.Exists(Filename) Then
Try
fStream = New FileStream(Filename, FileMode.Create)
Dim binFormat As New BinaryFormatter
binFormat.Serialize(fStream, Frm_Mainform.ds_Dataset)
Catch anex As ArgumentNullException
MsgBox("The inventory could not be accessed")
Catch ex As SerializationException
MsgBox("The application failed to retrieve the inventory")
Finally
fStream.Close()
End Try
Else
Return
End If
Frm_Mainform.Close()
End Sub
Private Sub Btn03_Reload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btn03_Reload.Click
Dim Filename As String = "PermitToWork.pmt"
Dim fStream As FileStream
If File.Exists(Filename) Then
Try
fStream = New FileStream(Filename, FileMode.OpenOrCreate, FileAccess.ReadWrite)
Dim binFormat As New BinaryFormatter
Frm_Mainform.ds_Dataset = binFormat.Deserialize(fStream)
Frm01_WithDGV.DGV01.DataSource = Frm_Mainform.ds_Dataset
Frm01_WithDGV.DGV01.DataMember = Frm_Mainform.dt_Table.ToString
Frm01_WithDGV.DGV01_BS_Col01_PKey.Width = 90
Frm01_WithDGV.DGV01_BS_Col02_FirstName.Width = 125
Frm01_WithDGV.DGV01_BS_Col03_LastName.Width = 125
Frm01_WithDGV.DGV01_BS_Col04_Date.Width = 125
Frm01_WithDGV.DGV01_BS_Col01_PKey.DataPropertyName = Frm_Mainform.dt_Col01_PKey.ToString
Frm01_WithDGV.DGV01_BS_Col02_FirstName.DataPropertyName = Frm_Mainform.dt_Col02_FirstName.ToString
Frm01_WithDGV.DGV01_BS_Col03_LastName.DataPropertyName = Frm_Mainform.dt_Col03_LastName.ToString
Catch anex As ArgumentNullException
MsgBox("The inventory could not be accessed")
Catch ex As SerializationException
MsgBox("The application failed to retrieve the inventory")
Finally
fStream.Close()
End Try
Else
Return
End If
Frm01_WithDGV.DGV01_BS_Col01_PKey.Width = 90
Frm01_WithDGV.DGV01_BS_Col02_FirstName.Width = 125
Frm01_WithDGV.DGV01_BS_Col03_LastName.Width = 125
Frm01_WithDGV.DGV01_BS_Col04_Date.Width = 125
Dim ii As Integer
ii = Frm01_WithDGV.DGV01.Rows.Count
MessageBox.Show(ii)
End Sub
End Class
Thanks for your help and advice!
Steve
Thanks for your help and advice!
Steve
|
|
|
|