|
There is no such built-in functionality if that's what you're asking for. You have to keep track of the files yourself by storing their paths somewhere (application settings, custom XML file, ...) and built the recent files menu dynamically on this basis whenever it pops up.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"D:\Users\Ravi\CVS-WD\training\Ravi\DataBaseProjects\NotePadSimulation\Paint\RecentFiles");
Thanks For Information ..i want to know how i can apply RegistryKey Concept to my Problem Requirement..and in the above statement i have to specify my project destination url or what i have to specify as string ..please give me some solution for me..
ravi
|
|
|
|
|
Hi All
How to Refresh previous page when next page is close
i.e I am open next page(next.aspx) by cliking on Button of previous page
(prev.aspx) but I need to Reexcute (prev.aspx) Page_Load() function after closing the next.aspx How can do it , Anyone Help me
Thanks for Your Time
Anil Jagdale
jaganil_phoenix@yahoo.com
anil.jagdale@eway-software.com
|
|
|
|
|
Hi Friends,
I need some help on crystal Reports, Actully my application requirement is to generate the dynamic columns in the crystal reports . Columns will depends on the events on the windows form.(its in c#.net)
pls if u have any solution let me know
Thanks
Shivraj
shiva
|
|
|
|
|
i haven't worked on it but i have heared that columns can be dyanamically created in cross tab reports but i am not sure u may search it further
thanks
|
|
|
|
|
I have an XML file that contains lot of records.
For performance reasons, i wanted to read the file using filestream and streamreader. Also, it should read from the last. I need to retrive latest records.
How to move to previous line??
Thanks in advance
Praveen Raghuvanshi
Software Engineer,
|
|
|
|
|
Previous line wouldn't work directly. You can seek reversely byte by byte until you read a New Line character. This way you'd know that the last line has ended, and now you are in the previous line.
But this is very tedious. Are you sure you can't just use XPath to get your nodes?
Regards
|
|
|
|
|
Hello Freinds,
I am a newbie of about 4 months old, and have been trying to figure out how to simulate typing in a textbox control. I seem to have it all figured out except for the fact that the text appears all at once into the txtbox control rather than one character at a time and at a specified time delay.
What i have done so far:
I have a windows form with a button called (btnType)and a textbox(txtType).
When the button is clicked data is read from a comma deliminated file into the "string[]DeliminatedStrings" and from there the chosen deliminated string is loaded into a Char[] called "charSubstring" which has two parameters, "int Starting index, and Length of substring. The last "while" statement concatinates 1 letter of the substring from the deliminated file at a time, assigning it to the text property of the textbox control called txtType.
The "Tread.Sleep" command is used inside the "while" statement so that the text that is being assigned to the textbox control will be assigned at a delayed interval. I was hoping that at runtime this would simulate a user typing text, one character at a time, however, it appears that i have got something wrong because the text appears all at once into the textbox control.
I have messed with the delay times for the Thread.Sleep method but to no avail. It seems that all the delays happen first than the text is assigned all at once, instead of after each individual character assignment like i was hoping. Any help would be greatly appreciated.
Thanks Code project!
private void btnType_Click(object sender, System.EventArgs e)
{
StreamReader srReadFile = new StreamReader("C:/file.txt");
string readFile = string.Empty;
string[]DeliminatedStrings;
string txt2type;
char[] charSubstring;
int arrayPosition = 0;
int delay = 300;
while ((readFile = srReadFile.ReadLine())!= null)
{
DeliminatedStrings = readFile.Split(',');
txt2type = DeliminatedStrings[1];
charSubstring = txt2type.ToCharArray(0,txt2type.Length);
while(arrayPosition <= txt2type.Length - 1)
{
System.Threading.Thread.Sleep(delay);
txtType.Text = txtType.Text + charSubstring[arrayPosition].ToString();
arrayPosition ++;
}
}
}
|
|
|
|
|
The text gets inserted all at once as your btnType_Click event handler runs on the main UI thread and therefor no other messages are processed until it is done. They are queued in the message pump and get executed after the event handler finishes. Take a look at the Control.Refresh method that forces a visual control to redraw itself immediately.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello All,
I am trying to install .NET 3.0 runtime on Windows XP with SP1. I'm havling everything that is required as prerequisite. But I am receiving following error. Can anybody please help me?
[12/22/06,11:55:14] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/22/06,11:55:14] WIC Installer: [2] Setup Failed on component WIC Installer
[12/22/06,11:55:21] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/22/06,11:55:22] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.
[12/22/06,11:57:27] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/22/06,11:57:27] WIC Installer: [2] Setup Failed on component WIC Installer
[12/22/06,11:57:35] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/22/06,11:57:35] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.
[12/22/06,12:07:10] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/22/06,12:07:10] WIC Installer: [2] Setup Failed on component WIC Installer
[12/22/06,12:07:18] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/22/06,12:07:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.
[12/22/06,12:38:26] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/22/06,12:38:26] WIC Installer: [2] Setup Failed on component WIC Installer
[12/22/06,12:38:35] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/26/06,09:41:29] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/26/06,09:41:30] WIC Installer: [2] Setup Failed on component WIC Installer
[12/26/06,09:41:54] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/26/06,09:49:05] WapUI: [2] DepCheck indicates XPSEPSC x86 Installer was not attempted to be installed.
[12/26/06,09:49:05] WapUI: [2] DepCheck indicates Windows Communication Foundation was not attempted to be installed.
[12/26/06,09:49:06] WapUI: [2] DepCheck indicates Windows Presentation Foundation was not attempted to be installed.
[12/26/06,09:49:06] WapUI: [2] DepCheck indicates Windows Workflow Foundation was not attempted to be installed.
[12/26/06,09:49:07] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.
[12/26/06,09:58:31] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/26/06,09:58:32] WIC Installer: [2] Setup Failed on component WIC Installer
[12/26/06,09:58:41] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/26/06,10:02:45] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/26/06,10:02:45] WIC Installer: [2] Setup Failed on component WIC Installer
[12/26/06,10:02:53] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/26/06,10:10:24] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/26/06,10:10:24] WIC Installer: [2] Setup Failed on component WIC Installer
[12/26/06,10:10:34] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/26/06,10:10:35] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.
[12/26/06,10:13:08] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/26/06,10:13:08] WIC Installer: [2] Setup Failed on component WIC Installer
[12/26/06,10:13:17] WapUI: [2] DepCheck indicates WIC Installer is not installed.
[12/26/06,10:13:17] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.
[12/26/06,10:23:29] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***
[12/26/06,10:23:30] VS Scenario: [2] Only x64 platforms are supported
[12/26/06,10:23:30] VS Scenario: [2] *** End of Blocking Component List ***
[12/26/06,10:23:45] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()
[12/26/06,10:27:02] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[12/26/06,10:27:02] WIC Installer: [2] Setup Failed on component WIC Installer
[12/26/06,10:27:08] WapUI: [2] DepCheck indicates WIC Installer is not installed.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Windows XP SP1 is not supported by the .NET Framework 3.0. Can you install WinXP SP2 on the machine, then install the Framework?
|
|
|
|
|
Thanks for the reply and sorry, I am having Win XP SP2 only. But still it gives the same error. My patch is updated to date. Any solution?
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
I notice the message "[12/26/06,10:23:30] VS Scenario: [2] Only x64 platforms are supported". Are you trying to install the X64 redistributable on a 32-bit platform?
|
|
|
|
|
I do not know exactly what this error means. I have downloaded the .NET 3.0 runtime and trying to install. As per the system requirements I am having everything in place.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Has anyone had any issues with checkedlistBox control when clicking on the items checkboxes?
Every time, I click on the checkboxes, it appears as if the checkbox image partly dissapears. This does not happen if I click on the item itself.
Thanks
|
|
|
|
|
Is there a listItem class in winform 2.0 ?
For example, in 1.x I can declare a variable as ListItem but do not find this in .net 2.0
Thanks
|
|
|
|
|
The ListItem class that exists in 1.1 also exists in 2.0
my Visual Studio C# Express documents it at
ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/cpref16/html/T_System_Web_UI_WebControls_ListItem.htm
Luc Pattyn
|
|
|
|
|
Hi.
Is it possible to find an application (C# code) that you can save sim numbers as text file.
Thanks
Dritt
|
|
|
|
|
What do you mean with "sim numbers"? The SIM number found on sim cards (mobile phone..)?
|
|
|
|
|
Correct, the SIM number found on sim cards.
|
|
|
|
|
I'm not sure wheter AT+CIMI or AT+CGSN returns the right value or not.. According do some documents there are different implementations!
But everything else is pretty easy as long as there is an easy way to communicate with your phone (bluetooth and irda are usually not easy as long as there is no virtual com port available for them). Just send these AT commands to your phone and read the input!
Don't have an example in C# here but I've played with at commands with java in the past and it worked pretty well!
|
|
|
|
|
Ou this was easy.. Just use the search function on this site and you'll find this: http://www.codeproject.com/smartclient/phoneat.asp It's written in vb.net but I guess this doesn't matter as everything is pretty similar and it shows the concept of using at-commands really nice!
|
|
|
|
|
I don't know what "sim" numbers are are (I'm guessing you meant "some numbers"), but if you're looking to write numeric data to a file, this[^] article may help.
/ravi
|
|
|
|
|
Can anybody help me !I want to make a application for Counting Mouse Speed.
nemanja
|
|
|
|
|
Do you know how to use hooks? If yes you could use it to get the mouse position.. Get the current time when the event is raised and do some trivial math and you have your speed!
|
|
|
|