15,920,633 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by hussain548 (Top 31 by date)
hussain548
20-Jan-14 16:59pm
View
Ya ok I appreciate your answer but how to get that permission. If you know please share your knowledge
hussain548
20-Jan-14 16:53pm
View
the name of table is correct. Ya I agree format of table name is not standard.
In the other querry I am inserting data into the table but from the sqlbulkcopy it is giving me error.
hussain548
16-Jan-14 9:44am
View
but I used it in access.
hussain548
14-Jan-14 4:07am
View
no issues sir, I appreciate for your help.
now after updating string as you said "Format of initialization string does notconform to specific starting at index 50"
this error getting sir.
hussain548
14-Jan-14 3:47am
View
if I use like this it is giving me this runtime error
SqlConnection con = new SqlConnection(@"Data Source=.\SQLExpress;Integrated security=true;AttachDbFilename=\C:\maq\" + newmarketname.Text + "\".mdf;Trusted_Connection=Yes");
an attempt toattach-an auto named database file c:\maq\textbox1.text.mdf' failed and a database with the same name exists, or specified file can not be opened, or it is located on UNC share.
the database is exists only one time. so y I am getting this error.
hussain548
14-Jan-14 3:41am
View
"un-recognized escape sequence"
while compiling. it is showing that error is at .\sqlexpress
hussain548
14-Jan-14 3:26am
View
could not open new database'c:\maq\textbox1.text.mdf' create database is aborted
an attempt toattach-an auto named database file c:\maq\textbox1.text.mdf' failed and so on.
hussain548
9-Jan-14 17:39pm
View
i want to insert from txt file to access database but it is taking a lot time. so there is any way to reduce the time.
hussain548
9-Jan-14 15:55pm
View
By the way that code is working sir, I need to insert fastly as soon as possible.
hussain548
9-Jan-14 15:52pm
View
I appreciate your help sir. its working.actually I am inserting from txt file which consist of million of lines so for inserting it is taking a lot of time, how can I reduce the time of inserting.
hussain548
7-Jan-14 9:47am
View
yes sir, I got it sorry for bothering you
hussain548
6-Jan-14 4:57am
View
Sir, it was successful, whenever I re-runs the form it was not stored. means it was not in the collectons.
hussain548
5-Jan-14 19:09pm
View
I appreciate or your help.
foreach (Form f in Application.OpenForms)
{
if (f.Name == "form1")
f.controls.contains(treeview1.Nodes["Market"].Nodes.Add(Textbox1.text));
}
Sir,I did like this but error at treeview 1. I did any mistake sir plz can you help
hussain548
5-Jan-14 18:23pm
View
Ok sir I got your point but how to get current instance?
I know this is silly question but I am new to0 c# so don't min fr this typ0e of question
hussain548
5-Jan-14 18:11pm
View
Sir I have one more question
I want to add child node to parent node of treeview from another form.
I tried this code, this is executing but not adding a child node.
I have tree view in form 1. I want to add it from form 2 textbox value in button ckick event. I did like this
form1 frm=new form1();
frm.treeview1.Nodes["Market"].Nodes.Add(textbox1.value);
can u let me know the problem
hussain548
5-Jan-14 14:15pm
View
thanks a lot sir it works
hussain548
5-Jan-14 8:08am
View
yes sir I got your point so what's the solution for this
hussain548
5-Jan-14 7:53am
View
Sir I used stream writer only.
{
string FILE_NAME = @"C:\\TSOSM\\" + (newmarketname.Text + ("\\" + (newmarketname.Text + ".txt")));
System.IO.File.Create(FILE_NAME);
int i;
string[] aryText = { "", "", "", "", "", "", "" };
System.IO.StreamWriter objWriter = new System.IO.StreamWriter(FILE_NAME,true);
for (i = 0; (i <= aryText.Length); i++)
{
objWriter.WriteLine(aryText[i]);
}
objWriter.Close();
}
Now you said that proper override. How can I use that override here.
hussain548
5-Jan-14 7:35am
View
no sharing access are there sir,
{
if (!System.IO.Directory.Exists(("C:\\TSOSM\\" + (newmarketname.Text + ""))))
{
System.IO.Directory.CreateDirectory(("C:\\TSOSM\\" + (newmarketname.Text + "")));
}
{
string FILE_NAME = @"C:\\TSOSM\\" + (newmarketname.Text + ("\\" + (newmarketname.Text + ".txt")));
System.IO.File.Create(FILE_NAME);
int i;
string[] aryText = { "<ticker>", "<date>", "<open>", "<high>", "<low>", "<close>", "<vol>" };
System.IO.StreamWriter objWriter = new System.IO.StreamWriter(FILE_NAME,true);
for (i = 0; (i <= aryText.Length); i++)
{
objWriter.WriteLine(aryText[i]);
}
objWriter.Close();
}
}
I am not getting why is that error, sir there is any problem with the code.
hussain548
5-Jan-14 6:54am
View
yes sir, now I restarted my pc and run only mu app then also same error
hussain548
5-Jan-14 6:45am
View
No sir, any text file is not opened. at line of stream writer any error is there, because after that it was not moving to for loop.
hussain548
5-Jan-14 6:34am
View
Thanks for reply Karthik sir, I appreciate that. but I am getting this error after changing array diclaration
the process cannot be access the file'c:\TSO0SM\abc\abc.txt' because it is using by another process.
process not entering in to for loop.
hussain548
5-Jan-14 6:22am
View
text file is created but line is not inserted. may be problem in array declaration. I know the way is right but what's the error.
hussain548
5-Jan-14 6:18am
View
line is not inserting
hussain548
19-Nov-13 10:08am
View
Thanks for support I got it.
hussain548
18-Nov-13 10:02am
View
if(HasValidRegistryKeys()) //Check if initial settings are already there
{
Runnable=true;
}
else
{
//Not installed, lets setup app settings
//Assume that the application is running for the first time.
try
{
SetupRegistry(); //Set installation=done
SetupDatabase();
//Setup more things.
Runnable=true;
}
catch()
{Runnable=false;}
}
//Run the app
if(Runnable)
{
RunApp();
}
else
{
MessageBox.Show("Some error");
}
If I use this code in main form load then it will run from any computer or not sir.
hussain548
18-Nov-13 9:16am
View
yes sir that I know,
In my removable media the setup is installed
but here what I want is when ever I attach my removable media to any computer. just I open my removable media and will double click on shortcut of application then it should open. here only I am getting error id" The parameter is incorrect".
I am not installing in every computer. just I want to use application from any computer.
hussain548
18-Nov-13 8:54am
View
Sir I have another problem, I explain u clearly.
while creating setup also I am creating shortcut by right click project output. and I kept that short cut in application folder it self. then I build the setup. every thing is fine upto here.
After that I installed that application In my removable media folder. after that from that folder where I installed the application there is a shortcut, I take shortcut out side of that folder means in removable media it self.
Then I opened that application through shortcut double click it is opening and creating shortcut at the desktop.
But when I go to another user computer, I attached the removable media. from there I opend application by double click shortcut it is giving me error is "The parameter is incorrect"
How to solve this problem sir. application should open through the shortcut only from any computer.please help me for this.
hussain548
18-Nov-13 8:28am
View
Thakns sir,
I tried a lot but u solved my problem. I will be your obligator sir once again thanks.
hussain548
18-Nov-13 7:40am
View
thanks animesh,
please can u tell me how to add iwshshortcut dll at the time of creating setup.
hussain548
16-Nov-13 6:48am
View
in app config file i have given path is Source=H:\database.mdb.[H drive is the flash memory drive]. my project and database is in flash memory.
now in setup i hope ineed to change the path of application folder.the default location is
[ProgramFilesFolder][Manufacturer]\[ProductName] this is the default location of application folder. here i need to give path of flash memory.
give me suggestions to do this.
Show More