|
I wrote a program in c# and add it a setup deploying project.
I tried to Install the program on a client computer but I got an error:
EventType clr20r3 P1:... P2:....
P3:.... P4: system.windows.forms P5:.... P6:....
P7:.... P8:..... P9:.............
The "...." means just a bunch of latters or numbers that don't mean a thing..
When I install the program on my PC (the one that have VS) I don't get an error.
any Idea?
|
|
|
|
|
oh how I wished my errors massaged me.
I dont think the client machine you are trying to install on has the .NET framework.
|
|
|
|
|
I have developed an FTP Client and it is being used by several people to download from an FTP Server, via non-secure port 21, then using secure FTP to upload the files to my ftp://FTP. It works on everybody's FTP server, but this one. Every time it goes to download the files, the error log states "Download of info.txt Failed because No connection could be made because the target machine actively refused it." Can any one tell me why the ftp server would refuse the connection. The log file says it connected to the machine. He can also run FTP through the command line and get the file from the FTP server and then upload it to my FTP server. Any ideas or suggestions would be appreciated.
Thanks,
|
|
|
|
|
|
I detect if the connection needs passive mode and if it does it changes it.
Thanks,
|
|
|
|
|
I have heard of a way to code a save button so it will save the item you want to a particular disc platter on a harddisk for example:
A lot of harddisks (Larger ones 100GB+) have discs called platters which hold around 80GB or more each. When you save an item such as a text file it gets stored anywhere on these platters.
What I want my application to do:
1) on save command I want a dropdown box with the number of "Platters" The hardisk has and when you choose one the tiem will be saved on that platter on whereever you want likt this:
saving to: C:\WIndows
Saving on platter (1) this is top platter
Here is links to definitions of harddisk platters:
http://www.google.co.uk/search?hl=en&lr=&oi=defmore&defl=en&q=define:Hard+disk+platter[^]
In the end we're all just the same
|
|
|
|
|
|
Ummm... What idiot told you this???
Yes, hard drives are made up of platters. We all know this. This is basic information about harddrive technology.
But you don't get to pick the platter you want to save data on. The filesystem doesn't even let you do this. It makes managing partitions and volumes a nightmare if this was possible. Besides, what would be the purpose of this??? I can't think of a single good reason to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to create a logon screen for my application like this:
The first time you use application you will get a unique random 6 digit characters code (Consists of letters and numbers) and when you start the application again it will ask you for this 6 digit code. If its incorrect, the application will have a messagebox saying "Error wrong code, try again" How would you do this?
In the end we're all just the same
|
|
|
|
|
Google is your friend.
Please dont flood post requests, for random samples of "How do I do XYZ" use google.
|
|
|
|
|
Is ther a way to find out what system requirments your application will need to run when you create it? Cause you aint going to know and people who will use it will need to know. You may need to know like this:
MyApp requires:
Pentium 266Mhz
64MB RAM
400MB Harddisk
x4Speed DVD ROM
ect...
In the end we're all just the same
|
|
|
|
|
Well, if your app is .NET, then a good place to base your system requirements is on those of the framework itself. Try a search on microsoft or google for .NET Runtime System Requirements.
|
|
|
|
|
ON top of what J4amieC said, your own testing will tell you what your applciation needs. You'll need to use Performance Monitor or a good .NET Profiler to get some memory and processor performance statistics and evaluate the data yourself to see what the minimum acceptable processor and memory will be.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Here is a way to find out:
Check windows Task manager when you load the application and see how much memory and CPU usage it uses... and set the reuirments a bit higher...
like it uses 24MB RAM say it needs 32MB RAM
In the end we're all just the same
|
|
|
|
|
I ma creating a application that will monitor system performance and when it gets below something like 12% it will display a messagebox on screen saying "Warning: System resources low, we recommend restarting PC"
Could you code this into a console application?
Second: I want it to automatically when you start it up to minimise itself to the system tray and stay there until user shutsdown PC and I want it to work all the time monitoring system. How would you do that?
In the end we're all just the same
|
|
|
|
|
You should look into creating it as a Windows Service, and capuring when an interactive user logs on to begin monitoring.
|
|
|
|
|
I had a look at the digital and analog clock tutorials here and want to create one for my main screen. I want the analog clock to appear in a panel called (pnlDigtclock) how would you do this?
In the end we're all just the same
|
|
|
|
|
Hi,
I use the "Drag and Drop List View" project.
But I cannot insert Item with largeIcon (or SmallIcon) mode, each insertion is placed at the end of the listview.
Someone has an idea ? ListView.Items.Insert function only works in Detail or list mode.
Thank you,
Freg
|
|
|
|
|
I have a PictureBox1 (PctWallpaper) and I have two buttons (BtnText and btnDraw) Is there a way to let the user move them whereever they want on the PictureBox? and if the user tries to drag the button outside the PictureBox a message appears:
"You cannot plac this item outside the desktop"
how would you do this?
In the end we're all just the same
|
|
|
|
|
Sorry, but all these questions you just flooded the board with - did you want complete working solutions every time? I dont see your attempt at any of these problems anywhere....looks like you are just soliciting for free work.
|
|
|
|
|
I am creating a small Rich Text editor with some additions.
1) Could someone provide the code to make a print button (btnPrint) print whateve is in the RichTextBox (RichTBox). I have a PrintDialog1 on the form.
2) How would you create a way to show that a peice of text is highlighted?
3) How would you create a dropdown list to show a list of fonts on pc and when selected, the font changes to that? (Look at WordPad fontScript) Like that.
4) I want to make a save button with a difference. I have a SaveDialog on form and a button called (btnSave) What I want it to do is either save the document as *.txt or*.RTF BUT if the RichTextBox (RichTBox) has an image in it the *.txt save option will be disabled and if the user tries to save anyway as *.txt a messagebox will appear saying "You have a image in text box. Remove before saving to this format"
In the end we're all just the same
|
|
|
|
|
I have a question about Regex class and wether it is clerver to put that RegexOptions.Compiled option.
Msdn says:
To improve performance, the regular expression engine caches all regular expressions in memory. This avoids the need to reparse an expression into high-level byte code each time it is used.
Does it mean that the Regex object is cached as itself or that another Regex with same pattern and options will use the cached one and will not need to parse the pattern again?
If it is the first case, it means that compiling is useful only when the same object is used several times. If it is the latter, the compiled class will be used every time the same pattern is used.
Thx.
Callixte.
|
|
|
|
|
Callixte,
I don't think that .NET pools Regex objects. It seems that using the RegexOptions.Compiled will only give you significant benefits if you reuse the same object. I wrote the following code to test for reference and object equality, to see if .NET pools the Regex object like it pools the String object in some internal cache. However, the code seems to imply that each object stands alone.
using System;
using System.Text.RegularExpressions;
namespace ThrowAway
{
public class TMain
{
[STAThread]
public static void Main()
{
Regex compiled1 = new Regex( "(a(b)+)+", RegexOptions.Compiled );
Regex compiled2 = new Regex( "(a(b)+)+", RegexOptions.Compiled );
Regex noncompiled1 = new Regex( "(a(b)+)+" );
Regex noncompiled2 = new Regex( "(a(b)+)+" );
Console.WriteLine( compiled1 == compiled2 );
Console.WriteLine( compiled1.Equals( compiled2 ) );
Console.WriteLine( compiled1 == noncompiled1 );
Console.WriteLine( compiled1.Equals( noncompiled1 ) );
Console.WriteLine( noncompiled1 == noncompiled2 );
Console.WriteLine( noncompiled1.Equals( noncompiled2 ) );
}
}
} Now, this doesn't really prove anything; however, I feel that, if the .NET runtime cached compiled1 and compiled2 to the same internal pool, then at lease compiled1 == compiled2 should evaluate to true .
I hope that helps.
|
|
|
|
|
Thanks Curtis,
My guess was that compiled1 and compiled2 would be of the same "class" dynamicly inherited of Regex, so CLR doesn't have to parse twice the expression et re-use the same byte code.
Callixte.
|
|
|
|
|
I have downloaded source code from: http://www.divil.co.uk/net/articles/designers/hosting.asp and its very complex. It allows one to create, manipulate, move etc controls in run time.
The only problem is, I need to be able to programmatically place a PANEL on top of all the controls and other stuff and still use the control box to drag controls on top of this panel. At the moment I can achieve this but the controls dissapear behind the panel!
Please download the code and try it out for yourself!
|
|
|
|