Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:50
Norris Chappell13-May-15 20:50 
NewsRe: Update in C# using SQL Server Database. Pin
Norris Chappell15-May-15 13:39
Norris Chappell15-May-15 13:39 
Questionhow work class scheduling system by C# Pin
Member 116782469-May-15 19:54
Member 116782469-May-15 19:54 
AnswerRe: how work class scheduling system by C# Pin
OriginalGriff9-May-15 19:58
mveOriginalGriff9-May-15 19:58 
AnswerRe: how work class scheduling system by C# Pin
Afzaal Ahmad Zeeshan10-May-15 10:33
professionalAfzaal Ahmad Zeeshan10-May-15 10:33 
QuestionMethod Overload Troubles? Pin
Marcel Cartier9-May-15 16:42
Marcel Cartier9-May-15 16:42 
AnswerRe: Method Overload Troubles? PinPopular
OriginalGriff9-May-15 19:57
mveOriginalGriff9-May-15 19:57 
Questionwebbrowser auto tab click Pin
esancakdar8-May-15 2:17
esancakdar8-May-15 2:17 
Hi ;
1-day in the way I urge the base index with the following code automatically .
result : I get a script error.
2- webbrowser1.scripterrorssuppressed = true; I do not get to do when I command string error as above and wait out the succession button7_click icon () do not get any results when I call the incident.
3- button with Button7 and daily as if I click with the mouse, opening the daily index tabs .
I want to run automatically every time I click here. Waiting for your help in this regard.



C#
private void gunluk_Click(object sender, EventArgs e)
        {

            HtmlElement aaa = webBrowser1.Document.GetElementById("rtsLink");
       
            foreach (HtmlElement item in webBrowser1.Document.GetElementsByTagName("aa"))
            {
      
                if ((item.OuterHtml.ToLower().Contains("gunluk")) || (item.OuterHtml.ToLower().Contains("günlük")))
                {
                    foreach (HtmlElement childItem in item.Children)
                    {
                        if (childItem.TagName == "A")
                        {
                     
                            childItem.InvokeMember("Click");
                            break;
                        }
                    }
                    break;
                }
            } 
        }


 
private void button7_Click(object sender, EventArgs e)
        {
            while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }
            HtmlElement selectF8 = webBrowser1.Document.GetElementById("ctl00_cphMaster_rtsDashboard").All[1];
            for (int i = 0; i < selectF8.Children.Count; i++)
            {
                if ((selectF8.Children[i].InnerText.ToLower().IndexOf("gunluk endeks") > -1) || (selectF8.Children[i].InnerText.ToLower().IndexOf("günlük endeks") > -1))
                {
                    try
                    {
                        selectF8.Children[i].InvokeMember("click");
                        break;
                    }
                    catch (Exception)
                    {
                        throw;
                    }
                }
            }
}


HTML
<div id="ctl00_cphMaster_rtsDashboard" class="RadTabStrip RadTabStrip_Outlook RadTabStripTop_Outlook rtsDashboard" style="width: 700px;">
	<div class="rtsLevel rtsLevel1">
		<ul class="rtsUL"><li class="rtsLI rtsFirst"><a class="rtsLink Home rtsSelected HomeSelected rtsHoverBefore" href="#"><span class="rtsIn"><span class="rtsTxt">Home</span></span></a></li><li class="rtsLI rtsLast"><a class="rtsLink rtsAfter" href="#"><span class="rtsIn"><span class="rtsTxt">Gunluk Endeks</span></span></a></li></ul>
	</div><input id="ctl00_cphMaster_rtsDashboard_ClientState" name="ctl00_cphMaster_rtsDashboard_ClientState" type="hidden" autocomplete="off" value="{"selectedIndexes":["0"],"logEntries":[],"scrollState":{}}">
</div>

AnswerRe: webbrowser auto tab click Pin
Dave Kreskowiak8-May-15 3:49
mveDave Kreskowiak8-May-15 3:49 
AnswerRe: webbrowser auto tab click Pin
Dr Gadgit10-May-15 4:29
Dr Gadgit10-May-15 4:29 
QuestionHow Do I Pin
Cianide8-May-15 2:00
Cianide8-May-15 2:00 
SuggestionRe: How Do I Pin
ZurdoDev8-May-15 2:20
professionalZurdoDev8-May-15 2:20 
GeneralRe: How Do I Pin
Cianide8-May-15 3:14
Cianide8-May-15 3:14 
AnswerRe: How Do I PinPopular
Pete O'Hanlon8-May-15 2:24
mvePete O'Hanlon8-May-15 2:24 
GeneralRe: How Do I Pin
Cianide8-May-15 2:35
Cianide8-May-15 2:35 
GeneralRe: How Do I Pin
Pete O'Hanlon8-May-15 2:37
mvePete O'Hanlon8-May-15 2:37 
GeneralRe: How Do I Pin
Cianide8-May-15 3:16
Cianide8-May-15 3:16 
GeneralRe: How Do I Pin
Mycroft Holmes8-May-15 13:52
professionalMycroft Holmes8-May-15 13:52 
GeneralRe: How Do I Pin
ZurdoDev8-May-15 3:16
professionalZurdoDev8-May-15 3:16 
Questionreceived data by UDP client Pin
hasan hadi7-May-15 21:43
hasan hadi7-May-15 21:43 
AnswerRe: received data by UDP client Pin
F-ES Sitecore9-May-15 2:25
professionalF-ES Sitecore9-May-15 2:25 
GeneralRe: received data by UDP client Pin
hasan hadi9-May-15 3:38
hasan hadi9-May-15 3:38 
GeneralRe: received data by UDP client Pin
F-ES Sitecore9-May-15 7:05
professionalF-ES Sitecore9-May-15 7:05 
GeneralRe: received data by UDP client Pin
hasan hadi9-May-15 7:42
hasan hadi9-May-15 7:42 
GeneralRe: received data by UDP client Pin
F-ES Sitecore9-May-15 7:48
professionalF-ES Sitecore9-May-15 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.