So I can just send the setup.exe? when I try copying it to a different folder and running it, I get an error. The following error occurred attempting to install 'C:\Documents and Settings\Tony\My Documents\Visual Studio 2005\Projects\CostingCalculator\CostingCalculator\publish\Release1\test\CostingCalculator.application': "The system cannot find the file specified. " See the setup log file located at 'C:\DOCUME~1\Tony\LOCALS~1\Temp\VSD1BA.tmp\install.log' for more information.
How would I embed the framework? Cheers all /TH
Nooie
Posts
-
Publishing Windows Application to one setup file -
Publishing Windows Application to one setup fileWahoo! I just did my first little Application that is of any use. Its a calculator that my friend uses for work, with some weird Calculations in it. But it works. Anyway, I suppose I have 2 questions. 1. Is there a way to make just 1 Setup.exe file that can be sent without any other files that will install fine at the other end. 2. If not, Which files from the publish directory do I have to send to get the Application to work at the other end? Many Thanks all Tony
-
Integer/Decimal control in Windows FromsAm I going mad? Is there a control just for integer or decimal values? I have a form that is purely based on "controls" for decimal that result in Un-Editable "controls" as decimal results. The thing that concerns me is the amount of casting/parsing I am doing. Taking a text entry, parsing to decimal, doing my math then parsing back to decimal again to show in the results box. There is the numeric up/down control. But can you remove the up/down part of it to use it as a purely numeric control? Much appreciated Tony
-
Public ClassHi Christian, Thats kind of what I was asking ;-) where do I put it? I've tried a few places, but when I go to code on the second form using the instance conn, intellisense does not pick it up. Tony
-
Public ClassHi Sorry I was using simple names to try and no over complicate it. Basically I created a new windows form project using VS2005. I then created a new Class called NavConnection. This class contains details such as Servername, databasename etc... Next I added application settings which match the props in the class NavConnection. From the Main Form I added a new MenuStrip and a call to a new form I created. On the new form I have textboxes that mimic the Usersettings/Navconnection. The idea being that when this form is run it will populate the textbox's with the data from the class. Then when the app is closed the User Settings will be saved from the Class NavConnection. So when I run the app I want to create an instance that it used through out the app. Does that make more sense? It may not be the best way to do this but I am inventing little projects to help learn C# Cheers for your help. Tony
-
Public ClassHi all, I am still very new to C#. I have created a Windows Application in VS2005, and added a new class (Class1) that I created. I've then added another Form to the Application. My problem is that I want to declare the Class (Class1) so that I can use it in both Forms. Where about's in the Application would I do this please? Many Thanks Tony
-
Showing a "Image" in a DatagridHi Keshav, Many thanks for the reply I will give it a try. Many thanks again Tony
-
Showing a "Image" in a DatagridHi all, I am trying to show a "Image" in a DataGrid. I have a new class I created that has 3 properties that are string and one that is of type image. I create an Array of this class, and make the DataGrid source the Array. But the image column comes up as a red cross in a white background, i.e. its not an image. Can anyone give me some idea of best practice to show an image in a DataGrid please? Regards Tony
-
Image in DataGridViewHi all, I have created a form with a datagridview. I created a new Class called duplicate Picture that has 4 fields. 2 type String both hold filepaths. 2 type Bitmap that "should" hold the picture at the path set above. My constructor sets the Bitmap to be the paths as specified. I look through a file structure and find duplicate images, add them to a List of the class described above, then using CurrencyManager show a list of the path on the DataGridview as well as the image. I kept getting the little White Square with a red cross in it for the Bitmaps. So I changed the Properties for the Bitmaps to return a Image class instead, and converted the Bitmap to a Thumbnail, but that just caused more problems. Am I missing something fundamental here? Original Class I created -
sing System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace DuplicateFile { class DuplicateFile { private string _shortName; private string _originalFilePath; private String _duplicateFilePath; private Bitmap _originalPicture; private Bitmap _duplicatePicture; public DuplicateFile(string newShortName, string newOriginalFilePath, string newDuplicateFilePath) { shortName = newShortName; originalFilePath = newOriginalFilePath; duplicateFilePath = newDuplicateFilePath; } public string shortName { get { return this._shortName; } set { this._shortName = value; } } public string originalFilePath { get { return this._originalFilePath; } set { this._originalFilePath = value; Bitmap originalPicture = new Bitmap(originalFilePath); } } public string duplicateFilePath { get { return this._duplicateFilePath; } set { this._duplicateFilePath = value; Bitmap duplicatePicture = new Bitmap(duplicateFilePath); } } public Bitmap duplicatePicture { get { return _duplicatePicture; }
-
Datagrid without a TableI think you can't have a Datagrid with out a table. But what I want to do is get a list of Jgp files on my computer and display them in a list, with a tick box, a preview of the JPG and a text box with the path. What would be the best way to present this as a list on screen? Sorry if this seems an easy question. Tony
-
RFID QuestionsHi All, Hoping someone with some RFID experience can help me gauge an understanding of it. Do the readers get the Co-Ords of the tag, or is the location based solely on which reader has picked up the tags signal? I know some companies say they use it for stock control, so just wanted to get an understanding of how that worked. Regards Tony
-
Preview Type Window (Form)Hi all, I have an application that cycles through Directories and finds Duplicate Image files (By Name). It shows the original file name (FileInfo.Name) and the possible Duplicate (FileInfo.FullName) in the a CheckedListBox container on the form What I want to do next is create a MouseHover Event that will show a form a bit like a tooltip with a preview of both Pictures in it. I suppose I have a few questions. 1. Is a CheckedListBox the best solution for this to show the data? As the code runs through I store them in a List which I then convert to an Array and AddRange onto the container. 2. What is the best way to get the preview to come up? I want it to dissapear as the user moves from one ListItem to another. The other issue is how can I get the MouseHover event to tell me which index I am on so I can retrieve the file paths to the imagine. Suggestions greatly appreciated, and pointing to other online info that could me also greatly appreciated. Regards /TH
-
MDA ContestSwitchDeadlockLOL Great minds think a like :-D Its not threading its quite procedural, so this should suffice. I'll see if it blows up when I get it into production. Then it might be back to the drawing board. /TH
-
MDA ContestSwitchDeadlockI found this link so willtry this tonight Harriyott Blog[^] :-D
-
MDA ContestSwitchDeadlockHi Nader, I tried that. found something about setting it to "Full Trusted" which i tried, but that did not resolve it. Thanks for the help though!
-
MDA ContestSwitchDeadlockThis is a repost as I didn't get a reponse to my last one :-( and I still can't get this thing to run through. Well I lie. It ran through fine once, but since then I've been getting this contextSwitchDeadlock issue, but I haven't modified the code! :doh: :confused: Anyone have any ideas? /TH
Hi All, I'm slowing finding my way around C#. I have written an application that takes a directory, take each file in that directory and also each file in each subdirectory, and then trys to find any files with the same name (Trying to clear up all my duplicate photos ) SO I have written the code, and checked it and checked it again, it does not get caught in an infinite loop. But when I F6 the app it comes up with a ContextSwitchDeadlock MDA issue.
-
ContextSwitchDeadlockGonna bump this as I'm still having the problem! Tony
-
ContextSwitchDeadlockHi Stefen, Thanks for that. I swear I was looking for a Refresh method, but couldn't find it!. LOL. It worked anyway. Thanks! Tony
-
Graphics helpHi Chris, Sorry I thought I had replied. I've had a good play with what you suggested and its getting better. Thats what experience is all about, which is what I get from playing. Again many thanks for your reply. Tony
-
ContextSwitchDeadlockHi All, I'm slowing finding my way around C#. I have written an application that takes a directory, take each file in that directory and also each file in each subdirectory, and then trys to find any files with the same name (Trying to clear up all my duplicate photos :-) ) SO I have written the code, and checked it and checked it again, it does not get caught in an infinite loop. But when I F6 the app it comes up with a ContextSwitchDeadlock MDA issue. So I set the project Properties to "Fully Trusted" and now the app just goes I've added a progress bar that slowly grows - This works I also added a new text box and in the loop set the Text to the fileInfo.Name it was checking. But this does not update on the screen. Anyone have any ideas how I can Fix the: 1. Context switch/stop the screen blanking out. 2. Fix the Text box updating as it loops through. As always, thanks for looking and expecially thanks if you reply! Tony