Hi,
Can i use XPAth expressions to navigate through DOM elements in WebBrowser control? May be attaching javascript code and use document.evaluate function is right way?
Hi
I have a WebBrowser control and try to set onclick and href attributes on all links.
foreach (HtmlElement link in webBrowser1.Document.Links)
{
link.SetAttribute("href", "http://www.google.com");
link.SetAttribute("onclick", "return false;");
}
It works well. When i out source code of outer html i see that attributes was exist.…
Hi
I have created a listbox control with following DataTemplate
<DataTemplate x:Key="lb_Itemtemplate">
<DockPanel>
<TextBlock Text="{Binding}" DockPanel.Dock="Left" />
<Button DockPanel.Dock="Right" Template="{StaticResource ButtonTemplate }"
Width="20" Margin="…
Does anyone know utility which can measure work intensity. For example - keystrokes\mouse clicks per second, time spent in IDE\other developer tools, total lines of code per hour...etc.
Can someone recommend a simple c# code generator. I just looking something with methods like:
GenClass = CreateNewClass(AccessModifier,Name......)
GenClass.Add(new Method(AccessModifier,RetType,Name....){code=@"....."}
GenClass.Add(new Property(AccessModifier,Type, Name....)
...........
etc
and after creating all classes\methods and…
Hi,
I have a class
public class Foo
{
public List<string> list1 { get; set;}
public List<string> list2 { get; set; }
public string url;
}
and a ListView with two columns
<ListView Name="listview" ItemsSource="{Binding}">
<ListView.View>
<GridView>
…
Hi
i have a simple question. Ofcourse it has many answers but i cannt choose right keywords to google.
How i can bind a subclass to my wpf control?
for example:
It's my class.
public class SiteFieldInfo<T>
{
public string Name { get; set; }
public T Value { get; set; }
public List<string>…
Hello
I am trying to do follow DataBinding
Property -> DependencyProperty -> Property
But i have trouble.
For example,
We have simple class with two properties implements INotifyPropertyChanged:
public class MyClass : INotifyPropertyChanged
{
private string _num1;
public string Num1
{
…
Hi
i have this code:
var list = new List<int>();
for(int i=0;i<10;i++) list.Add(i);
for(int i=0;i<10;i++)
{
ThreadPool.QueueUserWorkItem(
new WaitCallback(x => {
Console.WriteLine(x);
}),list[i]);
}
And i want to know when all threadpools threads finished their work. How i can to do that?
How i can get full right name of generic type?
For example:
This code
typeof(List<string>).Name
return
List`1
instead of
List<string>
How to get a right name?
Hello.
I am trying to merge two files. One of them is .net3.5 wpf application and other is WPF notify icon dll
i use the following command:
IlMerge /target:winexe /out:PS.exe "PlayerSearcher.exe" "Hardcodet.Wpf.TaskbarNotification.dll"
But when i launch result assebmly my application is crashed with this error
EventType :…
Hi
i am looking a simple(implements only base features like add articles and publish news) cms based on asp.net mvc. It's must be a simple because i am a newbie in asp.net and mvc and i want to use that cms for studing purpose. That's why it would be great if cms has been writed in a good code style practice.
I have a collection
ObservableCollection<string> outoverList
And i have a function which call collection
outoverList.Add("out:"+element.tagName);
Function call collection a few times, but sometimes collection lost elements.
We call a function - function adds element - collection has 9 elements(for example) - in the…
I have a xaml code:
<Grid>
<WrapPanel>
<TextBox ></TextBox>
<Button Content="GetIt" />
</WrapPanel>
</Grid>
How i can to get all available space for textBox?
i want to do something like that:
|[__________][GetIt]|
Hi
I have ListView and i am trying to bind command to ContextMenu of ListView.
<ListView x:Name="listView1" ItemsSource="{Binding Path=Persons}">
<ListView.Resources>
<ContextMenu x:Key="ItemContextMenu">
<MenuItem Header="Add" />
…
Hi
i want to use HtmlAgilityPack with WebBrowser control, but i have a problem. DOM is different because ie adds tag element after . Why? How i can disable it?
Hi,
I have a ListView and ObservableCollection in my wpf application.
I want to bind linq expression to ListView:
lv_Results.DataContext = store.Where(x => x.PR > 5);
But when i add new elements to store collection, lv_Results doesnt updates.
How can i update ListView?
Hello,
i have the follow code:
searchResults.SearchResultCollection.Add(
new SearchResult()
{
Header =
HttpUtility.HtmlDecode(
htmlDocument.DocumentNode
.SelectSingleNode(initialXPath + "h3")…
Hi,
I have a class
public class Foo
{
public List<string> list1 { get; set;}
public List<string> list2 { get; set; }
public string url;
}
and a ListView with two columns
How i can to bind…
Hi
I trying to get page from this url:
YandexMarket
but WebClient and httpWebRequest throw exception
Illegal characters in path.
HttpUtility.UrlEncode doesnt work for this symbol "-".
Firefox and other browser are correctly open the page.
Here is my code:
public string GetPage(string url)
{
var wReq =…
Hi,
I want to parse google and yandex search results for my little website analyzer utility.
so i should send hundreds requests per minute. What is good practice for this issue?
Is google search api a good way?
Hi,
Anybody know plugins for firefox, which help to write HTML parsers?
it will be nice if plugin allow to test XPath and regular expressions(highlight matched text, cut some parts etc).
Hi
I want to change a USER AGENT string in runnig internet explorer (or after launching). So i cannt change throught a register key. Is there other way to do that issue?
Hi,
Can i use XPAth expressions to navigate through DOM elements in WebBrowser control? May be attaching javascript code and use document.evaluate function is right way?
Can another activeX browser component(firefox,webkit.net) help me to solve my task?