15,906,816 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 Saumyavemula (Top 55 by date)
Saumyavemula
15-May-12 3:22am
View
@OriginalGriff: Can you please help me with what has to be done, I didn't got you as you said press '+' symbol beside the name "values" in the debugger
I tried this but i think i am wrong somewhere
Saumyavemula
14-May-12 6:53am
View
the entire row which is in csv file (i.e. col1,col2,col3,col4) is loaded in 'line' and in 'values' value is 'string[9]' but i want as 'col1'
Saumyavemula
14-May-12 6:41am
View
The problem is I am getting the value of firstlistA as 'String[9]' but I want the value which is in my CSV file
Saumyavemula
14-May-12 6:37am
View
Hey with this I am getting the value of firstlistA as 'String[9]' but I want the value which is in my CSV file
Saumyavemula
27-Apr-12 2:55am
View
Hiii this article is awesome but for mobile application its not working because the AutocompleteMode propertie for textbox is not available....
Can we do Autocompleted textbox for Mobile applications??
Saumyavemula
20-Jan-12 4:48am
View
CreatedOn column is text and Trainingexp is datetime
Saumyavemula
20-Jan-12 4:47am
View
i am using access database, both columns datatype is datetime
Saumyavemula
20-Jan-12 4:47am
View
i am using access database
Saumyavemula
20-Jan-12 4:37am
View
wrote this query but asking for parameter
Update Master set TrainingExp = dateadd("yyyy",1,[CreatedOn])
please help.....
Saumyavemula
20-Jan-12 4:35am
View
did the same but is asking for parameter to pass, whereas i need to change the whole column
Saumyavemula
20-Jan-12 2:57am
View
Values are already inserted into table, i just need to update the column
Saumyavemula
27-Dec-11 3:58am
View
What is this??
Can you guide me on How to check?
Saumyavemula
27-Dec-11 3:39am
View
Hi,
My prn file will include the data which i select in the form and it is generated when the print button is clicked.
I tried both the ways
1. Package including prn file and
2. Package not including prn file
But the error is same "Access to the path C:\Application.Startup\label.prn is denied"
can you help me in more detail because i am new to this prn setup file.
Saumyavemula
27-Dec-11 1:52am
View
Error is coming as NullReferenceException
Saumyavemula
27-Dec-11 1:01am
View
Can you help me with VB.net
Saumyavemula
26-Aug-11 6:26am
View
please help how can i change the datarow
Saumyavemula
26-Aug-11 6:13am
View
when i am writing
mWriteData = "" & dr(0) & "," & dr(1) & "," & Now & ""
sr.WriteLine(mWriteData)
then only last record of datagrid is entered in CSV file.
How can i get all the records from datagrid??
Saumyavemula
26-Aug-11 6:02am
View
it is not a class, it is a datarow
Saumyavemula
26-Aug-11 6:01am
View
dr is the datarow
Saumyavemula
26-Aug-11 4:14am
View
I know I am not removing any row from loop because I am not able to code it.
Can you help me with the code?
Saumyavemula
26-Aug-11 3:30am
View
Do you know who to use the loop to get all records from datagrid to csv file
Saumyavemula
26-Aug-11 3:10am
View
I didn't get what you said?
Can you help me for setting the width of datacolumn...
Saumyavemula
26-Aug-11 2:37am
View
Its not helpful, i tried all this........
I am using datagrid not datagridview
Saumyavemula
1-Jun-11 7:59am
View
Can you help me how to do because i am new to access db.
Saumyavemula
25-May-11 1:54am
View
Hi,
I wrote the code System.Diagnostics.Process.GetCurrentProcess.Kill(), but i am getting an error "The remote connection to the device is lost, Please connect the device" whereas my connection to the device is alright.
Saumyavemula
24-May-11 2:11am
View
When my application is executed for 2nd time and closed that time it's showing an error of Memory full. What i should do??
Saumyavemula
24-May-11 2:10am
View
I am exiting application but when application is runned 2nd time and closed that time it is showing an error of Memory full. So i need to kill the application when clciked on exit.
Saumyavemula
23-May-11 7:38am
View
Thanks,
But not useful
Saumyavemula
23-May-11 7:24am
View
I mean i want to save my sdf file and exe at the same location
Saumyavemula
23-May-11 2:10am
View
Hi,
Even i tried this but its in vain, please find my completed code.
Public Function csvfile()
conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.AppDomain.CurrentDomain.BaseDirectory + "CI.mdb;Jet OLEDB:Database Password= 123456")
conn.Open()
Dim fromdate, todate As String
Dim Cand_name, dat1, Dateofintro, visatype, Step_1, Step_2, Step_3, Step_4, Step_5, Step_6, Step_7, Step_8, Step_9, Step_10, Step_11, Step_12, Step_13, Step_14, Step_15 As String
fromdate = DateTimePicker1.Value.Date
todate = DateTimePicker2.Value.Date
sqlcmd = "select * from CandidateMaster where DateOfIntro between " & fromdate.Substring(0, 10) & " and " & todate.Substring(0, 10) & ""
cmd = New OleDbCommand(sqlcmd, conn)
dr = cmd.ExecuteReader
sqlprocess = "select * from Process"
cmd = New OleDbCommand(sqlprocess, conn)
dtre = cmd.ExecuteReader
maxsrno = 1
createHfile = "CanadianImmgration_Report" & ".csv"
If File.Exists("C:\Users\Mil-Dev2\Desktop\" & createHfile) = False Then
Try
Dim SrHeader As StreamWriter = File.CreateText("C:\Users\Mil-Dev2\Desktop\" & createHfile)
mstrHeaderdata = "Srno,Candidate's Name,Date of Intro,VisaType,Mailed details with AF,Received AF and CV from Candidate,Forwarded AF to Canada,Received Retainer from Canada,Sent Retainer back to Canada,Received Invoice from Canada,Made 1st Payment to Canada,Received Receipt of 1st Payment,Received Contract Paper from Employer,Sent contract Paper back to Employer duly signed,Received LMO from Canada,Get sponsorship and statenomination,Made 2nd payment to Canada,Received Receipt of 2nd Payment,Candidate applied to Ambesy for visa"
SrHeader.WriteLine(mstrHeaderdata)
SrHeader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
ElseIf File.Exists("C:\Users\Mil-Dev2\Desktop\" & createHfile) = True Then
Try
Dim SrHeader As StreamWriter = File.CreateText("C:\Users\Mil-Dev2\Desktop\" & createHfile)
mstrHeaderdata = "Srno,Candidate's Name,Date of Intro,VisaType,Mailed details with AF,Received AF and CV from Candidate,Forwarded AF to Canada,Received Retainer from Canada,Sent Retainer back to Canada,Received Invoice from Canada,Made 1st Payment to Canada,Received Receipt of 1st Payment,Received Contract Paper from Employer,Sent contract Paper back to Employer duly signed,Received LMO from Canada,Get sponsorship and statenomination,Made 2nd payment to Canada,Received Receipt of 2nd Payment,Candidate applied to Ambesy for visa"
SrHeader.WriteLine(mstrHeaderdata)
SrHeader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
Try
Dim sr As StreamWriter = File.AppendText("C:\Users\Mil-Dev2\Desktop\" & createHfile)
Do While dr.Read = True And dtre.Read = True
Cand_name = dr("CandidateName").ToString
Dateofintro = dr("DateOfIntro").ToString
visatype = dr("VisaType").ToString
Step_1 = dtre("Step1").ToString
Step_2 = dtre("Step2").ToString
Step_3 = dtre("Step3").ToString
Step_4 = dtre("Step4").ToString
Step_5 = dtre("Step5").ToString
Step_6 = dtre("Step6").ToString
Step_7 = dtre("Step7").ToString
Step_8 = dtre("Step8").ToString
Step_9 = dtre("Step9").ToString
Step_10 = dtre("Step10").ToString
Step_11 = dtre("Step11").ToString
Step_12 = dtre("Step12").ToString
Step_13 = dtre("Step13").ToString
Step_14 = dtre("Step14").ToString
Step_15 = dtre("Step15").ToString
Saumyavemula
23-May-11 2:03am
View
Yes i have tried with date in quotes but its showing an error, if i dont add quotes then error is not coming but its showing blank output. Below is the complete code
Public Function csvfile()
conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.AppDomain.CurrentDomain.BaseDirectory + "CI.mdb;Jet OLEDB:Database Password= 123456")
conn.Open()
Dim fromdate, todate As String
Dim Cand_name, dat1, Dateofintro, visatype, Step_1, Step_2, Step_3, Step_4, Step_5, Step_6, Step_7, Step_8, Step_9, Step_10, Step_11, Step_12, Step_13, Step_14, Step_15 As String
fromdate = DateTimePicker1.Value.Date
todate = DateTimePicker2.Value.Date
sqlcmd = "select * from CandidateMaster where DateOfIntro between " & fromdate.Substring(0, 10) & " and " & todate.Substring(0, 10) & ""
cmd = New OleDbCommand(sqlcmd, conn)
dr = cmd.ExecuteReader
sqlprocess = "select * from Process where Process.CandidateID = CandidateMaster.CandidateID"
cmd = New OleDbCommand(sqlprocess, conn)
dtre = cmd.ExecuteReader
maxsrno = 1
createHfile = "CanadianImmgration_Report" & ".csv"
If File.Exists("C:\Users\Mil-Dev2\Desktop\" & createHfile) = False Then
Try
Dim SrHeader As StreamWriter = File.CreateText("C:\Users\Mil-Dev2\Desktop\" & createHfile)
mstrHeaderdata = "Srno,Candidate's Name,Date of Intro,VisaType,Mailed details with AF,Received AF and CV from Candidate,Forwarded AF to Canada,Received Retainer from Canada,Sent Retainer back to Canada,Received Invoice from Canada,Made 1st Payment to Canada,Received Receipt of 1st Payment,Received Contract Paper from Employer,Sent contract Paper back to Employer duly signed,Received LMO from Canada,Get sponsorship and statenomination,Made 2nd payment to Canada,Received Receipt of 2nd Payment,Candidate applied to Ambesy for visa"
SrHeader.WriteLine(mstrHeaderdata)
SrHeader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
ElseIf File.Exists("C:\Users\Mil-Dev2\Desktop\" & createHfile) = True Then
Try
Dim SrHeader As StreamWriter = File.CreateText("C:\Users\Mil-Dev2\Desktop\" & createHfile)
mstrHeaderdata = "Srno,Candidate's Name,Date of Intro,VisaType,Mailed details with AF,Received AF and CV from Candidate,Forwarded AF to Canada,Received Retainer from Canada,Sent Retainer back to Canada,Received Invoice from Canada,Made 1st Payment to Canada,Received Receipt of 1st Payment,Received Contract Paper from Employer,Sent contract Paper back to Employer duly signed,Received LMO from Canada,Get sponsorship and statenomination,Made 2nd payment to Canada,Received Receipt of 2nd Payment,Candidate applied to Ambesy for visa"
SrHeader.WriteLine(mstrHeaderdata)
SrHeader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
Try
Dim sr As StreamWriter = File.AppendText("C:\Users\Mil-Dev2\Desktop\" & createHfile)
Do While dr.Read = True And dtre.Read = True
Cand_name = dr("CandidateName").ToString
Dateofintro = dr("DateOfIntro").ToString
'Dateofintro = dat1.Substring(0, 10)
visatype = dr("VisaType").ToString
Step_1 = dtre("Step1").ToString
Step_2 = dtre("Step2").ToString
Step_3 = dtre("Step3").ToString
Step_4 = dtre("Step4").ToString
Step_5 = dtre("Step5").ToString
Step_6 = dtre("Step6").ToString
Step_7 = dtre("Step7").ToString
Step_8 = dtre("Step8").ToString
Step_9 = dtre("Step9").ToString
Step_10 = dtre("Step10").ToString
Step_11 = dtre("Step11").ToString
Saumyavemula
7-Apr-11 7:43am
View
I want to use files starting with "QPOI" and ending with ".CSV", there will be many files not only 1 file.
I tried using System.IO, but in vain.
Saumyavemula
29-Mar-11 8:25am
View
Yes i used Imports System.IO
Saumyavemula
29-Mar-11 6:38am
View
i am trying to write this but its showing an error without completing my sentence
Dim di As New DirectoryInfo("\Application\")
di.GetFiles("QPOI*.CSV", System.IO.)
Saumyavemula
29-Mar-11 6:31am
View
Instead of line
chcksite = "QPOI" & Login.ComboBox1.SelectedItem & ".CSV"
i want to select a file starting with QPOI and ending with .CSV
Saumyavemula
29-Mar-11 6:30am
View
chcksite = "QPOI" & Login.ComboBox1.SelectedItem & ".CSV"
If File.Exists("\Application\" & chcksite) Then
Dim fileRead As New System.IO.StreamReader("\Application\" & chcksite)
Try
headerline = fileRead.ReadLine()
Do
'comboitemcde.Text = ""
oneline = fileRead.ReadLine()
If oneline = "" Then
GoTo DisplayMsg
End If
i = InStr(1, oneline, ",", CompareMethod.Binary)
j = InStr(i + 1, oneline, ",", CompareMethod.Binary)
k = InStr(j + 1, oneline, ",", CompareMethod.Binary)
l = InStr(k + 1, oneline, ",", CompareMethod.Binary)
m = InStr(l + 1, oneline, ",", CompareMethod.Binary)
n = InStr(m + 1, oneline, ",", CompareMethod.Binary)
o = InStr(n + 1, oneline, ",", CompareMethod.Binary)
p = InStr(o + 1, oneline, ",", CompareMethod.Binary)
q = InStr(p + 1, oneline, ",", CompareMethod.Binary)
r = InStr(q + 1, oneline, ",", CompareMethod.Binary)
ponum = Mid(oneline, 1, i - 1)
itemcde = Mid(oneline, m + 1, (n - 1) - m)
txtpono.Text = ponum
itmdesc = Mid(oneline, p + 1, (q - 1) - p)
sitecode = Mid(oneline, i + 1, (j - 1) - i)
qty = Mid(oneline, q + 1, Len(r - q) - 1)
If ponum = txtpono.Text And itemcde = comboitemcde.Text Then
txtitmdesc.Text = itmdesc
txtqty.Text = qty
txtscanqty.Text = 0
txtbalqty.Text = qty
oneline = ""
End If
Loop Until oneline Is Nothing
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.OkOnly)
End Try
DisplayMsg:
fileRead.Close()
Else
MsgBox("Please check '" & chcksite & "' file.", MsgBoxStyle.OkCancel)
End If
Saumyavemula
29-Mar-11 6:16am
View
Using this is also not helpful and yes System.IO is referred
Saumyavemula
29-Mar-11 5:53am
View
SearchOption is not declared
Saumyavemula
29-Mar-11 5:43am
View
But SearchOption.AllDirectories is showing an error
Saumyavemula
29-Mar-11 1:29am
View
Hi,
I want to find QPOI*.CSV file in mobile device i.e path("\Application\") not in system.
Saumyavemula
3-Mar-11 2:22am
View
Hi,
What is the change you did??
Saumyavemula
3-Mar-11 2:19am
View
I know that I should use loop, but i dont know to write code for that.
Can you help me with code.
Thanks
Saumyavemula
1-Mar-11 2:52am
View
Hi,
This is appending text, i also need to insert text.
Saumyavemula
25-Feb-11 5:13am
View
Hey Sorry but I have not deleted my previous post, I dont know how it got deleted. I was not able to see the answer thats the reason again I posted the same question.
Can you help me here as I am not able to view my previous post's answer.
Thanks
Saumyavemula
24-Feb-11 2:28am
View
Hi,
Can you help me for Virtual Keyboard using Windows CE
I am not able to delete the next character in a textbox using this code.
Not only on delete button, I think I am coding Virtual Keyboard in a wrong manner......
Your help will be appreciated.
Saumyavemula
24-Feb-11 2:19am
View
Hi,
Can you help me for Virtual Keyboard using Windows CE
I am not able to delete the next character in a textbox.
Not only on delete button, I think I am coding Virtual Keyboard in a wrong manner......
Your help will be appreciated.
Saumyavemula
24-Feb-11 2:06am
View
I am using Windows CE, it is for WinCe??
Saumyavemula
24-Feb-11 1:44am
View
Hey can u please help me for virtual keyboard..........
I am having many doubts to ask........
Saumyavemula
24-Feb-11 1:16am
View
It is still giving the same error
Saumyavemula
23-Feb-11 6:42am
View
Yeah I am using Windows Ce
Saumyavemula
23-Feb-11 3:33am
View
I tried using that code but its showing an error as
"Cannot find PInvoke DLL 'user32'"
Saumyavemula
23-Feb-11 2:17am
View
Hi,
Thank you, it really works. Can you help me for coding on CAPS Lock button.
Thanks in advance
Saumyavemula
23-Feb-11 2:15am
View
Hi,
This is in C#, I need in VB.Net. Can you please help.
Thanks in advance.
Saumyavemula
22-Feb-11 4:26am
View
Hi,
Could you please give me the detail code, actual I have written a code on BACKSPACE button as below
Dim d As New Integer
If whichtxt Then
If TextBox1.Text.Length > 0 Then
d = TextBox1.Text.Length
TextBox1.Text = TextBox1.Text.Remove(d - 1, 1)
End If
But this code is incorrect
I want the code so that it should start delete from the cursor position.
Saumyavemula
21-Feb-11 5:48am
View
Hi,
Please find the code for some buttons
Private Sub TextBox1_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.GotFocus
Panel1.Hide()
Panel1.Show()
whichtxt = ""
whichtxt = "A"
End Sub
Private Sub TextBox2_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.GotFocus
Panel1.Hide()
Panel1.Show()
whichtxt = ""
whichtxt = "B"
End Sub
Private Sub Button37_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button37.Click
If whichtxt = "A" Then
TextBox1.Text = TextBox1.Text & 1
ElseIf whichtxt = "B" Then
TextBox2.Text = TextBox2.Text & 1
ElseIf whichtxt = "C" Then
TextBox3.Text = TextBox3.Text & 1
ElseIf whichtxt = "D" Then
TextBox4.Text = TextBox4.Text & 1
Else
TextBox5.Text = TextBox5.Text & 1
End If
End Sub
Private Sub TextBox3_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox3.GotFocus
Panel1.Hide()
Panel1.Show()
whichtxt = ""
whichtxt = "C"
End Sub
Private Sub TextBox4_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox4.GotFocus
Panel1.Hide()
Panel1.Show()
whichtxt = ""
whichtxt = "D"
End Sub
Private Sub TextBox5_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox5.GotFocus
Panel1.Hide()
Panel1.Show()
whichtxt = ""
whichtxt = "E"
End Sub
Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button19.Click
If whichtxt = "A" Then
TextBox1.Text = TextBox1.Text & "a"
ElseIf whichtxt = "B" Then
TextBox2.Text = TextBox2.Text & "a"
ElseIf whichtxt = "C" Then
TextBox3.Text = TextBox3.Text & "a"
ElseIf whichtxt = "D" Then
TextBox4.Text = TextBox4.Text & "a"
Else
TextBox5.Text = TextBox5.Text & "a"
End If
End Sub
Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click
If whichtxt = "A" Then
TextBox1.Text = TextBox1.Text & "s"
ElseIf whichtxt = "B" Then
TextBox2.Text = TextBox2.Text & "s"
ElseIf whichtxt = "C" Then
TextBox3.Text = TextBox3.Text & "s"
ElseIf whichtxt = "D" Then
TextBox4.Text = TextBox4.Text & "s"
Else
TextBox5.Text = TextBox5.Text & "s"
End If
End Sub
I tried using your code but its showing an error
"Cannot find PInvoke DLL 'user32'"
Show More