15,741,215 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 Javascript questions
View C++ questions
View Python questions
View Java 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 StackQ (Top 200 by date)
StackQ
22-Dec-16 7:11am
View
Thanks alot
StackQ
29-Nov-16 5:26am
View
First thanks for your solution.
I am new to c#, so not aware with threading,as my main skill is SQL Server. Could you please help a bit more here how to declare myThread and so on?
Actual button from where I am processing whole work:-
private void btnNext_Click(object sender, EventArgs e)
{
OpenFileDialog opn = new OpenFileDialog();
opn.InitialDirectory = "C:\\";
opn.Filter = "xml files(*.xml)|*.xml";
if(opn.ShowDialog()==DialogResult.OK)
{
string str = opn.SafeFileName;
//string str = "C:\\TextReader\\";
XMLReaders(opn.FileName.Replace(str,""), opn.FileName); //Doing my work, it's definition is above in my main question
}
}
I want to Pause/Resume loop exist in above function:- XMLReaders(), which started by another button's click event, from here (below click event of button):-
private void btnPR_Click(object sender, EventArgs e)
{
}
However I am trying to implement your solution, but will appreciate your help (will be easier for me :)
StackQ
29-Nov-16 4:53am
View
Deleted
it will not work coz, I am processing loop, from Click event of Button
StackQ
29-Nov-16 4:49am
View
//Why I am looking for this
I extract list of .sql files from xml file, then open each .sql file and do some text extraction to extract table name, and then I create required script with help of these extracted tables names in a loop, one by one
Required answers of above comment:-
-To process one item it will hardly take 1-2 seconds.
-When pausing, don't want to terminate anything, just want to pause it.(Suppose I have 10 .sql file, in loop if i=5, means I processed 5 files, now if paused then it will get pause,and if resume from here after 10-15 minutes then processing should get start from i=6, means from 6th file)
-How many item do you have?> I have xml file where there will be list of .sql file, max number of .sql file count will be 400 to 500
And yes I don't want to keep the connection open, while in pause state. But it will be not an issue, coz it's UAT environment,and everything handled only with Global Temp table and temp stored procedures only. There is no actual object involved from database.
StackQ
25-Nov-16 4:44am
View
check google or check my similar question link:-
http://www.codeproject.com/Questions/450479/Export-to-multiple-sheet
StackQ
25-Nov-16 4:41am
View
Totally agree +5
StackQ
25-Nov-16 2:27am
View
from your machine, you have picked wrong value to convert into datetime, check and pick correct convertible value
StackQ
24-Mar-16 7:26am
View
i told you it's an interview question, I was helpless
StackQ
24-Mar-16 6:35am
View
"row_number () over (order by 1) as roworder"-Error--> Windowed functions and NEXT VALUE FOR functions do not support constants as ORDER BY clause expressions.
but john logic:- ROW_NUMBER() over (order by (select 1)) is not creating such issue for inconsistent order.
StackQ
22-Mar-16 19:39pm
View
thanks alot for help.
StackQ
22-Mar-16 19:39pm
View
thanks alot for help.
StackQ
22-Mar-16 19:39pm
View
thanks alot for help.
StackQ
22-Mar-16 19:31pm
View
yes I know, but coz of technical issues with internet at moment, I couldn't accept other solutions
StackQ
22-Mar-16 13:34pm
View
but in my opinion cross join will be not good in terms of optimization , and interviewer told me this is a table in DWH, table size is more than GB.
StackQ
22-Mar-16 13:27pm
View
Gr8, today I learned -> ROW_NUMBER() over (order by (select 1)) as rowId, i was looking something by which I can generate row_number , but problem was, i dnt have another column , on the basis of which i can partition/order by. U gave me solution-> (Select 1)
StackQ
22-Mar-16 13:19pm
View
there is only one column - Val, no identity column or another column is present, that's why i was not able to use row_number() over.......
StackQ
12-May-15 6:45am
View
yep agree with you, just when type it on notepad, it worked but when I saved my notepad file and again open it shows ?? didn't worked
StackQ
12-May-15 6:44am
View
♣
StackQ
12-May-15 5:26am
View
Any symbol in my question is not encrypted. Those are in original form. I agree with you for special fonts, but in my opinion, on few Computer I tried with ALT KEY + Numeric Keys and got these characters.
Example:- Alt + 5= ♣
Easily we can write on notepad as well. That's why I think those are not special.
StackQ
12-May-15 5:01am
View
I am trying to develop my encryption alog using these alt codes. And these are not special fonts. These are in built symbols ,can try with ALT + 1,2,3..... so on. But here issue is:-
1)INSERT INTO MyTable VALUES('♣') executed successfully.
2)But in table it saved as ?
3)So I am unable to retrieve it, in select clause as ♣
StackQ
12-May-15 4:03am
View
As well as I tried with StringToBinary, and BinaryToString, byte array but nothing worked.
private void ButtonShow_Click(object sender, EventArgs e)
{
try
{
string s1 = "♣";
s = StringToBinary(s1);
s = BinaryToString(s); //Not working here
cnn = new SqlConnection(connetionString);
cnn.Open();
string sql = "Insert into EDTable (RText) values ('♣≈Ω°±Σⁿ')";
cmd = new SqlCommand(sql, cnn);
cmd.ExecuteNonQuery();
da = new SqlDataAdapter("Select * from EDTable", connetionString);
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
}
catch (Exception ex) { }
finally
{
cmd.Dispose();
cnn.Close();
this.Close();
}
}
public static string StringToBinary(string data)
{
StringBuilder sb = new StringBuilder();
foreach (char c in data.ToCharArray())
{
sb.Append(Convert.ToString(c, 2).PadLeft(8, '0'));
}
return sb.ToString();
}
public static string BinaryToString(string data)
{
List<byte> byteList = new List<byte>();
for (int i = 0; i < data.Length; i += 8)
{
byteList.Add(Convert.ToByte(data.Substring(i, 8), 2));
}
return Encoding.ASCII.GetString(byteList.ToArray());
}
StackQ
12-May-15 3:59am
View
I want to insert it as:-
INSERT INTO MyTable VALUES('♣');
StackQ
4-Jul-14 23:55pm
View
may be more than 12 values, its not fixed, just an example
StackQ
24-Mar-14 7:18am
View
http://stackoverflow.com/questions/20119162/transpose-rows-into-columns-in-sql-server-2008-r2
http://stackoverflow.com/questions/13372276/simple-way-to-transpose-columns-and-rows-in-sql
http://stackoverflow.com/questions/18618951/sql-transpose-rows-to-columns
StackQ
3-Feb-14 6:42am
View
not aaceptable, coz we already used to do this, running project can't alter for BalQty, used to do it by subtracting.
StackQ
20-Dec-13 12:34pm
View
thnx for help, your query almost helped me in a right way, but plz first check from ur side, is it perfectly appropriate. Becoz in practical even u don't want to write a query where there are some additional recoreds like --sysrscols
sysrowsets
sysrowsets
sysrowsets
sysclones
StackQ
20-Dec-13 0:45am
View
ERROR AT syntax:- and Year(t.addedDt)<2011 is not right showing error for 'AND' & 't'
StackQ
14-Dec-13 14:19pm
View
if u r not able to run your mind just keep patience and learn.
StackQ
14-Dec-13 14:18pm
View
I am not joking ok...
StackQ
14-Dec-13 13:45pm
View
thax for helping me, as per my question i have got perfect answer.
But actually i am trying to find top 3 employees whose salary is maximum, without using order by, max, min, (any function).Trying to apply min max algorithm, i want to compare 1st value with all values available in that column, if any one is greater then will put in my temp variable and will compare from this new value,
Are you have any idea? by using my logic/ or your own without using sql functions
StackQ
19-Nov-13 5:48am
View
thank u so much, this time i have done it with your help, once again so many thanks :)
*****
StackQ
19-Nov-13 5:06am
View
1:-PRINT 'CREATE TABLE MYINDEX_' + RIGHT(CONVERT(VARCHAR(8), GETDATE(), 112),2)+LEFT(CONVERT(VARCHAR(8), GETDATE(), 112),6)+ ' (ID INT NOT NULL, NAME NVARCHAR(120))';
O/P is:-
CREATE TABLE MYINDEX_19201311 (ID INT NOT NULL, NAME NVARCHAR(120))
2:-EXEC 'CREATE TABLE MYINDEX_' + RIGHT(CONVERT(VARCHAR(8), GETDATE(), 112),2)+LEFT(CONVERT(VARCHAR(8), GETDATE(), 112),6)+ ' (ID INT NOT NULL, NAME NVARCHAR(120))'
/P:-
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'CREATE TABLE MYINDEX_'.
#USING SQL SERVER 2008
For EXEC Just showing incorrect syntax at CREATE, even i have tried
1:-print 'CREATE TABLE MYINDEX' + ' (ID INT NOT NULL, NAME NVARCHAR(120))'
O/P:-CREATE TABLE MYINDEX (ID INT NOT NULL, NAME NVARCHAR(120))
2:-EXEC 'CREATE TABLE MYINDEX' + ' (ID INT NOT NULL, NAME NVARCHAR(120))'
O/P:-'CREATE TABLE MYINDEX' + ' (ID INT NOT NULL, NAME NVARCHAR(120))'
So problem not with table name with syntax or wrong way.Suggest some other way...
Thanks
StackQ
19-Nov-13 4:05am
View
O/P is:- CREATE TABLE MYINDEX_Nov1920132:33PM (ID INT NOT NULL, NAME NVARCHAR(120))
StackQ
19-Nov-13 3:45am
View
1st thing it's always giving error at 'CREATE TABLE MYINDEX_', after solving it i can go ahead.
StackQ
19-Nov-13 2:36am
View
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'CREATE TABLE MYINDEX_'.
StackQ
14-Jun-13 0:20am
View
as i am getting u, so i should build all dlls of my application in x86 mode.
StackQ
14-Jun-13 0:18am
View
In my application i have used any CPU for all dlls to build. Then it should not be the problem of reference dll.
StackQ
30-May-13 6:43am
View
I checked it again on XP, and it's working as i expected.
StackQ
30-May-13 6:05am
View
yes, i have read that article,but it's for XP, right there is no version for windows 7 and 8.
Anything else??
StackQ
29-May-13 0:47am
View
yes, your solution is right.But i am trying to not to change the code of UC. Thanks for ur suggestion.
StackQ
24-Jan-13 2:38am
View
I not attended any interview,i m a fresher,and today, i m just exploring about .net framework,so i have some doubt,that i asked.If they r wrong just u can tell me ,u can't expect always a right question from a beginner.
thnx for ur help.
StackQ
24-Jan-13 2:00am
View
No in my opinion perhaps not, see this link:-
http://vb.net-informations.com/framework/managed_code.htm
at 2nd para line:-
The Managed Code running in a Common Language Runtime (CLR) cannot be accessed outside the runtime environment as well as cannot call directly from outside the runtime environment. This makes the programs more isolated and at the same time computers are more secure . Unmanaged Code can bypass the .NET Framework and make direct calls to the Operating System. Calling unmanaged code presents a major security risk.
appears like there is difference between them.
StackQ
17-Jan-13 5:17am
View
thnx for helping me!!!!I m trying ur code..
Ofcourse i will also not prefer to develop vehicle,but prefer to learn how we assemble vehicle...
StackQ
29-Dec-12 4:55am
View
ya we know ur train is going!!!! keep patience
StackQ
29-Dec-12 4:51am
View
thnx, u always help me,and push me to go ahead.thnx for ur support.
Now i have a new question,take a look at it:-
http://www.codeproject.com/Questions/517850/Logicplusbehindplusguidplusinplusc-23pluswindows-3
StackQ
29-Dec-12 4:49am
View
k,thnx,ya i m searching about it since 5 days,but i have not perfect solution,so finally i posted it here.
StackQ
29-Dec-12 4:33am
View
YA,i agree with u.So as u explained,this is new for me,it explore me better,Thnx
StackQ
28-Dec-12 7:19am
View
it's also working right,but it change column constraint to not null,which is not right according to my requirement.But thnx for help.+5
StackQ
27-Dec-12 1:39am
View
http://blog.sqlauthority.com/2010/11/25/sql-server-concat-function-in-sql-server-sql-concatenation/
this link helps me.
StackQ
27-Dec-12 1:37am
View
ya i got my answe:Explaining:-
In my table database(columns are dbname,connstring,financeconnstring,rptdbstring)
by my 1st query it select all connstrings but shows only for dbname and connstring,and remaining exist in background according to 1st query.
but when i run this query:-SELECT + '#VIJAY#' + FinanceConnString + '#VIJAY#' +
RptDBConnString AS ConStr FROM [DataBase] WHERE Active = 1
then it shows all the background/hidden query of financeconnstring and rptdbconnstring.
thnx for ur effort also.
StackQ
27-Dec-12 1:20am
View
no,i just want to know why we r using:- +'#VIJAY#' + FinanceConnString + '#VIJAY#' +
in my 1st query,bcoz this query is not written by me,it's written by another person,so i want to know why we r using it?
StackQ
27-Dec-12 1:17am
View
i m not getting u.But u r senior,so i agree with u,may be approach is not right,but i just want to know diff bet them? And plz help me how should i ask for this question to know diff bet them?
StackQ
19-Dec-12 11:47am
View
Ya i agree with u,and i don't like this also,i m in problem so i pasted.Frm next time i will never do this mistake.
StackQ
19-Dec-12 2:48am
View
when i build my solution this shows only 1 error:-The type 'NewJoinee.ESTextBox' already contains a definition for 'CheckMandatory'
but after sometime again showing 13 error,can u tell me solution for this problem.
StackQ
19-Dec-12 2:42am
View
Deleted
ya all error are solved.Thanx....
StackQ
16-Dec-12 23:24pm
View
Now check!!!
StackQ
15-Dec-12 14:31pm
View
k
StackQ
15-Dec-12 14:26pm
View
check again
StackQ
15-Dec-12 13:54pm
View
r u want to store colour name or it's value?Why?Bcoz u r giving manually:-Colors.Red
Then u can do it like:-
Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
LayoutRoot.Background = New SolidColorBrush(Colors.Red)
Dim Color as String="Red" //actually what u want i m not getting
End Sub
Elaborate more,and why u want to use class?
StackQ
15-Dec-12 13:40pm
View
provide code,and comment at place where u want solution.
StackQ
15-Dec-12 12:02pm
View
ya,it check for alphabet and numeric character only,not symobls,i m updating only symbols,so showing error,but when i changed my alphabetic characters, it works for them,Thnx..
StackQ
15-Dec-12 11:48am
View
OK,can u send me the link:- where i will post your question in the Site Bugs forum.
StackQ
15-Dec-12 11:17am
View
actually i create it on vb.net,and for u,i convert them to vb online.So just follow logic.Thnx to suggest me...
StackQ
15-Dec-12 11:14am
View
sorry at present i m not in office,so i m unable to send u now,i will send u on monday.Bcoz it's on my office system.
ok,Sure on monday
StackQ
15-Dec-12 11:13am
View
Deleted
OK,now check ur email id.
StackQ
15-Dec-12 7:45am
View
means there are more value, whose upperlevel value='1000000001'
StackQ
15-Dec-12 7:22am
View
Select @Query1= (select TRANSACTIONID from TRANSACTIONTABLE where upperlevel='1000000001');
(select [REFERENCE_NUMBER] from TRANSACTIONTABLE where REFERENCE_NUMBER=' (select cast(@Query1 as varchar(max)))'
StackQ
15-Dec-12 7:14am
View
now check again
StackQ
15-Dec-12 6:06am
View
oh!,on the browser back button.Ok.Ok
StackQ
15-Dec-12 5:47am
View
try to export data through sqlConnection.
StackQ
15-Dec-12 5:10am
View
restart ur pc again.
StackQ
15-Dec-12 4:32am
View
Solution 1 is ur answer.
StackQ
15-Dec-12 4:08am
View
means u want to give rights?
StackQ
15-Dec-12 3:59am
View
Explain:
my problem is I need to Copy almost 10 Questions in New Table using Query.
more....
StackQ
15-Dec-12 3:58am
View
If u will use "where Qcode=101" then it will copy only one row.If there will exist more records then it copy more.
or
to copy top 10 use:-Top
To copy selected column use: Select QcCode,Description into TblName from TblName
{Actually i m not getting u what u want}
StackQ
15-Dec-12 2:25am
View
We are not here to complete ur homework.Just to push u.
StackQ
15-Dec-12 2:19am
View
ok,so create a function,put refresh code inside that function,and call that function where i specified.
StackQ
15-Dec-12 2:14am
View
may i know ur email id? to send complete project of compression or uncompression.
StackQ
15-Dec-12 2:13am
View
we bind values on pageload
{Here call for refresh!!!!!!!}
and select next pageindex after we can bind grid with another value the pageindex doesn't change
StackQ
15-Dec-12 1:55am
View
check for the appropriate event,or tell me after what process, u want to refresh ur gridview.
Give brief description about ur process:
StackQ
15-Dec-12 1:51am
View
so simple,for each value u r inserting check them,in dropdownlist,if exist not add,else add,Follow logic
StackQ
15-Dec-12 1:48am
View
ya right answer
StackQ
15-Dec-12 1:47am
View
try after ur event:UrDataGridViewNaME.Refresh();
StackQ
15-Dec-12 1:43am
View
and also check for above both link provided by Krunal and Graus.
StackQ
15-Dec-12 1:32am
View
now check all links.
StackQ
15-Dec-12 1:15am
View
Why r u reposting ur question again,Just update ur old question and post.That will be better option instead posting new one.
StackQ
15-Dec-12 1:01am
View
k,wait
StackQ
15-Dec-12 0:37am
View
what u want?xplain in words
StackQ
14-Dec-12 10:55am
View
They r just like a template ,u can make them according to u,and then u can use them many times.
Procedure is given by sir,now try to just follow yaar,not difficult.u can do.In the user control,add form's control what u want,then build ur solution,it will be visible in toolbox,when u will build them after creation.
StackQ
14-Dec-12 10:44am
View
user controls gives us more flexibility also.
StackQ
14-Dec-12 10:42am
View
really,good answer given by OriginalGriff,it's also advantages.
StackQ
14-Dec-12 10:40am
View
OK,how u uploading ur image?
StackQ
14-Dec-12 10:38am
View
TRY THIS LINK:
http://en.wikipedia.org/wiki/Database
StackQ
14-Dec-12 7:57am
View
Suppose:
Window1 contains ComboBox
Window2 contains SubmitButton (Where u r adding fruit name)
So create function to add item to comboBox, By defining public on window1
now on Window2:
create a object of window1 like->
Window1 objWindow1=new Window1();
Now on submitButton_Click Event call like below
//now call ur comboBox add functionality through object
objWindow1.UrComboBoxAdd_FunctionName();
try it and give me feedback.
StackQ
14-Dec-12 7:51am
View
paste ur code,or explain more
StackQ
14-Dec-12 7:11am
View
gud question.I also want to know?
StackQ
14-Dec-12 7:08am
View
ya,paste ur code,I m not getting u.
StackQ
14-Dec-12 7:01am
View
k
StackQ
14-Dec-12 6:52am
View
somebody down voted ur answer,i don't know why?
according to me,u have given right answer so,by me+5
StackQ
14-Dec-12 6:49am
View
Thnx for help...
i know answer,as u explained here.I just posted this question,perhaps i will get something new.But i know it's difficult,mainly in india,as u explained Kiran (I thought same,with the name kiran.It's really difficult)
But u have given me a clue by mr/miss/mrs .It can be one solution.
StackQ
14-Dec-12 6:20am
View
ya,ya it's perfect answer,now i got answer of my question,thnx.I can't vote u again otherwise i will rate again.Whatever but once again thnk u.
StackQ
14-Dec-12 6:13am
View
no,in my question,there are 3 types of name:
1st- Harish Chandra Singh (Here 3 WORDS)
2nd-Vikash Philips (BUT HERE 2 WORDS)
3RD-Mahamana Madan Mohan Malviya (Here 4 words)
so in this case where name words vary,at that condition how will recognize
(Singh,Philips,Malviya).It's my question.
If name's word will not vary then i can solve according to ur given solution and by other methods.I know.
StackQ
14-Dec-12 5:44am
View
According to above question u have given perfect answer.So by me +5 given.
But In my question help:
Suppose if name is like->
Harish Chandra Singh
and
Vikash Philips
then how will recognize title (Singh and Philips).
StackQ
14-Dec-12 5:38am
View
check for rows,greater than 65536 or not?
if greater than 65536,so u may got this error!
StackQ
14-Dec-12 4:57am
View
but perhaps,u rate me 1 !!!
StackQ
14-Dec-12 1:40am
View
u r right.
StackQ
14-Dec-12 1:36am
View
ya, Krunal is right.Explain more..
StackQ
14-Dec-12 1:34am
View
nothing?gr8 idea!!
StackQ
14-Dec-12 1:32am
View
u used &&(And) and i used ||(Or) operation.Not bad
StackQ
14-Dec-12 1:06am
View
If u will choose ur logic to encrypt then,u can decrypt with same logic even in c#,But with the existing logic like md5 or sha-1 u can't do.
StackQ
14-Dec-12 0:59am
View
sorry yaar,i don't know it with C++,otherwise i will write complete code.So i suggested u only logic.I thought u know about PreviewPane and windows Explorer in context of c++.So Update ur question again.
StackQ
14-Dec-12 0:53am
View
ok. 1st i saw ur code,and according to ur code i assume if u can write->
string s = "insert into Product(Product1,Quantity,Price,Date,Session,Month) values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + dt + "','" + vv + "','" + month + "')";
this code,then u have ability to think what should change.
ok,try more,and u can learn more from this website.
StackQ
14-Dec-12 0:28am
View
latest or the version which is compatible to ur project.
StackQ
14-Dec-12 0:26am
View
ya u r right,but i think he know well how to write query.
StackQ
14-Dec-12 0:22am
View
In my opinion u have to download latest version.Because In Software Industry u have to be updated and aware with new technologies
StackQ
14-Dec-12 0:18am
View
that's not the matter in which position ur field occur.Even if it occur at 0th position,it will return,number of row=1.
there are 2 way to solve the problem of datagridview-
1st-Use DataGridView and set visibility to false. //But it's not good approach
2nd-U can replace datagridView by datatABLE,AND THEN check row.count for datatable.
3rd-If u will replace dataGridView by DataSet so same,check rows for dataset
StackQ
13-Dec-12 23:59pm
View
textbox1.text=?
is it containing name of product1
StackQ
13-Dec-12 7:36am
View
oh so u want directly query to,select image form system and store them into database.
So wait,I will also wait?
Perhaps it's possible?I don't know
StackQ
13-Dec-12 7:31am
View
ok,k, so plz wait for much better answer.I m sure,just after few minutes some of more experienced people will answer u.And ur problem will solve.
StackQ
13-Dec-12 7:29am
View
here "restart" means as i gave solution,then at last choose restart service on right click
StackQ
13-Dec-12 7:28am
View
Just so simple yaar,click on restart,if not happen then might be other problem,wait for more experienced answer.
StackQ
13-Dec-12 7:18am
View
u can manually start the services of windows.
StackQ
13-Dec-12 7:15am
View
below i write the code to convert ur image to byte array format.
StackQ
13-Dec-12 7:15am
View
1st u have to declare type "image" of that column where u want to store them.Then u have to convert ur image file to byte format,store it to byte array,and now insert/update to ur database.
StackQ
13-Dec-12 7:03am
View
ok,If VS2008 Then On dataGridCellClick event make a query like-
string Query,PersonName,JobType;
PersonName=dataGridView1.Rows[e.RowIndex].Cells["PersonName"].Value.ToString();//here u will get person name to query for this person
Query=" Select Job from UserList where PersonName='" & PersonName & "'";
SqlDataAdapter DA=new SqlDataAdapter(Query,UrConnstringName);
DataSet ds=new dataset();
DA.fill(ds);
JobType=ds; //here u will get Programmer for the person (or for which row u clicked)
now
set
ur dropdownThing.defaultVALUE=JobType
StackQ
13-Dec-12 6:55am
View
ok,so in case of vs2010 i don't know,bcoz i m not using vs2010.Well see other answer.Or search another event which is used like cellClick in 2010version.
StackQ
13-Dec-12 6:53am
View
not right.
StackQ
13-Dec-12 6:52am
View
u can user saveFileDialog which will give more flexibilty to user at download time.
StackQ
13-Dec-12 6:50am
View
ya u can show ur table's data to gridview.
urGridView.datasource=dt; (dt is the table where is ur data)
StackQ
13-Dec-12 6:48am
View
Here each time when u will click on cell,each time new value will be store into ur dropdown.
StackQ
13-Dec-12 6:32am
View
oh sorry it's for local ip address.
u should read this article,It will help u
http://www.codeproject.com/Articles/23673/DNS-NET-Resolver-C
StackQ
13-Dec-12 6:18am
View
DON'T forget to add namespace.
StackQ
13-Dec-12 6:13am
View
ok,try and learn
StackQ
13-Dec-12 5:49am
View
i agree with Graus
StackQ
13-Dec-12 5:25am
View
ya
StackQ
13-Dec-12 5:02am
View
like at the button click event-
urDataGridName.datasource= UrDataSourceName
r u statified?
StackQ
13-Dec-12 4:47am
View
Sure,it will work
StackQ
13-Dec-12 2:39am
View
it's really not working,wait i m trying,if success then i will share
StackQ
13-Dec-12 1:54am
View
wait
StackQ
13-Dec-12 0:45am
View
+5,not only for this,bcoz u always help me,and sometimes angry on my stupid activity.
StackQ
12-Dec-12 1:46am
View
:)
StackQ
12-Dec-12 1:45am
View
Deleted
:p
StackQ
12-Dec-12 1:34am
View
ok,thnx ..
StackQ
12-Dec-12 1:07am
View
k, I agree with u.But we can see in many sites suppose we forgot our password then they ask our security question and if correct then,they send our password to our registered emailid or anywhere(Here they not reset password)(It means either they store our password as we input or if store in any other form (encrypted) then perhaps they will decrypt it and then send us).
Or You can suggest me some other ways->how can i send user password without resetting if user request through forgotPassword link.
StackQ
11-Dec-12 3:42am
View
see my improve question and suggest me some more format to add comment.
StackQ
11-Dec-12 3:41am
View
see my improve question and suggest me some more format to add comment.
StackQ
3-Dec-12 3:55am
View
i know about datetime.now muchbetter.I have an application which reads sms from my handset.So here in my system it shows the date of sms,when i received it in above format,so i have to save this date in my database same but without +22,but i don't want to use splitting method.I want to convert it in the format (yyyy-mm-dd hh:mm:ss) only
StackQ
8-Nov-12 4:13am
View
so u have to give a textbox where user will input how many check box he wants to check,then set this value at greater than > (as user specify)
StackQ
8-Nov-12 4:03am
View
with my logic after the value of checkboxCount++, u can check it in if-else condition and if,it's value is greater than >2(what u want u can put 2,3,4...) then show error else nothing.
StackQ
8-Nov-12 3:57am
View
it's okay
StackQ
8-Nov-12 3:50am
View
it's perfect answer
StackQ
8-Nov-12 3:41am
View
Deleted
no idea at wpf,but it's work in VS2008 windows
StackQ
8-Nov-12 2:37am
View
Deleted
what's ur error?
StackQ
8-Nov-12 2:27am
View
AT UserControl right click on every textbox then-go to properties then-see Modifiers change it to public
StackQ
8-Nov-12 1:59am
View
as here i m selecting .doc file through openfiledialog,u can select image file instead it.It will work for any type file.Hope it will help u
StackQ
8-Nov-12 0:25am
View
SELECT 1stColumnName,2ndColumnName,3rdColumnName into database2.tableName from database1.tableName;
StackQ
6-Nov-12 6:31am
View
3-tier architecture ..but in which field,in dbms,stroage,or .net
StackQ
6-Nov-12 5:53am
View
ok,try.. gudluck
StackQ
6-Nov-12 5:47am
View
u r using asp.net code at ExportDataSetToExcel,but i don't know anything about asp.net ,so it's difficult for me, but i can give u logic to save in 2 sheets
StackQ
6-Nov-12 2:16am
View
here remotefile=http://www.w3schools.org//
and localfilename=application.startupath+myfile.html
can i assign them like this?
StackQ
6-Nov-12 2:06am
View
right
StackQ
6-Nov-12 1:54am
View
Deleted
sorry, i want to learn ,to make this application program through c# coding.
StackQ
6-Nov-12 1:49am
View
here logic is same as i m doing, and one thing,it's bye asp-net. plz yr give right answer only mention in my question heading (using c#)
StackQ
6-Nov-12 1:34am
View
Deleted
i wanna learn. in c#
StackQ
5-Nov-12 7:39am
View
can u help me with some programming logic? it will be better for me.
StackQ
5-Nov-12 7:03am
View
ofcourse, i was also thinking, how it will be possible,bcoz these are 2 diff network. but i thought may be there will be option for it,but thnx ....it's really not possible
StackQ
5-Nov-12 7:00am
View
means u want to check this column for each value of column dayid,and if there is value like (1,2,3....) then replace it (1 replace with monday,then 2 with tuesday and so on) and if there is already (monday,tuesday,3,4) then only want to replace 3 and 4 with their respective values. m i right?
StackQ
5-Nov-12 2:20am
View
Showing error ----(error is)--->
Msg 102, Level 15, State 1, Line 8
Incorrect syntax near '>'.
Msg 156, Level 15, State 1, Line 11
Incorrect syntax near the keyword 'else'.
StackQ
26-Oct-12 3:35am
View
:) ya i agree with u.
StackQ
23-Oct-12 2:02am
View
perfect answer.But one problem in case suppose input is address-My House no-01, distt-Newyork, pin-896547, India (so in this case the program removes(',' and '-' character),is there any solution to print , and - value.
but thnx for helping.....
StackQ
23-Oct-12 0:58am
View
this one is best suit for me.Thnk u so much
StackQ
22-Oct-12 13:07pm
View
excuse me ,with talking in a polite manner i am accepting my mistake,so how you can blame me rude, it's not right
StackQ
22-Oct-12 13:03pm
View
ok I agree with u,but now help me in this question once again, it's my request to you, if u can help me in this show plz tell me,with some code or logic,
StackQ
22-Oct-12 12:57pm
View
Is there any problem with u? I m getting for more answers it will explore me and I can gain much, is this not right to learn? why I m here?
StackQ
22-Oct-12 11:37am
View
i m saying that if,my every line length will be suppose 11 character,so there are some problem occur to print-( I want to play football and I want to play chess.)
1st line will take 11 character which will be(I want to p),in 2nd line will print(lay footbal) and so on.So here u can see play divide into 2 words p and lay,again football is dividing in 2 words footbal and l,so this is a problem.I want if this type of situation occur then complete word should be start from next line,as i want then 1st line will be(I want to) then 2nd line will be(play) and in 3rd line (football) and so on.
StackQ
22-Oct-12 11:22am
View
thnx..
StackQ
20-Oct-12 4:50am
View
can u tell me a best dll resource editor name,by which i can edit everything of a dll file
StackQ
20-Oct-12 3:48am
View
ya i know this is illegal,but i just want to learn,not for any commercial purpose.
StackQ
19-Oct-12 3:30am
View
Is there any way without using third party tool,so plz tell me.I don't want to use any other dll except default.
StackQ
17-Oct-12 7:54am
View
no its not working for pdf files.It creates but when i m open it manually showing error-
StackQ
17-Oct-12 7:36am
View
in this line when i m using extension-.pdf or .xps then file creates but when i m opening it manually showing error
writeStream = new FileStream(Application.StartupPath + "Raaz.pdf", FileMode.Create);
StackQ
17-Oct-12 3:33am
View
thnk u so much.It's working .And i have successfully completed my activity.
StackQ
16-Oct-12 7:51am
View
both type,input file may be in (.doc or .docx)
StackQ
4-Oct-12 2:53am
View
ok.
StackQ
2-Oct-12 5:16am
View
if u can solve this problem through delegate,so plz provide me solution through delegate.
StackQ
2-Oct-12 5:14am
View
i have a UC Component, in which i have taken a textbox(UserControl.TextBox1.Text).In my Form1 i m using 2 UserControl(UserControl1 and UserControl2).I want the code through which text of UserControl1.TextBox1.Text should show in UserControl2.TextBox1.Text,simultaneouly as i m entering values in UserControl1.TextBox1.Text.
In brief-
1-Suppose i have to write ME,so first i will enter M in UserControl1.TextBox1.Text(here i m entering the values in UserControl1.TextBox1.Text but it should also show in UserControl2.TextBox1.Text) like (on the keypress event of textbox1 --textbox2.text=textbox1.text)
StackQ
22-Sep-12 3:08am
View
help on my this question-http://www.codeproject.com/Questions/462895/Value-of-textbox1-should-show-in-textbox2-on-every
StackQ
22-Sep-12 2:56am
View
wait,i have a question,i m working on it since 3 days,but unable to find the solution throught code project and myself,plz help me. U can see my question through the link-
http://www.codeproject.com/Questions/462895/Value-of-textbox1-should-show-in-textbox2-on-every
StackQ
22-Sep-12 2:51am
View
ok,ok,i m getting u. thanks,bcoz u always help me.thnx a lot
StackQ
22-Sep-12 2:48am
View
Original Griff,i want to know,what u have edited here,if u have done any changes,so plz tell me,it will be beneficial for me
StackQ
22-Sep-12 2:45am
View
is this not right?and if i m right,so why u delete it?
StackQ
22-Sep-12 2:44am
View
Deleted
is this not right?and i m right,so u delete it?
StackQ
22-Sep-12 2:38am
View
i have submitted my solution,u can see this,it's working,but i m using
pictureBox1.Width = e.ProgressPercentage * 10;
so according to progress my picturebox load like 10%,then 20% and so on,but i don't want to use here picturebox,if i will be able to use picture.width=e.progressPercentage*10
then it will be so nice.than i mean.And one thing i m using backgroundworker,progressbar.But I only want to use track bar.
StackQ
22-Sep-12 2:27am
View
just wanna learn,bcoz i m beginner.I m learning C# since 2 months.I have done it,the step is that 1-I m loading the complete image into picturebox,then except picture,i m showing picture box according to track bar.But if i can do it through picture,so it will be so nice.
StackQ
21-Sep-12 2:56am
View
ok ,i m trying
StackQ
21-Sep-12 2:48am
View
how,can u guide through code,coz i have no idea,about this concept,i m learning C# since 2 months.
StackQ
21-Sep-12 2:44am
View
not working bcoz this is not simple textbox,this textbox is in user control UI component.U should see once again my updated question.
StackQ
21-Sep-12 2:41am
View
THERE is not the textChanged event bcoz this is not simple textbox,this textbox is in user control UI component.
StackQ
21-Sep-12 2:30am
View
how can i do it,bcoz i m a beginner ,so can u give me some idea or guide through code,i have also pasted my user control and forms code.
StackQ
21-Sep-12 2:28am
View
----------------------------------------------------------------------------------------------
1-Form1.cs code
Collapse | Copy Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TxtBoxAutomation
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void ucTxtBox1_KeyPress(object sender, KeyPressEventArgs e)
{
ucTxtBox1.textBox1.Text = ucTxtBox2.textBox1.Text;
}
}
}
2-UCTxtBox.cs code-
Collapse | Copy Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TxtBoxAutomation
{
public partial class UCTxtBox : UserControl
{
public UCTxtBox()
{
InitializeComponent();
}
}
}
Show More