|
Hi All,
I am working on a project that uses a browser control. Browser control was working fine till I use Append Child to insert anchor element into document. Problem is when page finish loading, ScrollBar in browser control scrolls down automatically and shows the bottom of the web page. I don't want scrollbars to scroll down automatically because I want show the top of the page. Pleaase help.
Thanks,
A.Asif
|
|
|
|
|
One post is enough
only two letters away from being an asset
|
|
|
|
|
Second post was a mistake.
A.Asif
|
|
|
|
|
Hi All,
I am working on a project that uses a browser control. Browser control was working fine till I use Append Child to insert anchor element into document. Problem is when page finish loading, ScrollBar in browser control scrolls down automatically and shows the bottom of the web page. I don't want scrollbars to scroll down automatically because I want show the top of the page. Pleaase help.
Thanks,
A.Asif
|
|
|
|
|
Is there a way to set a named line or elipse, instead of just drawing one? If so, how would I do this. Thanks.
- "Achieving all knowledge does not mean achieving all wisdom."
- "What makes you smart
?"
|
|
|
|
|
If you mean how do you draw a graphics object and be able to select it at runtime, no, there isn't any method built in to do this. There is no "retained mode" graphics in GDI+, only "immediate mode". You have to write the code to do this yourself. Google for "gdi retained mode".
|
|
|
|
|
Hi All,
I'm fetching web pages, and parsing TITLE to gather information. The title will come back as:
<TITLE>OID Repository - {iso(1) identified-organization(3) dod(6) internet(1)}</TITLE>
For some reason, my RE will not remove the trailing '}' from the match. The pattern is as follows (sorry about the poor formatting - I had to get rid of the smiley faces):
String Pattern = @"(?<=<title.*>)*(?<={)([\s\S]*)(?<=})*(?=</title>)";
Any ideas?
Jeff
Jeffrey Walton
|
|
|
|
|
The following expression removes the trailing '}' from the match.
(?<=<title.*>)*(?<={)([\s\S]*)(?=})
The problem with your expression is that the [\s\S]* subexpression matches the trailing '}' character and includes it in the match. The regex engine then moves to the following character. The zero-width positive lookbehind assertion (?<=})* successfully matches the preceding character, which is the '}', and the final zero-width positive lookahead assertion is also successful.
Adding the trailing '}' character to the zero-width positive lookahead assertion achieves the correct result because after matching the final parenthesis the regex engine looks forward and finds that the trailing '}' and every following character match this assertion, but doesn't include them in the match.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Paul,
Thank you very much. I will change it.
Jeff
|
|
|
|
|
Hello everyone,
I have written a class library app in VS C# 2005 and want to deploy it. Once on a machine, I am run Regasm /cobebase MyClassLib.dll from the .Net location to make it work.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe [path of dll]\MyClassLib.dll
Doing so, I get an error saying "You must have administrative credentials to perform this task". Contact your system administrator for assistance."
I am puzzled since I am the only user on my computer and the administrator! I even doubble checked that from Control Panel/ User Account and Family. I am using Vista OS. Is there any other way to get to my computer as an admin?
Any information on this would be great.
Thank you very much and have a great day.
Khoramdin
-- modified at 23:31 Wednesday 14th November, 2007
|
|
|
|
|
Vista sucks. Just because you are admin, doesn't mean you're admin. Make sure you right click on any app you want to run as admin and choose 'run as adnimistrator'
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
SABhatti wrote: you might have an idea that some companies develop the page
What page? What are you talking about?
SABhatti wrote: an activeX
What ActiveX control??
SABhatti wrote: and made a CD along with a .dat and .idx file
And those .dat and .idx files would contain what?
SABhatti wrote: Now the end users install the application on their machines, use that page to validate some data e.g. some company name against the CD
What page? What company? Nothing is validated against the CD, so I have no idea what you're talking about here.
I'm guessing that the .dat and *.idx files are a database, possibly a FoxPro database??
|
|
|
|
|
well, forget about everything else, and just guide me how to read data from these .dat and .idx database files?
-----
|
|
|
|
|
That's just not possible until you know what kind of database it is. It's that simple.
|
|
|
|
|
well the file type for .idx says SQL Server Replication Snapshot Index Script
-----
|
|
|
|
|
Great. You have no idea what you have.
.DAT and .IDX are about as generic a file extensions as you're going to get. .IDX also has about 18 more documented uses on FilExt.com, and countless proprietary ones since IDX is short for Index.
Unless you KNOW FOR ABSOLUTELY SURE what's in that file, you're groping around in the dark. Also, none of the SQL Server providers will attach to a file without an instance of SQL Server running. If those are SQL Server files, they're useless to you.
|
|
|
|
|
My application window seems to be locked from being resized, I have checked to make sure that locked is set to false. Is there anything else that could be done this?
|
|
|
|
|
Check the FormBorderStyle property, make sure it is set to sizable.
only two letters away from being an asset
|
|
|
|
|
check Form.MinimumSize and MaximumSize; if they both equal the initial size, no resizing
will be possible.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
How can I get first clicked button’s image and second clicked button’s image in runtime application.
(I built the buttons automatically by coding in form loading. I will use tag of button’s image but I can’t define first clicked button’s ... and second clicked button’s.....For example I want to show “perfect” in messagebox if first clicked button’s backgroundimage is the same to second Clicked Buton’s backgroundimage. How can I write first clicked..... and second clicked ..... by coding to compare)
I asked this question before and I received this answer that
protected void ClickEvent(object sender, eventargs ea)
{
Button b = sender as Button;
// b is now the button that was pressed
}
but how can I define the first clicked button and the second clicked button?
Is beloved answer defined only one button which is clicked?
|
|
|
|
|
Create a generic List of Buttons, List.
In the clicked events, add the (Button)sender to the List.
Then can check the order of buttons like an array. list[0], list[1], etc.
If 2 buttons have been clicked, remove them and start over.
"I long for combat!" - Unknown Protoss Zealot Jason Henderson
|
|
|
|
|
Thanks a lot for your reply,
I am beginner in programming and don't know generic list. Can you give a simple example about this subject?
|
|
|
|
|
private List clickedButtonList = new List();
In the clicked event you can add the button to the list like this:
clickedButtonList.Add((Button)sender);
Traverse the list like an array or with foreach.
Remove() will remove, etc.
Look up List<> on MSDN.
"I long for combat!" - Unknown Protoss Zealot Jason Henderson
|
|
|
|
|
Thanks so much,
I will make effort on it.
|
|
|
|