|
Good afernoon led mike.
I am very new to C# (huge VBA background).
My first hurdle is to populate the text box with the discription from the first cell from the description column.
Secondly I need to add this to the click event once a user changes from record to record.
WHEELS
|
|
|
|
|
you can use the indexer of the datagridveiw to directly find the cell you are looking for and also use the property "FormattedValue" to get the displayed text of the cell
str=dgrid[colIndex,rowIndex].FormattedValue.ToString();
I have to remind you,If you already don't know, that an empty cell means most of the time null, that is like a fuel to run time error, so be aware of that.
- try using the "RowEnter" event and access the selected row by the "DataGridViewCellEventArgs" in the event handler.
best of luck
|
|
|
|
|
Thank you everyone.
This is a great forum.
WHEELS
|
|
|
|
|
Good day people i have a little problem i hope you guys can help me
i have a windows form with some buttons and their flatstyle is set to Flatstyle.System, i used to have it set to
Flatstyle.Standard so i could put icons in them, but since i changed it to Flatstyle.System i cant put icons in them
is there any way i can put icons in buttons with FlatStyle.System?
thanks a lot in advance
|
|
|
|
|
Well, it always works on mine. I used Image property.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Help me, I have Combobox in Datagriview i need bind combobox, but my code no bind it.
DataSet ds = new DataSet();
ds = neP.NE_Cargar_Procedimientos_Costos();
DataGridViewComboBoxColumn cbox = new DataGridViewComboBoxColumn();
foreach (DataGridViewRow row in dgvCostos.Rows)
{
if (dgvCostos.Columns[2].Name == "storedproc")
{
cbox.DataSource = ds.Tables[0].DefaultView;
cbox.DisplayMember = "name";
cbox.ValueMember = "id";
}
}
Help me 
|
|
|
|
|
As far as I understood your code, you're trying to bind every Row's Combobox. But the fact is, its only one combobox associated with the column. So if you bind the combobox it will be same in every row.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
as it could then bind the combobox, i need bind all combobox, thank you Xmen
|
|
|
|
|
how can we apply self embedding water marking technique to images using vb.net or c#.net technique
|
|
|
|
|
first there are 2 buttons on the right-bottom in every message you post. One called 'Edit' and the second one 'Delete'. So if by mistake you posted 2 same messages you can use 'Delete' and to edit the message you can use 'Edit'. Simple as usual
As well as, here[^] is something for you
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
how can i apply cosine transformation to an image using c#.net
|
|
|
|
|
Hi Folks, I have a string.."Desktop Development Web Development Multimedia Development". Now i want a 20 character string "Desk Dev Web Dev" like this...pls help
|
|
|
|
|
split the string with ' '(space char, e.g. string.split(' ')) and then iterate all the splitted parts, rip first 3 or 4 chars by using string.Substring() plus keep append a main string.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
There's a one-liner for everything.
words = string.Join(" ", words.Split().Select(s => s.Substring(0, 3)).ToArray());
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: words = string.Join(" ", words.Split().Select(s => s.Substring(0, 3)).ToArray());
When did Microsoft put Select() in string.Split()
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Xmen wrote: When did Microsoft put Select() in string.Split()
Never. It's an extension method, and it's in the IEnumerable<T> class.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
so its a LINQ thing, listen mate. I use .Net Framework 2.0 usually as most of users do not have 3.0(+).
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Listen mate, it's just a one-liner. If you don't understand it, it only means that you have more to learn...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
there was nothing that I couldn't understand. After all I know how to use google
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
If you need first three characters of each word, then you use Split and Substring.
In the example you gave, you have taken "Desk" from desktop ie 4 characters and 3 characters from others. The number of characters to be taken from a word is not fixed. It depends on the word. Now if the string changes to say "Development Web Development Multimedia Development". How do you want this to be divided?
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
As the subject is saying, is it possible with C# to push a button like ENTER-key virtual?
Just like with InvokeMember("click"), then I just need it to do a virtual push at ENTER-key.
|
|
|
|
|
Hi,
The Button class has a PerformClick method.
Alan.
|
|
|
|
|
|
Hmm, and how can I then use it to make a push on Enter at my keyboard ?
As I see that class, it only can perform clicks on buttons on the application.
What I want is to make a program that for examples makes a virtual push on A,B,C,D,E,F,G on my keyboard
|
|
|
|
|
If you have code that does something other than handle speific UI elements in the Button Click handler, you really need to move that code to it's own method. Then you can call it from both the Button Click handler and from anywhere else in your code without having to resort to funky workarounds like this.
|
|
|
|