[HELP] ON Textbox positioning / coordinate


hey there. have list of array contain textbox. able information such content, width,height etc..

but having trouble of getting textbox coordinate/positioning. need value before able save in database. how can achieve it? kind soul can me or example appreciated. right postioning x & y hardcoded (1000).

below code. much.

 for (int k = 0; k < temptextbox.count; k++)
                {
                    string textmsg = callpopups.toarray()[1].alltextbox[k].text;
                    float width = (float)callpopups.toarray()[1].alltextbox[k].width;
                    float height = (float)callpopups.toarray()[1].alltextbox[k].height;
                    string textid = callpopups.toarray()[1].alltextbox[k].name + "textbox" + k + "_" + randomno;
                   

                    savetextbox(textid, controlid, textmsg, 1000, 1000, width, height);

                }

if textbox-es located in canvas, use next:

double left = (double)callpopups.toarray()[1].alltextbox[k].getvalue(canvas.leftproperty); double top = (double)callpopups.toarray()[1].alltextbox[k].getvalue(canvas.topproperty);

if textbox-es located in grid , use margin property set position, use next:

double left = (double)callpopups.toarray()[1].alltextbox[k].margin.left; double top = (double)callpopups.toarray()[1].alltextbox[k].margin.top;

 



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'