15,891,679 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 Anaya Upadhyay (Top 31 by date)
Anaya Upadhyay
18-Aug-14 1:24am
View
a datatable
Anaya Upadhyay
9-Oct-13 5:49am
View
100% sure
And i need to solve this within 12 hours. Please help.
As I said earlier, it runs well in localhost. But after hosting it on the Server the same line doesnot work.
Anaya Upadhyay
9-Oct-13 0:23am
View
i've tried this. But the issue is, the same code runs in localhost but not in server (i mean when it is online).
Anaya Upadhyay
8-Oct-13 7:03am
View
The error is on the line 1089 and the code goes like this:
1089: bool myValue;
1090: if(Boolean.TryParse(drow["IsTrue"].ToString(), out myValue))
1010: this.genderCheckBox.Checked = true;
1011: else
1012: this.genderCheckBox.Checked = false;
Anaya Upadhyay
8-Oct-13 6:23am
View
The error is on the line 1089 and the code goes like this:
1089: bool myValue;
1090: if(Boolean.TryParse(drow["IsTrue"].ToString(), out myValue))
1010: this.genderCheckBox.Checked = true;
1011: else
1012: this.genderCheckBox.Checked = false;
Anaya Upadhyay
24-May-13 4:37am
View
Thanks for the solution.
Anaya Upadhyay
24-May-13 3:51am
View
This is not what i meant, i want to split a single text block i.e. my name into two individual columns or rows.
Anaya Upadhyay
24-May-13 3:51am
View
i want to split my name in two columns or rows.
Anaya Upadhyay
24-May-13 3:50am
View
Deleted
This is not what i meant, i want to split a single text block i.e. my name into two individual columns or rows.
Anaya Upadhyay
14-Feb-13 0:40am
View
But i needed it that way... any help will be appreciated.
Anaya Upadhyay
22-Dec-12 22:51pm
View
Deleted
Ok i've shared the zip file to
Ge.tt
Anaya Upadhyay
21-Dec-12 6:13am
View
it would be possible, but will you tell me how to upload the snapshot
Anaya Upadhyay
21-Dec-12 6:12am
View
Thank you for your help.
The second one really did help.
Anaya Upadhyay
17-Dec-12 2:58am
View
Okay i agree to your answer, but it's for one use so i don't think this would be effective.
Please suggest any other ideas...
Anaya Upadhyay
16-Dec-12 4:32am
View
I want an asterisk while typing in my Inputbox.
Is it clear enough?
Anaya Upadhyay
26-Nov-12 4:34am
View
I agree to your answer, but...
As we get the last modified date of a table, can't we get the last modified or inserted date of a row??
I need to know the actual inserted/updated date of a row while selecting the table. Help.
Anaya Upadhyay
11-Oct-12 6:06am
View
I was not talking about the interface but the work need to be different.
Anaya Upadhyay
11-Oct-12 5:52am
View
Thanks for the help, it seems I'm now able to use a single form to create another form, but how to implement the work of a single form for two different things. How to structure the code or how to call a single form from two different menus to perform two different things.
Anaya Upadhyay
11-Oct-12 5:47am
View
you kinda sound funny... I was not asking for a super program or anything that can go beyond virus. But, i was not able to trace the problem : what happens if a virus attacks and an executable file (EXE) cannot execute.
I'll tell you what measures I took:
1. My application was running smoothly.
2. The virus attacked.
3. I couldn't run the application, so i unzipped the executable file and replaced it with the older one.
4. I still was unable to run the application.
I'm not getting, why can't I take some measures in preventing virus from affecting my system (even a little virus harms).
Please do understand. I cannot make my users understand coz they are not too techy... So a solution might be of great help.
Anaya Upadhyay
11-Oct-12 5:42am
View
What may be the loop holes and what are the resources you are talking about? Please brief.
Anaya Upadhyay
11-Oct-12 2:20am
View
I might clean my computer or I might take the backup. But i don't need a reinstall, instead i need my application to be out of virus as native windows programs at some point. How to achieve this?
We don't know when a virus attacks or so, and many of the users install the trial version of antivirus or the antivirus is expired after some days. My app works a few minutes ago and then refuse to open itself?
How to stop that stopping?
Anaya Upadhyay
11-Oct-12 2:16am
View
If you say so, i need to ask you a question. What if my application is installed first and then the virus attack?
My application does not even run if it so, but native windows programs or ms-office runs smoothly, so why not my application. Isn't there a way to avoid virus from attacking my application's exe?
Anaya Upadhyay
11-Oct-12 0:56am
View
I did not ask for permission, i really seek help. :)
Anaya Upadhyay
11-Oct-12 0:50am
View
This might be the solution then -
Dim mySelectFormula As String = "{Customer.Last Year's Sales} > " & lastYearsSales.Text & " AND Mid({Customer.Customer Name}, 1) > """ & customerName.Text & """"
OR,
Dim mySelectFormula As String = "{Customer.Last Year's Sales} > 11000.00 " & "AND Mid({Customer.Customer Name}, 1, 1) = ""A"" "
For detail visit:
this link
.
Anaya Upadhyay
11-Oct-12 0:43am
View
I needed the form in GUI not from the classes. I was clearing my ideas illustrating classes.
For example: Firstly, A form containing two textboxes for entering name and address.
Second, I need a similar form containing two textboxes and a grid (not in the previous one) but i want to use the same form.
is it possible to implement?
Anaya Upadhyay
11-Oct-12 0:30am
View
The above link lead to the SSRS but for Visual Web Developer Express 2008, but i want the solution for VB.NET Professional Edition (VS 2008).
Anaya Upadhyay
10-Oct-12 6:12am
View
Deleted
If the formula is in Formula Editor of Crystal report then
I got this sort of problem myself a few months ago.
I did it like this:
{Customer.LastYearSales} > ToText("11000") AND MID({Customer.CustomerName},1,1) = ToText("A")
Anaya Upadhyay
10-Oct-12 5:51am
View
An error occurred when i put the data loading code, and it says Timeout Expired. So, the problem is still a problem.
Anaya Upadhyay
9-Oct-12 7:12am
View
Sorry, my mistake, i slightly overused a variable. I got the output correct. Thank you for your help... :)
Anaya Upadhyay
9-Oct-12 6:59am
View
Deleted
I tried this:
Private Sub marksDataGridView_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles marksDataGridView.Paint
Dim FeeTitles(subjectCount - 1) As String 'Initializes variables to the number of subject
Dim i As Integer = 0
Dim j As Integer = 4
Dim indexNo As Integer = 0
Dim r1, w2 As Rectangle
Dim format As New StringFormat()
Try
'Getting FeeTitles
myQuery = "SELECT sh.subId, sh.subject "
myQuery += "FROM sub_head sh LEFT JOIN sub_group sg ON sg.subId = sh.subId "
myQuery += " LEFT JOIN groups g ON g.gcode = sg.gcode "
myQuery += "WHERE g.gcode = " & Me.groupComboBox.SelectedValue & " "
myQuery += "ORDER BY sh.subId"
meroDt = SchoolDB.GetDataTable(myQuery)
If Not meroDt Is Nothing Then
If meroDt.Rows.Count > 0 Then
For Each rowSubject As DataRow In meroDt.Rows
FeeTitles(i) = rowSubject.Item("subject")
i += 1
Next
End If
End If
Dim columCount As Integer = 0
For index As Integer = 4 To GetHeaderNumber("Total") - 1
columCount += 1
Next
While j < GetHeaderNumber("Total") - 1
r1 = Me.marksDataGridView.GetCellDisplayRectangle(j, -1, True)
subjectId = Me.marksDataGridView.Columns(j).Name
If subjectId.Contains("T") Or subjectId.Contains("P") Then
w2 = Me.marksDataGridView.GetCellDisplayRectangle(j + 1, -1, True)
Else
w2 = Me.marksDataGridView.GetCellDisplayRectangle(j, -1, True)
End If
r1.X += 1
r1.Y += 1
r1.Width = r1.Width + w2.Width - 2
r1.Height = r1.Height / 2 - 2
e.Graphics.FillRectangle(New SolidBrush(Me.marksDataGridView.ColumnHeadersDefaultCellStyle.BackColor), r1)
format.Alignment = StringAlignment.Center
format.LineAlignment = StringAlignment.Center
If subjectId.Contains("T") Or subjectId.Contains("P") Then
indexNo = Math.Floor(j / 2)
e.Graphics.DrawString(FeeTitles(indexNo), Me.marksDataGridView.ColumnHeadersDefaultCellStyle.Font, New SolidBrush(Me.marksDataGridView.RowHeadersDefaultCellStyle.ForeColor), r1, format)
j += 2
Else
j += 1
End If
End While
Catch ex As Exception
End Try
End Sub
The output doesn't seem what I expected...
will you correct me where am i lacking?
The subjects are serially as follows: English, Math, Health/G.K., Moral/G.K.
English is not showing, Math is at the correct place whereas, other two subjects shifted their place.
Anaya Upadhyay
8-Oct-12 7:41am
View
I was asking for datagridviewcolumn header merging not the cells.....
Help...
Show More