Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: Posting an Unbound DataGridView to a MySQL Table Pin
Jeff Patterson9-Aug-10 5:37
Jeff Patterson9-Aug-10 5:37 
GeneralRe: Posting an Unbound DataGridView to a MySQL Table Pin
Luc Pattyn9-Aug-10 5:52
sitebuilderLuc Pattyn9-Aug-10 5:52 
Questiondelete Pin
nhqlbaislwfiikqraqnm7-Aug-10 6:59
nhqlbaislwfiikqraqnm7-Aug-10 6:59 
AnswerRe: Firefox URL Pin
Ravi Bhavnani7-Aug-10 9:32
professionalRavi Bhavnani7-Aug-10 9:32 
GeneralMessage Closed Pin
7-Aug-10 21:48
nhqlbaislwfiikqraqnm7-Aug-10 21:48 
AnswerRe: Firefox URL Pin
Ravi Bhavnani8-Aug-10 7:44
professionalRavi Bhavnani8-Aug-10 7:44 
AnswerRe: Firefox URL Pin
I Believe In GOD7-Aug-10 12:49
I Believe In GOD7-Aug-10 12:49 
AnswerRe: Firefox URL Pin
Luc Pattyn8-Aug-10 1:00
sitebuilderLuc Pattyn8-Aug-10 1:00 
Hi,

you could read the content of the address bar of some browsers. In C# that would take some P/Invoke code to call FindWindow and GetWindowText; as the window belongs to another process, you would also need to allocate and access memory in that other process. You can find some of the basic techniques in my TrayIconBuster article (LP_Process class).

Doing it this way would have several limitations:
1. the solution is slightly different for each specific web browser, as the logical location of the address bar will vary.
2. the address bar does not always represent the current page; e.g. when frames are involved, the bar will show the URL of the frames page, not the contained page(s).

The alternative is to create your own browser and have the required functionality built-in. A good starting point would be the WebBrowser Control. Of course, people could still use another browser, but so they can in the former approach (you can't prevent them from downloading and installing FireFox, Safari, Chrome, etc).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


AnswerRe: Firefox URL Pin
Mycroft Holmes8-Aug-10 2:09
professionalMycroft Holmes8-Aug-10 2:09 
GeneralMessage Closed Pin
8-Aug-10 8:41
nhqlbaislwfiikqraqnm8-Aug-10 8:41 
AnswerRe: Firefox URL Pin
Saint_pl26-Aug-10 5:58
Saint_pl26-Aug-10 5:58 
QuestionCrystal report Pin
tek 20097-Aug-10 0:57
tek 20097-Aug-10 0:57 
AnswerRe: Crystal report Pin
PIEBALDconsult7-Aug-10 6:04
mvePIEBALDconsult7-Aug-10 6:04 
QuestionCannot implicitly convert type 'object' to 'bool' Pin
Tichaona J7-Aug-10 0:49
Tichaona J7-Aug-10 0:49 
AnswerRe: Cannot implicitly convert type 'object' to 'bool' PinPopular
Luc Pattyn7-Aug-10 1:20
sitebuilderLuc Pattyn7-Aug-10 1:20 
AnswerA suggestion Pin
Richard MacCutchan7-Aug-10 2:45
mveRichard MacCutchan7-Aug-10 2:45 
GeneralRe: A suggestion [modified] Pin
harold aptroot7-Aug-10 4:10
harold aptroot7-Aug-10 4:10 
GeneralRe: A suggestion [modified] Pin
Luc Pattyn7-Aug-10 4:37
sitebuilderLuc Pattyn7-Aug-10 4:37 
GeneralRe: A suggestion Pin
Richard MacCutchan7-Aug-10 5:34
mveRichard MacCutchan7-Aug-10 5:34 
GeneralRe: A suggestion Pin
Luc Pattyn7-Aug-10 5:38
sitebuilderLuc Pattyn7-Aug-10 5:38 
GeneralRe: A suggestion Pin
alton.turner9-Aug-10 14:04
alton.turner9-Aug-10 14:04 
GeneralRe: A suggestion Pin
TNCaver9-Aug-10 6:48
TNCaver9-Aug-10 6:48 
GeneralRe: A suggestion Pin
Luc Pattyn9-Aug-10 6:56
sitebuilderLuc Pattyn9-Aug-10 6:56 
GeneralRe: A suggestion Pin
Kenneth Kasajian9-Aug-10 9:13
Kenneth Kasajian9-Aug-10 9:13 
GeneralRe: A suggestion Pin
Jonathan C Dickinson9-Aug-10 21:44
Jonathan C Dickinson9-Aug-10 21:44 

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.