last day (14 days later) » 

1:26 AM
2
A: How to pass numbers associated with each letter to different textboxes from a main textbox

masum7You better split by space and then while setting into textboxes you can remove the first character. The reason is split by multiple characters cannot ensure the order by which they will come into the output array. private void textBox11_TextChanged(object sender, EventArgs e) { string originalTe...

 
@ACUTALLY THERE IS NO SPACE BETWEEN CHARACTERS.. SORRY ABOUT THAT N14G73X315.2Y83.7I40.0A0.0H3K75T11F5M0C0.0
 
Even if there is no space it should work.. Just change the line: string[] splitString = originalText.Split(new Char[] { 'N', 'G', 'X', 'Y', 'I', 'J', 'A', 'H', 'K', 'F', 'T', 'M', 'C' }); The ordering here does not matter
 
That was a perfect one.. when i gave spacing it worked.. tell me how to enter N14G73X315.2Y83.7I40.0A0.0H3K75T11F5M0C0.0 .. like this
Now its showing error switch (str[0]) in Index was outside the bounds of the array.
 
It may happen if any splitted item is null. You can have a check before calling str[0].. But remember the charset must be perfect way
 
@what do you mean by perfect way..
can you please update you answer
I enter three different types of textess.. in the textbox11.. first type N14G73X315.2Y83.7I40.0A0.0H3K75T11F5M0C0.0 Second type N14G73X315.2Y83.7I40.0J23.55A0.0H3K75T11F5M0C0.0. Third type N14G73X315.2Y83.7J40.0A0.0H3K75T11F5M0C0.0
 
1:26 AM
Which code block are you using? I have two blocks.. first one or second one?
 
i am trying the first one.. i tried second one .. its showing.. Error 1 Cannot convert type 'System.Windows.Forms.Control[]' to 'System.Windows.Forms.TextBox'
 
Ok forget about the second one.. For the first one, just use a check before applying case: If(str == null || str.Length == 0) continue;
 
same error i am getting Index was outside the bounds of the array.
please see my updated code
 
No.. not like this I have updated my answer.. check the first one.. If this one does not work we can discuss in chat
 
now that index out bond is not coming
but the numbers is not moving to respective textboxes
 
1:27 AM
Hi.. Can you give example what is happening now
 
see nothing is coming
let me send u the project
 
May be I got the issue
 
let me think a bit
 
seee the project
i have emailed u
please download
 
1:32 AM
okay
The NG characters can come any order?
or any specific order?
 
tis is the order
N14G73X315.2Y83.7I40.0A0.0H3K75T11F5M0C0.0
or
N14G73X315.2Y83.7I40.0J24.34A0.0H3K75T11F5M0C0.0
This is the perfect order
N14G73X315.2Y83.7I40.0A0.0H3K75T11F5M0C0.0
may be sometimes J will miss
or I will
thats it the three case
 
okay.. let me think a bit
 
yap.. let me work on that
 
Ok thanks
 
1:35 AM
15 minutes..
 
did u got how i am doing
right
 
ya I got the issue
 
can you give the character class
NGXY...
 
what i dint get
i dont mind anything
 
1:43 AM
ok no need.. I am sorting
 
i just need to run that three different coding thats it
please help me out
 
complete sequence is NGXYIJAHKTFMC
can you confirm?
 
okay I am done
sending in minutes
 
2:01 AM
ok thnaks
hurray
!!!
 
I have updated the answer
at the top
you just need to copy the text and check
lemme know here
you will find at the top
You checked it?
 
Oh my good ness
that was a perfect one
holy mother of god
how did u do that
 
Great
 
i was doing for last three says
days after this
 
the code should perform the best.. anyway.. you can mark my answer as answer and can increase up vote
in stackoverflow
 
2:12 AM
ok can u help me for one more thing
i have one more question
 
sure.. better you can post in stackoverflow and give the link to answer
 
ok
dont go from chat
please
 
ok :)
 
I have an auto updation code. I have a button that will move file from cell[1] to cell[2].
a file watcher..
So the auto updation for file watcher is working fine and its updating my database.. So i am watching a folder called C:\user\fab
So when ever any file is added that will update the filename and filepath in my database.. through SQl server.. so i am updating two things in database when a file is added to the folder C:\user\fab.. cell[0] which is my primary key and cel[2] my file path
okay
!!!
got
 
ya.. but what's the issue
 
2:20 AM
Ok there is lot to say
i am making sure that u understood till i expalined
:P
So this is an entire software working in a different computer and it runs all the time to update the database
so leave it here
And i have another application running on a different computer to move files from cell[2] to cell[3]. So in this software i have a button called "Release"
the moment. i press the "RELEASE" Button to move all files from cell[1] location:- C:\user\fab to cell[2] location:- C:\user\Release. I thought of giving an another filewatcher in this application. Becasue the previous file watcher i am running in a different PC.. ans its a different application. While this "RELEASE" button is the main software. So the momemt i press the button lets say it activates the filewatcher and copies to location C:\user\Release.
sorry cell[2] to cell[3] files are moved
 
hmm.. seems a big thing here :)
 
Where file watcher again updates the file and location to database... So previous file watcher deletes the data since this application moved the file from location C:\user\fab. So file is deleted.. And main application file watcher adds like a new data.. and gives the location too. When again a new file is added to location :- C:\user\fab.. With same filename then a clash wiill occur that time.. Which means a new file in cell [2] and the latest file in cell[3] comes what i need to do..
But the issue is easy i dont know to expain u
ok lets make simple
chuck all that
see
i have a background running app which updates my database
cell[0] nd cell[2]
let me show u an image
u saw
this thing my filewather stand alone program will automatically update the database when a file is added to the location C:\user\elec\copy
Ok got it
till now
 
ya Stacy.. got it.. but can you tell me is it your personal project? or for any client?
 
no this is my intership project
the first one was my personal project
the one which i am talking right now is my inteship project
 
hmm you have skype?
 
2:32 AM
no
i dont use that
 
ok.. np
tell me what's the issue in the app
 
actuall i dont know my username
to
lol
yea i am not into skype and all
Ok so did u got this image right
 
no I mean.. what's the issue in the project that you are saying
 
program will automatically update the database when a file is added to the location C:\user\elec\copy
Ok got it
 
ya
 
2:34 AM
this one
Ok
SO i have a different
main app..
In that i have a button called Release
So whever i press this button release.. the files is moved to release path and it clear the G-Code path.. The file is attached to relase path with a new location.. C:\user\relase
 
okay.. is it working fine or any issue?
 
yes it is
So this is the image of when i press that button
as you can see it moved the file from cell[2] to cell[3]
the file name is differer
wait let me show u a good one
i mean
 
can you do one thing
you can mail me your project with description, expected outcome and current outcome
then I can help you
 
both pictures
 
because I need go to now :(
 
2:47 AM
Oops i cannot mail the entire projec
its official
sorry about that
 
or any part by which I can help you
my email address: masum7@gmail.com
You can also send some screenshot
I need to go now Stacy..
 
unfortunately
 
Its okay
i will mail you
in detaiks
tanks for the help
by the ways ur name
:-)
 
Masum
Thanks Stacy.. :)
bye.. hav ea nice day
 

last day (14 days later) »