Adam Boczek's Q&A profile
Windows Forms Click on a link programmatically using WebBrowser control
How can I click on a link using C# and DOM The page is loaded within my WebBrowser control. Thanks To crawl through all the links in a web page, you dont' need clicking on each link! You have the webBrowser1.Document object through which you can get all links in a page in many ways and then manipulate them as you like. For example: You can put the following code in the evnt handler of a crawl button or the Navigated event of a web browser control to get all links: HtmlElementCollection links = webBrowser1.Document.GetElementsByTagName( "a" ); foreach ( HtmlElement ele in links) { //Form3 is a form that contains a web browser control, an address combo box //a GO button and a "Crawl Links" b ...Show All
.NET Development Invoke event of a control virtually
How to Invoke the event of a control suppose like button's click event can be Invoked using "new Button1().PerformClick()" method . suppose if I want to raise an event of a control by other means how it is possible.. ya I can call the function directly . But Idon't want that . I want to trigger the event virtually like PerformClck()..Is it possible through P-Invoke Please any one help me :) Hi Michael Blome, Thank you for your answer. yap I agree to your answer but under certain circumstances like (before I said) without pressing the Button I can Invoke the event by calling a public member of Button class "PerformClick()". I came across a scenario where I have to raise the Toolbar Button click. I solv ...Show All
.NET Development Repeater and datalist
Hi i am Vojislav Milutinovic from Serbia (Europa) and i have problem with a nested datalist control inside repeater. So pleas help me. Problem I have database with 3 data tables. First with employes , second with pictures and thrd with idkeys from this two tables because i want to every employe have many pictures so thats a many to many releshionship. I made DAL and BLL , on presentacion layer i have two datasource object first DS1 is list of all employes and second is DS2 with list of pictures but with parameter IDEmploye so i can find pictures for every employe. I made repeater and inside datalist (for list of pictures that he have , just names not real images) . Data repeater shows ok , but datalist shows data fro ...Show All
Visual Basic How to Copy Controls in Code???
Visual Studio 2005... Casual Programmer... My apologies for this simple question but I continue to be stumped with this issue... 1. Create a Windows Application; add a GroupBox control named GroupBoxTemplate to the Form. 2. Add some graphics to this control. 3. How do I create copies of this GroupBoxTemplate including the graphics in code 4. The following code does not produce separate copies since the three controls all point to the same object on the heap. How do I modify the code to generate independent copies of the GroupBoxTemplate Dim GroupBoxCopy1 As System.Windows.Forms.GroupBox Dim GroupBoxCopy2 As System.Windows.Forms.GroupBox GroupBoxCopy1 = New System.Windows.Forms.GroupBox GroupBoxCopy2 = New ...Show All
SQL Server Can Management Studio Express manage SQL 2000?
Can I use SQL Server 2005 Management Studio Express to manage existing SQL Server 2000 instances Yes, it can. I've suggested that people set this up when the non-Express version wasn't available and it works beautifully. Well, almost. The only thing I know you need to look out for is generated SQL scripts. Sometimes they aren't compatible with SQL Server 2000. That's the only thing I've run into, tho. Hope this helps! ...Show All
SQL Server Group Policy settings for SQL2005 server
Does anyone know what group policy settings are required for SQL2005 server to be completely functional Hello, Can you be little bit more descriptive what you want to in SQL server 2005 to be functional completely. Did you mean the SQL2005 server access to other users Thanks, Prakash Paramasivam [MSFT] ...Show All
Visual Studio Express Editions How do I
How do I Insert a KeyFrame in Visual C# . Please answer,the Rocket Rocky Csharp manager ...Show All
Smart Device Development Wizard in .NET Compact Framework?
Hi! I am trying to create a wizard for a mobile application. So far I have created a stack in which the wizard's step are saved and whhich I think is a good desidion for wizard's structure.The problem I have is how to transport the information between the separeted forms The wizard is for editing so each form has to know the editing item. The first idea is a public property which contains EditItemID. But I know properties are not good for mobile applications. Also I do not know if this is the best solution when I am using resultsets for DAL. I will appreciate if You can give me some advices how to transport transformation - is my idea ok If it is not what whould you recomment Thank You in advance. Nadia well, thank yo ...Show All
Visual Studio 2008 (Pre-release) error logging in while publishing on uddi
Hi, I am trying to publish my service on uddi but even pefore publishing it is giving me error of user login failed while my login and password is correct. I tried to access the web UI on the link http://test.uddi.microsoft.com so that i can check whether there are some problems with my login information or not but i cant really access the publishing UI on this link. so can anyone help me with the prob why isnt it logging in programatically and secondly where can i find web UI to publish. the code is as follows: Publish .Url = "http://test.uddi.microsoft.com/publish" ; Publish .User = "my login name" ; Publish .Password = "*************" ; //Create tModel SaveTModel stm = n ...Show All
Visual Studio Team System History of merge's?
Is there any way to get history on if a particular changeset was merged into a particular branch If not, it would be nice if there is some way to pull this off. I guess if you had a work item associated you could relate both changes to the same work item, but sometimes there is not a direct correlation. In this case we don't use work items yet and a developer should have done a merge of changesets, but I can't think of an easy way to tell other than just try to compare files. Granted since merges involved manual steps to do merging, a merge may not be able to have a direct correlation with a changeset, since there may have been changes to the changeset to do the actual merge, it still would be an interesting view as it at least track ...Show All
.NET Development renaming "anyType" using XmlSerializer
I am trying to serialize a class derived from ArrayList called JobQueue that contains an array of objects of the class Job. Using XmlSerializer I can get this to serialize successfully, but I am unable to change the name of the Job element from "anyType" to "Job". It is somewhat of a nit but it does bother me that I'm not understanding the attributes well enough to make this simple change. I have tried numerous options and now I'm just frustrated. Could this have anything to do with my JobQueue class being static Anyway, some code below. // My JobQueue class: [XmlRoot("JobQueue")] [XmlInclude(typeof(Job))] public class JobQueue : ArrayList { [XmlArray(ElementName = "Job")] [XmlArrayItem(Eleme ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Wendybrot - An XNA Mandelbrot set explorer
Hi, I've written a Mandelbrot set explorer in XNA. See the following link for more details. http://blogs.msdn.com/manders/archive/2006/11/25/wendybrot-1-0-a-mandelbrot-set-explorer-written-with-xna-gse.aspx Enjoy! I'll be making other posts related to XNA at http://blogs.msdn.com/manders in the future. BTW, if you send me feedback via that site, save a copy of the mail -- I'm not sure if I've got the filters set up right, and some mails may not be getting through. -Mike It would be nice if I could use mouse or keyboard, I dont have a xbox controller :( I suppose I could change to code myself... anyway the pictures look great, fractals are amazing things. ...Show All
Visual Studio 2008 (Pre-release) How to use DependencyPropertyConverter
I have a need to procedurally get a reference to a DependencyProperty, and all I have at my disposal is a string. In the past I have been successful in doing this through creating a DependencyPropertyDescriptor, constructing it out of the name, owner type, and target type, and then simply reading its DependencyProperty property. It seems however (in theory) that using a DependencyPropertyConverter would be a superior solution to the one listed above. The documentation states that it can only convert a DependencyProperty to and from a String. It also says to use the following format in specifying the string: namespacePrefix : className . propertyName . Here is the article I am referencing: http://msdn2.microsoft.com/en-au/library/sy ...Show All
.NET Development Delayed Datareader column error
In a live application which i created, i noticed that after a day or two, i get a datareader error, specifically the error which returns a column name as it's message. i.e if i had written reader["col_name"] i get col_name as the error message. The problem is that i read 5 column names in a single read, and the messages vary, it not always the same column name. However, whenever i restart the server, the problem goes away for another day or two. Recently i increased my max pool size because i was having pooling issues, this had an effect on the datareader error in that it now occurs every 2-3 hours instead of the 1-2 days. pls i need help on this one Thanks Hi Michael, Q1: This i ...Show All
Windows Forms Tabcontrol and pages
hi i am using TabControl with 03 pages and i would like to just show one page of the 03 page when i click in button.can that be realised because i tryes without success and how if that possible Someone tell me if there is a better way , but hold on to a reference to all the tab pages. When the descision comes down, remove the other two pages individually from the tabcontrol control list if (bSHow)// Add { if (!tabInputOutput.Controls.Contains(rTab)) tabInputOutput.Controls. Add (rTab); } else // Remove { if (tabInputOutput.Controls.Contains(rTab)) tabInputOutput.Controls. Remove (rTab); } When the ...Show All
