16,004,678 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 .NET 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 Member 11543226 (Top 148 by date)
Member 11543226
15-Feb-18 4:33am
View
As per my requirement it should be any software or android app independent
Member 11543226
14-Feb-18 4:59am
View
how is it depend on mobile device?
I found an article in which Cisco company router provides this type of feature to open url automatically but can't get specific router model
Member 11543226
15-Dec-17 23:22pm
View
I tried uploading file with name 1.csv but this is not present on server folder so got error 550 file not found
Member 11543226
9-Sep-17 0:07am
View
suggest good android forum then.
Member 11543226
2-Aug-17 8:47am
View
This API is developed by our client they have own server,
should i required to connect to their server to call this API.
Member 11543226
19-Jul-17 5:53am
View
[Table$$Corporate_Name$$, System.Collections.Generic.List`1[System.String]]
same data with addition "System.Collections.Generic.List`1[System.String]]"
Member 11543226
19-Jul-17 3:22am
View
NOT WORKING
Member 11543226
19-Jul-17 2:41am
View
adding previous code pls have look
Member 11543226
19-Jul-17 2:39am
View
yes
Member 11543226
2-Jun-17 3:16am
View
Thanks
Member 11543226
2-Jun-17 3:07am
View
I checked and add indexed field in where clause ,now this solved my problem.
Member 11543226
17-May-17 5:50am
View
EAN_code = 4005808516469
BARCODE = XJ0883326
Member 11543226
25-Feb-17 0:44am
View
i tried your 2nd option and it worked bcz last string is empty when i replace "\r\n" with "," i am getting actually 0-2,31,198 numbers and last 2 string empty hence i got error . thanks
Member 11543226
25-Feb-17 0:20am
View
Deleted
it contains numbers like "9995398100 , 999539815 , 9995398800" and i make sum of it in summation method.
Member 11543226
25-Feb-17 0:19am
View
Deleted
it contains numbers like "9995398100 , 999539815 , 9995398800" and i make sum of it in summation method.
Member 11543226
3-Feb-17 7:34am
View
Thanks.
Member 11543226
3-Feb-17 7:34am
View
Thanks sir, it is very easy to create and use but can I call it from my application?
Member 11543226
24-Jan-17 6:58am
View
Yes, my software copy is licensed and do i need to remove old version and then update new or just update and install.
Member 11543226
22-Dec-16 4:05am
View
that is the typing mistake there, but it does not solve my eproblem
Member 11543226
3-Dec-16 1:57am
View
I have full access to write anything into "Company name" folder of this path ("C:\Program Files\Company name\InventorySetup").
Member 11543226
16-Nov-16 0:36am
View
Thanks this works
Member 11543226
19-Oct-16 7:21am
View
how to add data into buffer?
Member 11543226
20-Sep-16 5:06am
View
that properties i already got in my code above. but is there any way to get that name.
Member 11543226
25-Feb-16 0:43am
View
I have tried by putting breaks it founds aqua color of expected row but not showing . and one thing i noticed that "row.DefaultCellStyle.BackColor" this line couldnt works in another method other than dgv events hence i change color in timer cell by cell . but if i do coloring row cell by cell in dgv event gives wrong result.
Member 11543226
27-Jan-16 2:15am
View
Get this working by calling tick event just after starting of timer in form_load
Member 11543226
27-Jan-16 0:11am
View
I explain you in details,
i used system.windows.forms.timer ,
"OUTPROCESS" is hard coded becoz this application is server and when server receives this string from client the flag is set to 1 and need to change label text.
i need blinking label to get user attention becoz if client is busy in doing some task
user(server) is not allowed to send data. thats why i did this type of coding becoz this exactly is my requirement
Member 11543226
23-Jan-16 2:10am
View
it not gives any error now but not showing result
Member 11543226
23-Jan-16 2:10am
View
i did this before but not getting result. error is at between clause, if i removed between clause it shows result but with this condition it doesn't shows result.
Member 11543226
21-Jan-16 7:21am
View
thanks
Member 11543226
21-Jan-16 6:57am
View
ok will search for parameterised queries, thanks
Member 11543226
20-Jan-16 6:02am
View
we have same database and i also change connection string which is used on my sql server, then is there a possibility that works well?? By changing only connection string is it accessible to there server??
Member 11543226
9-Dec-15 3:04am
View
the bold line in dgv event see my edited answer. actually the "clienSocket" object of tcp client gets null value when if outside getdata.
Member 11543226
8-Dec-15 5:05am
View
i found solution to this problem by following line,
data = dataGridView1.Rows[index].Cells[1].Value.ToString();
But,
"if (Convert.ToBoolean(row.Cells[SerialNo.Name].Value) == true)" this condition false for thirst check after that it gives proper values , whts wrong with this code?
Member 11543226
8-Dec-15 4:04am
View
for all rows checkboxex when i check any box at that time in cellClick event it gets null value (i.e no box checked), and then i checkd another box in cellclick event it gets previously checked box rows's value.
Member 11543226
7-Dec-15 1:57am
View
Got the answer by adding line
int index = this.dataGridView1.Rows.Add();
for (int i = 0; i < table.Rows.Count - 1; i++)
{
for (int j = 0; j < table.Columns.Count - 1; j++)
{
dataGridView1.Rows[index].Cells[0].Value = null;
dataGridView1.Rows[index].Cells[1].Value = no;
dataGridView1.Rows[index].Cells[2].Value = date;
dataGridView1.Rows[index].Cells[3].Value = frm;
dataGridView1.Rows[index].Cells[4].Value = to;
dataGridView1.Rows[index].Cells[5].Value = status;
dataGridView1.Rows[index].Cells[6].Value = emergency;
dataGridView1.Rows[index].Cells[7].Value = "Send";
}
}
Member 11543226
7-Dec-15 0:54am
View
I am adding first coloum as dgvchekbox and last as dgvbutton and between these binding data from table . so found this only one way to bind data.
Member 11543226
5-Dec-15 7:20am
View
cell 0 is checkbox cell i cant add any data into that so i started inserting data from cell 1 but first row inserted perfectly that i want but from 2nd row it does not inserting data.
Member 11543226
20-Nov-15 1:25am
View
i am using winapp so is there any solution to disable postback.
Member 11543226
16-Nov-15 2:32am
View
can you give me any example regarding this
Member 11543226
16-Nov-15 1:33am
View
yes Can you tell me why this happends?
Member 11543226
16-Nov-15 1:28am
View
i tried this before but when control is in button click event it gets true value but when control outs from event it again gets false value so my case if statement always gets false.
Member 11543226
12-Nov-15 5:20am
View
winform application
Member 11543226
6-Nov-15 6:09am
View
now something weird happen again when i apply break points it executes perfectly but if debug without breakpoints it does not executes
Member 11543226
6-Nov-15 5:31am
View
It fires at second execution also. but my string line [] not clears
Member 11543226
6-Nov-15 5:22am
View
yes OnChange event never fires till application restarted. Break not hits.
Member 11543226
6-Nov-15 4:45am
View
This works , but when file update again after few time it should again fire event. but it doesnt fires
Member 11543226
5-Nov-15 6:38am
View
Thanks works.
Member 11543226
5-Nov-15 6:38am
View
Thanks works.
Member 11543226
31-Oct-15 3:34am
View
No errors in procedures when i execute it from managment studio it executes without errors but from program it not added to database->programmability->stored procedure
Member 11543226
31-Oct-15 2:56am
View
I remove go and all now program run succsessfully but procedures not added to database
Member 11543226
30-Oct-15 7:15am
View
it works for some procedures but shows error for some "incorrect syntax near GO" , but all procedures does fine job.
Member 11543226
21-Oct-15 5:20am
View
I cannot add table to database because its others database i dont have write to access modify or add table to it
Member 11543226
21-Oct-15 4:35am
View
so tell me the way which mechanism you are talking about i need to get this mechanism.
Member 11543226
20-Oct-15 8:02am
View
should I edit this file to simplest one?
Member 11543226
17-Oct-15 5:58am
View
the task which is done in datagridview1_RowLeave ,i want to do all this below in button click event. get all text field values at button click event and send it to database
Member 11543226
15-Oct-15 2:15am
View
thanks .
Member 11543226
15-Oct-15 2:15am
View
did the same found answer as well.
Member 11543226
15-Oct-15 1:01am
View
these events doesnt find in c# windows form application ? any replacements to this event
Member 11543226
15-Oct-15 0:55am
View
it is windows form application
Member 11543226
13-Oct-15 2:58am
View
thanks for help
Member 11543226
13-Oct-15 2:58am
View
I found answer by using decimal class . as
decimal due = (decimal)Math.Round(Convert.ToDecimal(totq), 4);
totq = due.ToString("0.000");
Member 11543226
13-Oct-15 1:45am
View
the value is unknown to me its comes out from database it should be atleast four digit ,
is their any regex expression for this .
Member 11543226
1-Oct-15 2:52am
View
Thanks for help , got solution
Member 11543226
1-Oct-15 2:52am
View
Actually the supplied value is not set in name object because combobox doesnt supply value with selectedText property when i used "selected value" property it gets proper values.
Member 11543226
25-Sep-15 1:47am
View
Thanks sir, I am going to use readline method now and it works nice.
Member 11543226
25-Sep-15 0:58am
View
error occured at line " NewSerialDataRecieved(this, new SerialDataEventArgs(receivedData));" that it only accept byte array at the place of received data.
Member 11543226
24-Sep-15 8:09am
View
I am new to c# , i dont know how to store bytes in array ,Can you give me example or any link which describes this process ??
Member 11543226
24-Sep-15 7:50am
View
This exactly i want to do can you tell me proper way of checking bytes and store data in buffer
Member 11543226
24-Sep-15 6:43am
View
that's exactly i want to know how to gather all byte?, because i tried all read methods but not working
Member 11543226
21-Sep-15 2:23am
View
port.DataReceived does not fires hence i concluded that port doesnt get response that he has to send something to requested party.
Member 11543226
27-Aug-15 5:13am
View
I displayed date in exact format as saved in database I cannot convert it in any custom string format
Member 11543226
27-Aug-15 4:38am
View
I also changed my system date format to mm/dd/yyyy but still it gives same error
Member 11543226
20-Aug-15 6:22am
View
Yes, I did exactly same but execute cmd in adapter and put it in table . But both ways Works well. Thanks.
Member 11543226
19-Aug-15 6:17am
View
Deleted
Got error. and solved too but now it gives violation error and I have to solve it own.
Member 11543226
5-Aug-15 7:07am
View
I already did that but it wont work on service based database
Member 11543226
5-Aug-15 3:38am
View
In visual studio there are two types of database local and service based(.mdf) I want to copy database tables to this .mdf file
Member 11543226
1-Aug-15 2:26am
View
how to initialise multiple client variables
Member 11543226
30-Jul-15 7:38am
View
Now i did the following can it sense something regarding to my problem?
public void SpecifiedIP(string input)
{
var host = Dns.GetHostEntry(Dns.GetHostName());
// IPAddress address = IPAddress.Parse("192.168.1.6");
if(host.HostName == "My-PC")
{
MessageBox.Show(input);
}
}
I think dnshostentry will get all clients identification(host names) and I sort one client by his hostname. Now it is working.
Member 11543226
30-Jul-15 6:47am
View
I checked it with following code.
TcpClient cln = new TcpClient("192.168.1.6",Convert.ToInt32(txtport.Text));
if (cln.Connected == true)
{
// SendKeys.SendWait(input);
MessageBox.Show(input);
}
It is worked but client is started at every request. How can i identify with ipadress. that this ipadress is connected or not
Member 11543226
30-Jul-15 5:52am
View
I used tcpClient method here because multiple clients connected to server
Member 11543226
30-Jul-15 5:34am
View
Is there any way to know client is connected or not by providing ip .
just sample without logic,
string ip = "192.168.1.7";
if (ip.connected == true)
{send data};
Member 11543226
30-Jul-15 5:23am
View
How can i put condition if the ip(192.168.0.3) connected to server then send string .
Member 11543226
30-Jul-15 4:59am
View
server getting data from one client and again server will decide where to send this data. not a client .
Member 11543226
30-Jul-15 3:11am
View
Actually device is first client in my case it cannot tells server to send this to client2 . only server have to send data which is in string format to client2 ip.
Member 11543226
30-Jul-15 2:04am
View
That exactly what i mean to say how server will identify that this message for which client amongst all connected clients. how to put that condition by specifying ip. i.e. I want to write code lines which says "if the client (ip spec) is connected then send data"
Member 11543226
29-Jul-15 7:59am
View
Can you give me some links or whatever regarding to that, now i code for server and its working fine also. but at other end it can not connected to other server
Member 11543226
29-Jul-15 2:20am
View
res is not null here i checked it res.startswith also works . i edit some code please check in question.
Member 11543226
28-Jul-15 3:07am
View
Can You give some example or any link regarding to this ? Actually not restricted to notepad I need to use any editor where the cursor placed in editor it should write text.
Member 11543226
28-Jul-15 2:58am
View
yeah ! now it worked, thanks. Any idea for reloading notepad or word document . so that no need to opening and closing file for checking data i.e keystroke concept for all editors notepad /outlook/word etc. Thanks.
Member 11543226
28-Jul-15 2:39am
View
How to write contends of overlod method streamwriter.
Member 11543226
28-Jul-15 2:36am
View
this is Not worked , reload not done in notepad and data is still ovveride in same 1st line.
Member 11543226
26-Jul-15 4:35am
View
now I modified some code , I created one class Globalvariable. and modified code like above. see edited question.
Member 11543226
26-Jul-15 2:40am
View
I run this code and textbox doesnt shows any data when AppendTxtdata method runs from handleClient class as it is created on Form1 . No error showing while running only this exception is shown.
Member 11543226
26-Jul-15 2:24am
View
I added my full code in question please go through it once.
Member 11543226
20-Jul-15 1:01am
View
Deleted
I added some code , please do have look.
Member 11543226
18-Jul-15 4:49am
View
Deleted
It says this form is busy to execute thread , then how to solve this error i cant found way.
Member 11543226
18-Jul-15 4:25am
View
Deleted
I searched over google for that but many questions I found are about ms-office so I cant understand solutions properly.
Member 11543226
18-Jul-15 4:19am
View
Deleted
I also got exception like "the message filters indicate that the application is busy". what to do for that.
Member 11543226
9-Jul-15 7:29am
View
I said the error is in the line "txtdata.Text += myval". myval getting but txtdata shows null.
Member 11543226
9-Jul-15 6:40am
View
see my edited question
Member 11543226
18-Jun-15 5:11am
View
Now this all running but server accepts data for one time from client , however the same program accept data for multiple times in console app.
Member 11543226
5-Jun-15 1:28am
View
I checked all values binding but in dgv one column values not showing of "BED NO".
Member 11543226
3-Jun-15 1:42am
View
Not working sir, wardname gets one value and checked in cases but but if in case matches the values it does not creates file. switch case doesn't work
Member 11543226
3-Jun-15 1:39am
View
Deleted
Not working sir, wardname gets one value and checked in cases but but if in case matches the values it does not creates file.
Member 11543226
27-May-15 7:35am
View
ohh I am sorry I think You asked me that question that what i tried for this question , now I understand it is a link! i will read . Thanks. I googled about this topic but not found interesting ansewers to help.
Member 11543226
27-May-15 7:26am
View
I just know import export process I worked on that but with use of database but now no storage is here so i am confused how to do i.
Member 11543226
27-May-15 6:56am
View
It just create simple setup file which files need to add in this ? I added exe file of my project. but not worked.
Member 11543226
26-May-15 5:26am
View
Sorry sir for making my question complicated to understand. but one of my colleague works with device and provide me connection and did all these stuffs in embedded programming I made tcp client for communicating with this telnet server but wont work, so I cant understand all this. Just have to do it by own assumption and learning.
Member 11543226
19-May-15 5:05am
View
I made client but it does not interact with server properly
Member 11543226
19-May-15 2:42am
View
Thank you sir for fast reply. But one from my colleague already made telnet server by embedded programming and my machine successfully connect with his server but as my app works on cmd.exe i want to execute it after connected on his server. Because when he scans barcode the number appears on server window i want to capture this in my program and show output on that server window.
Member 11543226
19-May-15 1:10am
View
when device scans barocde of any product ,on telnet server window i.e (telnet 192.168.x.x 23) barcode number appears like XE0318992 and i have to capture this string and show details of product related to this barcode on the same server window. this console app exactly do this task but now i manually passing barcode number because now i am able to run this app on visual studio command prompt and cmd.exe but when i get barcode number after scanning device i have to receive it from telnet server window . so i want the way how to capture barcode number in this program from telnet window and show output on same.
Member 11543226
18-May-15 8:00am
View
I have added code of what I want to run . I manually enter code and then all three methods run and shows output without pressing enter. currently when I press enter button all methods run . but this program is running on server automatically later on so I want method which press actual enter button.
Member 11543226
18-May-15 7:31am
View
Thats exactly I want Sir, how to write code for enter method.
Member 11543226
18-May-15 6:55am
View
sorry im new to this site . what can i do now it is not worked yet. I tried many examples.
Member 11543226
18-May-15 6:46am
View
I didnt get your point sir?
Member 11543226
18-May-15 6:22am
View
But in OnTimedEvent I have to press enter so that all Application does its task. I want Exactly the same way.
Member 11543226
18-May-15 1:34am
View
i used this lines of code it works also but when i call method containing these lines it opens cmd windows multiple run continuously and not stops , why this happened?
Member 11543226
16-May-15 7:49am
View
want to run my console application project on windows cmd.exe because from there i got string and i have to use this string for further process.
Member 11543226
15-May-15 2:24am
View
1 more question sir. i want to override the file for every input how to do it?
Member 11543226
15-May-15 2:21am
View
Thanks it worked greatly.
Member 11543226
15-May-15 2:10am
View
Deleted
what are the lines to print ? i thought writeLine do this.
Member 11543226
13-May-15 0:59am
View
yes im talking about java project
Member 11543226
12-May-15 4:22am
View
No sir, dont take it wrong, i just want to ask you is it necessary to run server and client program in different machines for testing.
Member 11543226
12-May-15 3:53am
View
it is necessary to run client and server code in different machines
Member 11543226
12-May-15 3:27am
View
is it working or not? i want to use this for my product barcode scanner which has ipaddress.
Member 11543226
4-May-15 3:39am
View
Deleted
I think you didnt got my question , your link not suggests me correct way. i have many csv files and each file contains one record only i.e. 1 csv file have 1 patient record. and i need to export it as it is without specifying its regno in query.
Member 11543226
3-May-15 7:07am
View
i found the answer sir it just a simple way, to check is datatable populated or not , and placed for loop in if condition.
thanks alot sir for quick replies.
Member 11543226
3-May-15 7:01am
View
ya i when i put breakpoint on that line it doesnt gives error but not given output too,
and run the app in debugger means simple debug program or anything else.
Member 11543226
3-May-15 6:45am
View
how to use debugger to find out problem i am very new to .net.
Member 11543226
3-May-15 6:27am
View
YES i know the problem is in this line but if i remove this loop and add all columns mannualy it again gives same error.
Member 11543226
2-May-15 6:40am
View
BUT I have sql server 2008 r2 installed successfully
Member 11543226
23-Apr-15 7:31am
View
Deleted
no i want to just avoid comma and take string as it is
Member 11543226
23-Apr-15 6:54am
View
it works thanks. but the original problem is different.
Member 11543226
23-Apr-15 6:00am
View
i found the original problem this string is enclosed in double quotes and contain 1 quamma also. thats the issue plz give me sugessiton to solve it.
Member 11543226
23-Apr-15 3:23am
View
can sql_variant able to store above string? i tried with varchar(max) and nvarchar(max) both faild.
Member 11543226
22-Apr-15 8:18am
View
I solved my issue by using varchar(max) datatype. thanks Richard Sir.
Member 11543226
22-Apr-15 2:00am
View
yes this is given to me by hospital databse.
Member 11543226
22-Apr-15 1:17am
View
sir give me link for the article i could not found it.
Member 11543226
21-Apr-15 5:51am
View
sir is it possible to use sql for this task?
Member 11543226
17-Apr-15 5:56am
View
yes i create data table as per these file headers and this is in proper format
Member 11543226
15-Apr-15 5:36am
View
is this code running in simple winform , i tried alot but no result found
Member 11543226
15-Apr-15 1:01am
View
i have that code sir i used local database in my project becouse i dont have sql connection thats not have id nd passwaord bt the client give me their id nd passward bt till i created setup file of project so how can i change connection string to there connection string which contains their id nd passward
Member 11543226
14-Apr-15 3:32am
View
thanks alot !! sir in No_of_medicin i want all data till temperature and is this code for Link to csv and how to save this data to table
Member 11543226
14-Apr-15 2:13am
View
Deleted
sir i want to do this for all fields. can i reapetadly write the var ids code for all fields.
Member 11543226
13-Apr-15 2:43am
View
Deleted
i have simple sql database in that Medicin is the table with simple structure like following:
id | Name | Age | Sex | Doctor | Mobile | Alignment | No of Medicin | Temperature
| | | | | | | |
and like other fields also. i have tried to save data datarow wise but not worked and i have to save all data from "no. of medicin" to "tempurature" in no. of medicine field in single line as it is with quammas.
im new to c# and its my 1st module so understand if u help me its easy for me to proceed further tasks
thnks!
Member 11543226
13-Apr-15 2:15am
View
Thanks @Maciej Los , may i know the saving procedure of result data in database table datatable name is "Medicin". i tried some code but did not worked.
Member 11543226
6-Apr-15 3:25am
View
I solved this by setting shortcut of my app to startup folder it is bit easy.
thanks for your help sir.
soonly come with new question.
Member 11543226
6-Apr-15 2:15am
View
But sir so how could i run form in background this form related to file import export kinda process for the device and i would have to run this application daily when system starts.
Show More