16,011,949 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 12659926 (Top 29 by date)
Member 12659926
20-May-21 7:38am
View
I am reading from richtextbox and copying it to array.the below line does that...
dat(i) = (RichTextBox1.Text(i) & RichTextBox1.Text(i + 1) &
RichTextBox1.Text(i + 2))
for example.: if data in richtextbox is abc1234de45678
i want as dat(0) = abc dat(1) = 123... etc
the above code which i am copying to array is time consuming.
so can u suggest any alternatives approach or any example the does the job with dat list
i dont have much idea about dat list
Member 12659926
20-May-21 7:22am
View
if u have any example code with dat list kindly share
Member 12659926
20-May-21 7:21am
View
thanks for reply...
the data which i have imported from txt file is not thrown away,it is required for further processing
the above code which i have done is working fine with less file sizes(<100KB),i want to know how i can optimize the above code so that it works for bigger files(>2MB).
or is their any other way that i can work on
Member 12659926
15-May-17 7:07am
View
Thanks a lot
Member 12659926
8-May-17 5:09am
View
Thanks a lot
Member 12659926
8-May-17 5:09am
View
Thanks a lot
Member 12659926
4-May-17 6:35am
View
Thanks
Member 12659926
4-May-17 4:20am
View
hi,
i have one datagridview object(datagidview1) on my form.that has two coloumns named Set1 and Set2 in it.i need to add values to both the columns of datagridview.
but i am unable to add values to second column of datagridview.
i use datagridview1.rows.add(value1) code to fill first column,but how to second column of same datagridview.
Member 12659926
9-Jan-17 7:03am
View
Thanks for reply,
can u give any example of how to do it
Member 12659926
28-Dec-16 6:42am
View
is 960000 baud rate possible,my data is of 12 bytes(96 bits) not 96 bytes.
Member 12659926
28-Dec-16 6:33am
View
hi,
Thanks for reply, my message consist of 96 bits,i have increase the baud rate to 115200,then also i have not got 1000 samples/sec.
is their any other way to increase data logging rate
Member 12659926
28-Dec-16 6:13am
View
hi,
thanks for reply,along with temperature i have some other datas that will change frequently,i am operating at a baud rate at 9600 bps,using usb 2.0 for serial communication,i want to know is their any way to increse the data logging speed through my code.
is their any parameter which modify the data logging speed.
Member 12659926
21-Oct-16 3:11am
View
yes,i read but it was not mentioned their
Member 12659926
21-Oct-16 0:23am
View
Thanks a lot Mr. for ur valuable reply
Member 12659926
20-Oct-16 6:06am
View
Dim Buffer(256) as byte
if(cnt=128)
spi.write(buffer)
System.Threading.Thread.Sleep(1)
EndIf
i have made like this,in this it is making the program execution delay,but i want to stop the spi writing for 15 ms,after 15 ms delay it should write data.
please provide me the solution to delay spi communication asap
thanks in advance
Member 12659926
20-Oct-16 1:20am
View
i need to insert delay between spi.write().means i will send 128 bytes of dataat the first,then i want to insert a delay of 15ms before sending next 128 bytes.
i am doing like this
Dim Buffer(256) as byte
if(cnt=128)
spi.write(buffer)
EndIf
after every 128 bytes i want to delay the writing by 15ms
how to acheive it
Member 12659926
11-Aug-16 2:54am
View
i have updated,please go through it
Member 12659926
10-Aug-16 7:09am
View
sorry,i made small mistake,its working fine,thank u so much
Member 12659926
10-Aug-16 7:07am
View
thanks for reply,now textbox Is accepting a to z,i need upto f only
Member 12659926
10-Aug-16 7:07am
View
thanks for reply,now textbox Is accepting a to z,i need upto f only
Member 12659926
10-Aug-16 6:59am
View
I have place the code in textbox1_textchanged() is that right
Member 12659926
10-Aug-16 6:59am
View
if I do that textbox will accept all alphabets.
Member 12659926
10-Aug-16 6:39am
View
if I delete the text in textbox it was giving exception saying that length cannot be zero,wat to do for this
Member 12659926
10-Aug-16 6:30am
View
private void TextBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (IsHexadecimal(Strings.Chr(e.KeyValue)) == false && e.KeyCode != Keys.Back) {
e.Handled = true;
e.SuppressKeyPress = true;
}
}
In this Strings.Chr is showing as error.i am using visual studio 2012.
Member 12659926
9-Aug-16 4:32am
View
seethe form will load with default textbox value,i want to replace the default value with new value.how to make that
Member 12659926
29-Jul-16 8:24am
View
ok I will try it
Member 12659926
29-Jul-16 8:12am
View
Hi OG,
please provide me some related examples,this username property made me little confusing,"don't think it as hand it to you on a plate",just share the things u know.related examples may help me
Member 12659926
29-Jul-16 7:25am
View
Yes ralf I agree with u,this is the UI only,i want the user entered data to be stored and restored while opening the form.how to do that is confusing me,if u have any example share with me
Member 12659926
29-Jul-16 6:49am
View
please can u explain in detail how to do that for combo box,listbox and text box.
In form 1 I have did this
private void bCRTToolStripMenuItem_Click(object sender, EventArgs e)
{
Form4 F4 = new Form4();
F4.Show();
}
on pressing bCRTToolStripMenuItem button Form 4 will be displayed.
in form4 I have a combo box and text box and listbox.
on a click of button I will add value to combo box.(before that while creating form 4 .I have added 4 default values to combo box using the collections properties) .after adding the new value for combobox I will press ok button.the ok button code is this.close();but when I reopen the form on clicking the button on form1.the newly added values doesnot reflect in the combobox list.so I need how to save that values.
here is add new item to combo box button code.
private void button1_Click(object sender, EventArgs e)
{
i = i + 1;
comboBox1.SelectedIndex = comboBox1.Items.Add("Message" + i);
F5.listBox1.Items.Add("Message" + i);
F5.Show();
if (comboBox2.SelectedIndex == 0)
{
comboBox7.SelectedIndex = 1;
comboBox8.SelectedIndex = 0;
comboBox9.SelectedIndex = 0;
radioButton4.Enabled = false;
textBox3.Enabled = false;
}
}
as I am new to c# and visual studio ,kindly help me to come out of it
Thanks in advance
Show More