|
Hi,
I am using TreeView control in form application of VS2005.
I want that whenever i add node to a parent node, it should check that if the node is already existing in the parent then it will be replaced otherwise be added.
So how we do search for child nodes for a particular node(parent).
RootNode
Node1
Child1
Child2
If i am adding child2 to Node1 then it should replace the existing.
thanks
Gajesh
Pune(India)
|
|
|
|
|
How can i have a Styled ScrollBar For TextBox
for example How can i set scrollbar color or width ??
With Thanks
MHF
-- modified at 3:57 Tuesday 26th December, 2006
|
|
|
|
|
Hi All
I am created crystal Report By using Command SQl ( by selecting ADD Command on the Database Expert-> Create new connection -> Add Command
I have two problem
1) If I Eable the Logon Promt (i.e EnableDatabaseLogonPrompt ="true" )
then following promt is display Before the Report View and Asked for the server passward if i enter passward then Report is Display otherwise not ( It's Happen 1 st time when aplication is run) the promt is given below in bold letter
The report you requested requires further information.
___________________________________________________________________
SERVER
Server name: Server
Database name: ERPDB
User name: sa
Password: --------
Use Integrated Security
2) If I disable the Logon promt (i.e EnableDatabaseLogonPrompt ="false")
then following Error Message is Display and Report Can not Display
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\SalaryReport {4244492D-0548-4110-AF32-9A9E5066CD0E}.rpt: Unable to connect: incorrect log on parameters.
My Actual problem to Display the Report Without Asking Server Passward to User Because User Don't Know the Server Passward
Please any one Help me
Thanks for Your Time
Anil Jagdale
|
|
|
|
|
Hi All
I am created crystal Report By using Command SQl ( by selecting ADD Command on the Database Expert-> Create new connection -> Add Command
I have two problem
1) If I Eable the Logon Promt (i.e EnableDatabaseLogonPrompt ="false" )
then following promt is display Before the Report View and Asked for the server passward if i enter passward then Report is Display otherwise not ( It's Happen 1 st time when aplication is run) the promt is given below in bold letter
The report you requested requires further information.
___________________________________________________________________
SERVER
Server name: Server
Database name: ERPDB
User name: sa
Password: --------
Use Integrated Security
2) If I disable the Logon promt (i.e EnableDatabaseLogonPrompt ="true")
then following Error Message is Display and Report Can not Display
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\SalaryReport {4244492D-0548-4110-AF32-9A9E5066CD0E}.rpt: Unable to connect: incorrect log on parameters.
My Actual problem to Display the Report Without Asking Server Passward to User Because User Don't Know the Server Passward
Please any one Help me
Thanks for Your Time
Anil Jagdale
|
|
|
|
|
Hi All
I am created crystal Report By using Command SQl ( by selecting ADD Command on the Database Expert-> Create new connection -> Add Command
I have two problem
1) If I Eable the Logon Promt (i.e EnableDatabaseLogonPrompt ="true" )
then following promt is display Before the Report View and Asked for the server passward if i enter passward then Report is Display otherwise not ( It's Happen 1 st time when aplication is run) the promt is given below in bold letter
The report you requested requires further information.
___________________________________________________________________
SERVER
Server name: Server
Database name: ERPDB
User name: sa
Password: --------
Use Integrated Security
2) If I disable the Logon promt (i.e EnableDatabaseLogonPrompt ="true")
then following Error Message is Display and Report Can not Display
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\SalaryReport {4244492D-0548-4110-AF32-9A9E5066CD0E}.rpt: Unable to connect: incorrect log on parameters.
My Actual problem to Display the Report Without Asking Server Passward to User Because User Don't Know the Server Passward
Please any one Help me
Thanks for Your Time
Anil Jagdale
|
|
|
|
|
Hello everyone,
How can I make the folder containing my file to open programmatically ?
When a user selects a file from my program and click "got to folder" in contextmenu the explorer will open the folder (not my application)..
Thanx for your helps and best regards..
.:: Something is Wrong ::.
|
|
|
|
|
Hello!
You can use the class Process for this:
Process.Start("explorer /e,"+Path.GetDirectoryName(myFileName));
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thank u very much.. It works for me but still have a problem ... When the folder opens I want to make my file selected. Is this possible ?
Best Regards..
.:: Something is Wrong ::.
|
|
|
|
|
explorer /select,c:\myfile.txt
/ravi
|
|
|
|
|
I have merged two datasets using "Dataset.Merge" command, which the data is retrived from two different dBase-III databases of same structure.
Can I create a new database of using dataset, if yes, how...?
Regards,
Kishore.
|
|
|
|
|
KishoreT wrote: an I create a new database of using dataset
Yes. You simply use ADO .Net classes to handle these operations. You'd need to make a ConnectionString to the Database provider -in your case dBaseIII- using OleDbConnection class, and use SQL commands -eg. CREATE TABLE-. You can call the commands using OleDbCommand class.
Regards
|
|
|
|
|
I need to migrate dBaseIII databases to Ms-Access tables.
dBaseIII database are to be imported to MS-Access and also need export MS-Access tables to dBase III databases.
All these operations should be done using C#.
can any one help me...
Regards,
Kishore.
|
|
|
|
|
KishoreT wrote: I need to migrate dBaseIII databases to Ms-Access tables.
dBaseIII database are to be imported to MS-Access and also need export MS-Access tables to dBase III databases.
All these operations should be done using C#.
With your C# program, load the data from the dBaseIII and then insert into Access...Pretty straight forward.
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
How to get recent file names like mspaint file menu
ravi
|
|
|
|
|
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?
|
|
|
|