How to add a tag value to balloonTooltip in notifyIcon in C# winform? -


i have windows form application retrieve data web , show data in datagridview. when form minimized , new data have been fetched notifyicon tooltip appeared in screen , alert user.

now want create feature:

when user click on tooltip (balloon) form must become maximized , highlight row related balloon. there isn't tag or info holder balloon determinate row index or data identifier?

how can customize balloon or send data accessible in balloon click event?

add data on tag:

object obj = mydata; notifyicon1.tag = obj; 

add event click notify icon:

private void notifyicon1_click(object sender, eventargs e) {     object obj = notifyicon1.tag;      myobject myobject = (myobject) obj;      showintaskbar = true;     notifyicon1.visible = false;     windowstate = formwindowstate.normal;      (int x = 0; x < datagridview1.rows.count; x++)     {         if (datagridview1.rows[x].cells["idobject"].value.tostring() == myobject.idobject.tostring())         {             datagridview1.rows[x].selected = true;             break;         }     } } 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -