15,902,777 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 Mayur Panchal (Top 63 by date)
Mayur Panchal
5-Sep-13 9:08am
View
I am not sure but try below line of code, after defining table 'dt'.
dt.TableName = "Table1";
Let me know, if it works.
Mayur Panchal
4-Jun-13 2:07am
View
Is this Desktop application or Web(ASP.Net) ??
Mayur Panchal
1-Jun-13 9:02am
View
Why you are not using Image datatype instead of varchar(max) ??
Mayur Panchal
31-May-13 1:55am
View
Is it window form application or web application ?
Mayur Panchal
30-May-13 2:26am
View
have try to identify your query? Get that query, may be datetime format is invalid or date is blank or something.
Mayur Panchal
30-May-13 1:46am
View
Try _dt.Tostring() in below line
SqlDataAdapter adp = new SqlDataAdapter("select * from tblPSData where code_id='" + _id + "' and SDate='"+_dt.Tostring() +"' order by serial_no", con);
or
if it dosen't work then, debug your code get the exact query and try to run in sql query editor.
Mayur Panchal
30-May-13 1:17am
View
Then, you can do this stuff same as last solution, build another property for date and put extra condition on that method used to fetch data for grid. Simple !!!
Mayur Panchal
30-May-13 0:55am
View
This is your re-post, you have asked this question before and solved it. Below is link :
How to show all record on cell double click event in datagrid view to new winform using datagrid view?
[
^
]
Mayur Panchal
29-May-13 2:27am
View
There is no any musical instrument in my .wav file. It's just normal speech of any person.
i.e. Someone specks "This is test" that need to be written in a textbox.
Mayur Panchal
29-May-13 2:02am
View
Something like speech to text recognition. But it's a .wav file in place of speech.
Mayur Panchal
28-May-13 8:02am
View
but, what about that exception ?
Mayur Panchal
28-May-13 7:49am
View
Please, show your property declaration.
Mayur Panchal
28-May-13 5:11am
View
It's working fine at my side. Exception is same or changed?
Mayur Panchal
28-May-13 3:42am
View
See updated solution. Write property as updated below.
Mayur Panchal
28-May-13 3:33am
View
On which line ?? which method ??
Mayur Panchal
28-May-13 2:33am
View
Plz show your code of, when you are double clicking on cell and opening new form. So i can suggest you.
Mayur Panchal
28-May-13 2:18am
View
and all those records are present on your current form or you will fetch those records when you load another form.?
Mayur Panchal
28-May-13 1:58am
View
Do you want to show all the records related to clicked entity or only count ?
Mayur Panchal
27-May-13 7:05am
View
Have you bind both controls with same datasource ?
Mayur Panchal
27-May-13 1:16am
View
at which line, you are getting the exception ? bcz i've tried at my side i m not getting any error.
Mayur Panchal
25-May-13 2:47am
View
tabControl1.Focus();
tabControl1.TabPages[0].Show();//If currently other tabpage is selected.
tabControl1.TabPages[0].Select();
Mayur Panchal
24-May-13 4:15am
View
Not clear. what you are trying to say?
Mayur Panchal
24-May-13 4:05am
View
What is the problem ??? any error ??
Mayur Panchal
24-May-13 3:22am
View
Is it winform or web(asp.net)??
Mayur Panchal
24-May-13 2:54am
View
Refer below link
http://www.codeproject.com/Articles/9781/How-to-Load-and-Display-Crystal-Reports-in-VB-NET
Mayur Panchal
24-May-13 2:52am
View
show us code for that and stotedproc.
Mayur Panchal
24-May-13 2:50am
View
But if report is in your project/solution then u can access it directly. you don't need the path for that.
Mayur Panchal
24-May-13 1:46am
View
int UploadFile_id = 0;
if (ds_UploadFile_id != null && ds_UploadFile_id.Tables.Count > 0 && ds_UploadFile_id.Tables[0].Rows.Count > 0)
{
UploadFile_id = int.Parse(ds_UploadFile_id.Tables[0].Rows[0]["Video_id"].ToString()) + 1;
}
Mayur Panchal
22-May-13 4:59am
View
field means ? a particular cell or whole column ?
Mayur Panchal
21-May-13 8:16am
View
please put it as a separate question on code project. and explain exactly what you want.
Mayur Panchal
21-May-13 7:22am
View
Great!!
Mayur Panchal
21-May-13 3:21am
View
Is there any other columns present in that Datagrid view control ?
Mayur Panchal
21-May-13 2:24am
View
You can handle TextChanged event of textbox. put a condition there, when limit reached then transfer focus to other textbox.
Mayur Panchal
21-May-13 2:16am
View
Which event of datagridview, you are handling to do your stuff?
Mayur Panchal
21-May-13 1:23am
View
ok. then you need to put a condition something like:
if (node.Attributes["name"] != null && node.Attributes["name"].Value == "USERID")
Mayur Panchal
21-May-13 1:14am
View
you can refer above method of reading elements. To update you just need assign innertext property of the tag you want to update or if case of attributes you need to update value of the same.
for example:(Code in above method)
if (node.Attributes["name"] != null)
{
node.Attributes["name"].Value = "NewValue";
}
Mayur Panchal
18-May-13 6:21am
View
Nothing special in it. There's a join of two tables in above query.
Mayur Panchal
18-May-13 5:12am
View
Look at the updated solution above.
Mayur Panchal
18-May-13 4:57am
View
it's not possible to set e.Handled on checkbox's checkedchanged event.
You have to do some other workaround for that.
I suggest you to maintain disable chars in List<char> when you check on checkboxes and then handle it in keypress event. You need to find in list whether your disable char is present or not.
Mayur Panchal
18-May-13 4:00am
View
But why you want to call another method ? you can make a condition in KeyPress event though.
What's your condition, when u want to disable 'A' and 'a' ?
Mayur Panchal
18-May-13 3:31am
View
Deleted
Then mark it as solved.
Mayur Panchal
18-May-13 2:58am
View
You mean previous twenty months? Right?
Mayur Panchal
18-May-13 2:52am
View
Do you want any specific range or only current year and month.
Mayur Panchal
17-May-13 7:47am
View
Can't you start maximized?
Set the System.Windows.Forms.Form.WindowState property to FormWindowState.Maximized
Mayur Panchal
17-May-13 6:15am
View
I have tested what u want to do with some sample data :
dtCombo.Columns.Add("DoseDesc");
dtCombo.Columns.Add("DoseId");
dtCombo.Rows.Add(new object[] { "Dose1", 1 });
dtCombo.Rows.Add(new object[] { "Dose2", 2 });
dtCombo.Rows.Add(new object[] { "Dose3", 3 });
dtCombo.Rows.Add(new object[] { "Dose4", 4 });
doseid.DataSource = dtCombo;
doseid.DataPropertyName = "Doseid";
doseid.DisplayMember = "DoseDesc";
doseid.ValueMember = "DoseId";
dt.Columns.Add("doseqty");
dt.Columns.Add("doseid");
dt.Columns.Add("timesqty");
dt.Columns.Add("timesid");
dt.Rows.Add(new object[] { 500, 1, 3, 1 });
dt.Rows.Add(new object[] { 100, 2, 3, 1 });
dt.Rows.Add(new object[] { 500, 3, 3, 1 });
dt.Rows.Add(new object[] { 300, 4, 3, 1 });
dataGridView1.DataSource = dt;
and its working nice..I can see display member (Dose1 ,Dose2...)
Is anuthing different than let me know..
Mayur Panchal
17-May-13 6:05am
View
I think u should handle OnPreviewKeydown event to catch 'Enter' key in user control and write your stuff there.
Mayur Panchal
17-May-13 4:14am
View
I have implemented above code..for the xml you have given.
I works fine with it. Please test it with other XMLs alos.
If u face any problems then let me know.
Mayur Panchal
17-May-13 3:10am
View
Is it winForms application or web(ASP.net) ?
Mayur Panchal
17-May-13 3:02am
View
Please, Confirm you want only those tag which have 'name' and 'type' attributes and others will be ignored. ??
Mayur Panchal
17-May-13 2:56am
View
It is possible but, there should be something fixed format, I mean to say root tag or the parent element of your start tag.
Let me explain : In above xml your first tag is 'rule' then 'interface', and you want to start with 'fixParam' tag. So the path would be fixed from where you want start or which will be your first element.
Mayur Panchal
17-May-13 2:45am
View
XmlNodeList titleList = rssDoc.GetElementsByTagName("name");
XmlNodeList urlList = rssDoc.GetElementsByTagName("type");
Above two lines are wrong. Because there is no tag with "name" and "type" name, those are attributes of tags.
We can see tag names are "fixParam", "chgParam" etc..
Let us know that which tags you need as output?
Mayur Panchal
17-May-13 2:20am
View
Your dataset is blank or there is a table with no row ?
Mayur Panchal
17-May-13 2:04am
View
Fist of all execute your exact query with where condition against your database in sql query editor and see whether it returns any result or not ?
Mayur Panchal
16-May-13 9:02am
View
I think, You can use ViewState.
Mayur Panchal
16-May-13 7:04am
View
Yes, you need to debug the code. Find what the actual query is executed and try that query to execute in SQL query editor then you will find what the actual problem is.
Mayur Panchal
16-May-13 6:48am
View
You can try this:
System.IO.Path.GetFileName(SaveFileDialog1.FileName);
System.IO.Path.GetFileNameWithoutExtension(SaveFileDialog1.FileName);
Mayur Panchal
16-May-13 6:44am
View
with extention or without ??
Mayur Panchal
8-May-13 6:28am
View
Do you want to convert it into c#?
Mayur Panchal
8-May-13 6:23am
View
Can you show a bit of code of OnSizeChange() event ?
Are you using form.Refresh() method in above event ?
Mayur Panchal
7-May-13 7:29am
View
Do you want result for only one class?
Mayur Panchal
17-Apr-13 5:47am
View
Is it windows(desktop) application ?
Mayur Panchal
17-Apr-13 3:15am
View
Thanks but that's not what i want to do. I have already done that you've reffred. Actually i want to draw extra image over ListViewItem image.
Mayur Panchal
11-Oct-12 9:27am
View
Thanks for the solution..
It works great..
I must appreciate this.
Thanks again.
Show More