I'm working on an app project on codenameone and I want to add an action so that every time a user types some text, into a text area on a screen of the app, it gets added to a box (Json). So I select the text area on the screen, I click on "events" and select "action events". Usually nothing should appear at this point, but I get a window asking to give a name and save a file.
Since I inserted the name and save to close the window, when I repeat all the process and select "Action Events" an error message is shown:
"Error opening Netbeans (...) Cannot running program (...)* : Create process error=2, Specified file not found".
*the name which follows is the one I created when the window appeared to me.
I also created the project again and I'm having the same problem here: by going to "Events" and clicking on "Action Events" I got the same error:
"Error opening Netbeans (...) Cannot running program (...)* : Create process error=2, Specified file not found".
You need to setup Netbeans, Open your theme.res by double clicking.
Choose Codename One -> Advance -> Reset Netbeans Settings. Then,
Choose file -> setup Netbeans and navigate to where your Netbeans.exe is, On my PC I did the this:
This PC -> Program Files -> Netbeans 8.1 -> bin -> netbeans.exe (or netbeans64.exe).
Your steps may be similar, depending on your computer.
Save theme.res and try again.
Related
Below is the code I am using to show my CHM file.
Help.ShowHelp(control, HelpFile, HelpNavigator.Topic, topic);
topic="/foo_Manual/foo-Define_Technologies_1-Chapter9/Defining_foo.htm.";
It is opening the proper html widow in the right; however, the left side's contents tab is always pointing to 1st chapter.
Try this one
Help.ShowHelp(Control, HelpFileName, HelpNavigator.TopicId, TopicID);
This depends on the way your CHM file is compiled and/or the last user action.
But you need AutoSync too (see attached picture of HTMLHelp Workshop).
Please note one that the last visited tab is saved to a hh.dat file: When a CHM file is compiled, you can define the default tab displayed when the file is opened. If a user opened one of the other tabs (e.g. the index) and closes the file, the next time the file is opened, it will be opened in the Index tab.
Following code is working for me:
Help.ShowHelp(this.btnOpenHelpShowTopic, helpProvider1.HelpNamespace, HelpNavigator.Topic, #"/Garden/flowers.htm");
I have been going through Rachel Cordone's Unreal Development Kit Game Programming with UnrealScript Beginner's Guide book and having an issue using the conTEXT text editor.
As per instructed through the book I have followed all the steps to configure it but it won't compile once I press F9 - considering the last step to configure is to set the Enivronment Options/Execute Keys section. Here are the steps the book lays out (just that certain tab):
7) Now we are going to set up the conText to compile code. On the Execute Keys tab, click on Add, then type .uc into the Extensions field that comes up.
8) Once that's done four keys, F9 through F12, will show up in the User Exec Keys window. Let's click on F9 to make it convenient. Once clicked the option on the right become available.
9) For the Execute line, click on the button to the right of the field and navigate to out UDK installation's Binaries\Win64 folder, and select UDK.exe. For Start In, copy the Execute line but leave out UDK.exe.
10) In the Parameters field, type "make" without the quote marks. This tells UDK.exe that we want to compile code instead of opening the game.
11) Change Save to All Files Before Execution.
12) Check Capture Console Output and Scroll Console to the Last Line...
Then all I have to do is press F9 and it will compile - but it doesn't! It gives me:
No user command associated with extension '.uc'
Use 'Environment Options/Execute Keys' dialog to assign commands.
It seems it is not registering the changes no matter what I do (yes I clicked apply before saying okay but even still nothing). Any ideas?
The instructions may be out of date. You'll need to select your ".uc" entry, hit "Edit", and change it to just "uc".
Also, if you use UDK.com instead of UDK.exe the console output will go directly into Context instead of going to a separate popup.
I have a WPF solution, compiled to 2 .exe files, A.exe and B.exe.
A.exe, everything is fine.
B.exe, during running time, the top left corner shows the icon properly, but when viewed in File Explorer or shown in "Start->Program Files->B" menu, the icon is empty.
I'm a bit lost how to debug this issue:
apparently the resource is there, as running time the icon appears in the window;
i can't find a way to debug the procedure of "File Explorer detecting icons in .exe file", no log, no breaking point;
Some strange things: previously the scenario is reversed, B.exe is fine, while A.exe has problem; then my guys keep on coding, and one day it reverted...
I used CodeReflect to see what is inside A.exe and B.exe, it shows
A
- A.exe // codes inside
- Resources
- A.g.resources
- appicon.ico
- app.baml
- A.Properties.Resources.resources
B
- B.exe // codes inside
- Resources
- EnhauncedByPostSharp // nothing is listed
- PostSharp.Aspects.814640628.1 // binary things listed
- B.g.resources
- appicon2.ico
- app.baml
- resource/iconresource.xaml
- resource/datatemplates/views/ControlElementsDataTemplates.baml
- Views/B.baml
- ... and other baml files
- B.Properties.Resources.resources
I 'm not sure how PostSharp jumped into place. Yes we use PostSharp but it's a blackbox to me...
Appreciate if you guys could shed some light here.... thanks!
You need to set the icon in the Project Properties. The EXE icon does not by default use the main window's icon.
Right click on the EXE project in visual studio, go to Properties, and (assuming that you are using Visual Studio 2010), there is a dropdown in the Application tab titled "Icon". You need to set your icon there.
I get this error when I load a page that uses a specific skin ,it was working very well befor .
Could Not Load Skin: /Portals/_default/Skins/MM-SubSites-Arb/inner.ascx Error: The ID 'dnnCOPYRIGHT' is already used by another control.
The error is telling you exactly what to look for: there is more than one control in the inner.ascx file that has an ID attribute of "dnnCOPYRIGHT."
Open the file in a text editor and do a search for "dnnCOPYRIGHT" to find the elements with that ID, and delete all but one of them.
I have a WPF application that I've associated with a custom file type.
The steps were:
1. Open Project Properties->Publish->Options->File Associations
2. Filled in Extension = .tr2, Description = TR2 file, ProgID = TR2File.tr2, Icon = W32.ico
3. Opened a blank text file, renamed it to test.tr2, double click it and the program starts up.
4. Created a second file, named test2.tr2, double click it and a second instance of my program starts up.
Now, I still haven't figured out how to actually open/read the files yet, but first I would really like to make it so that if the program is already running, then it just opens in the current app, and doesn't try to open a new instance of the app.
Have your program create a named pipe. When a second instance executes, before it does anything else, have it check for the existence of this named pipe. If it exists, open it and use it to send the filename being opened in the second instance, and then terminate. If it doesn't exist you don't have an existing instance, so you can open.