I need a Cyclic Visual for a form I am developing. A cyclic is the control in a helicopter that the pilot usings to steer the aircraft. What I need is an overhead view of the position of the cylic. I.e. a circle with maybe a dot or something indicating its position. Any help would be much appreciated. Thanks
I've got a problem with latebind word in my app because I have to be independent from the installed office-version. With my first attemp to fill in the adresse-field of word-form it worked very efficent. I just referenced word, created a dot-file with some fields "Name, adress, zip and townname" in the form and coded oWordApp.ActiveDocument.FormFields.Item(ref cField1).Result = this.cmbAnrede.Text.Trim(); and so on. That works quiet well. But now, as I'm trying to do it latebound, to be independent of the office-version, this doesn't work anymore.
Can anybody hand me an ax to find my way out of the deep forrests?
It's generally best to bind to the lowest supported version of Word, and it will work on the newer versions of Word as well. So, if you support Word 2000 and Word XP, bind to Word 2000, and it will work for Word XP, too.
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.
no I don't think so. That's why I tried to make it latebound <g>. In the beginning I coded it with Office97. It worked fine! Now the system is slowly turned to work with OfficeXP. The first workstation on which my routine was called, an error appeared.
I told the user "no prob. I'll compile it with OfficeXP. After a few minutes all works fine again, but from an other room they were yelling "Arrgh, my Computer is broken". You know, simple users are thinking of a ghost of/in the mashine<vbg>.
So, that's what my problem is. I'll have to make it kompatible with every thing.
Do you still need to support Office 97? If so, the worst case scenario would be to move this Word code into a dll, then intelligently choose which dll to load based on the Word version. This means a very small piece of code, with two (or more) versions of the same (recompiled) code, using different versions of Word.
How can implement the functionality of passing values from one form to another without creating the new instance of the second form. Actually i have to implement the "find" functionality in my application, How can i do this.
I wanted to pass the text of a label from the main windows form called Main to this Payment windows form.
Add another constructor with the specific type(Ex: string)
When you call it in the main form it will look like this:
In the main form i called Payment(string TableNumber)
Payment pay = new Payment(EmployeeName.Text);
Now that i have done that Table contains the string that i needed for that form
I want to download a file which is present in server to client, how will I do that, for eg% if the file is present in Server's D:\(which is not the virtual directory path, say virtual directory is c:\wwwroot...
i've started a toppic that is gone much in back... so i restart a new one.
if i create a dll i can't debug since to i create a enpty form in the same solution but a new project that call it, so i run the form project and i can debug now the dll.
i know this but i don't remember how to link the form to that dll.
How i include that working on dll at the main form?
Your form project has to reference the dll. In the solution explorer right-click on the references folder of your form project, select "Add references.." and in the opening dialog select your dll project.
Save the file, close it and now rename its extension from .txt to .bat, this is a batch file. Now doble click on it (open it) and it will open a DOS window and will start the compiling process. The first line you added to the file will create your exe. In this line there's a '/reference:' parameter, this parameter will link your app to your dll, this example assumes that your dll is in the same path with your exe sources, in case the dll is in another folder use '/reference:MyFolder\MyLibrary.dll' (the path is relative to the batch file or you can type the complete path: C:\dev\app\MyFolder\MyLibrary.dll).
The second line in the batch file will prevent the window to close and it will keep it open so you can see the compiler's output in case something is wrong in your code.
I had to create an application, which has list of vendors supplying parts, each parts will have cost associated, when the end user clicks on the particular part, I have to make that row selected, as well as I have to calcualte the total of the parts selected.
But I need to do the following..