473,657 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Control location problem on a form ( C# )

Hi! I posted this question in browser_ctl group as well but got no results.

I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original.

I noticed that the webbrowser in the newly opened form is shifted to the right and bottom leaving gray areas on the left and top of the form. I narrowed down the problem to the Top and Left parameters being pass in the call to window.open().
If I set these parameters = 0, the browser positions itself nicely within the form.
If these parameters != 0 , the browser is shifted to the right and bottom.

I figured that I can adjust the layout etc in the ClientToHostWin dow() event which seems to fire. However, I have not been able to reposition the browser. What can I do ? If I do not fix this, I'll have to spend months fixing all 7500+ instances of the window.open() in all web pages. Any samples on how to do it, please?
I am not that great of a C# programmer, so may be somebody can show me
how to adjust the position of webbrowser within the form, please.

I am also open to the idea of taking the browser control and painting it onto a new
location. I am open to whatever works as I am pretty desperate.


Many Thanks in Advance,

--Mike

Expand AllCollapse All
Nov 16 '05 #1
7 6517
Mike,

can you paste the code where you create a new form (after clicking link) and
adding browser control?

It will help me to investigate. I believe this problem can be fixed.

Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:AC******** *************** ***********@mic rosoft.com...
Hi! I posted this question in browser_ctl group as well but got no results.
I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass
different width, height, top, left and other parameters, I open a new form
of the same type as the original.
I noticed that the webbrowser in the newly opened form is shifted to the right and bottom leaving gray areas on the left and top of the form. I
narrowed down the problem to the Top and Left parameters being pass in the
call to window.open(). If I set these parameters = 0, the browser positions itself nicely within the form. If these parameters != 0 , the browser is shifted to the right and bottom.

I figured that I can adjust the layout etc in the ClientToHostWin dow() event which seems to fire. However, I have not been able to reposition the
browser. What can I do ? If I do not fix this, I'll have to spend months
fixing all 7500+ instances of the window.open() in all web pages. Any
samples on how to do it, please? I am not that great of a C# programmer, so may be somebody can show me
how to adjust the position of webbrowser within the form, please.

I am also open to the idea of taking the browser control and painting it onto a new location. I am open to whatever works as I am pretty desperate.


Many Thanks in Advance,

--Mike

Expand AllCollapse All

Nov 16 '05 #2
Hi! Thank you for taking a look. Please navigate to

http://users.adelphia.net/~mikezat/m...pplication.zip

Inside, you'll find the entire C# solution as well as the TestPage.htm
Open the solution and change the url in the form load event to
wherever you place the html file:

private void PRSPopupForm_Lo ad(object sender, System.EventArg s e)
{
this.Browser_Na vigate(@"C:\Doc uments and Settings\conmxz \Desktop\TestPa ge.htm");
}

The test page contains 2 links. 1 is the one that calls window.open() without specifying the Left and Top. As you can see, it works great.
The second is the one giving me all the problem in the world. I am pretty desperate as the alternative is to modify almost 8000 pages.

"Shakir Hussain" wrote:
Mike,

can you paste the code where you create a new form (after clicking link) and
adding browser control?

It will help me to investigate. I believe this problem can be fixed.

Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:AC******** *************** ***********@mic rosoft.com...
Hi! I posted this question in browser_ctl group as well but got no

results.

I have a form with embedded WebBrowser. Upon clicking on a link in the

embedded webbrowser that calls JavaScript's window.open() call where I pass
different width, height, top, left and other parameters, I open a new form
of the same type as the original.

I noticed that the webbrowser in the newly opened form is shifted to the

right and bottom leaving gray areas on the left and top of the form. I
narrowed down the problem to the Top and Left parameters being pass in the
call to window.open().
If I set these parameters = 0, the browser positions itself nicely within

the form.
If these parameters != 0 , the browser is shifted to the right and bottom.

I figured that I can adjust the layout etc in the ClientToHostWin dow()

event which seems to fire. However, I have not been able to reposition the
browser. What can I do ? If I do not fix this, I'll have to spend months
fixing all 7500+ instances of the window.open() in all web pages. Any
samples on how to do it, please?
I am not that great of a C# programmer, so may be somebody can show me
how to adjust the position of webbrowser within the form, please.

I am also open to the idea of taking the browser control and painting it

onto a new
location. I am open to whatever works as I am pretty desperate.


Many Thanks in Advance,

--Mike

Expand AllCollapse All


Nov 16 '05 #3
Mike,

I am investigating your code and able to see your problem. Give me some
time. Will bring up a solution hopefully.

--
Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Hi! Thank you for taking a look. Please navigate to

http://users.adelphia.net/~mikezat/m...pplication.zip

Inside, you'll find the entire C# solution as well as the TestPage.htm
Open the solution and change the url in the form load event to
wherever you place the html file:

private void PRSPopupForm_Lo ad(object sender, System.EventArg s e)
{
this.Browser_Na vigate(@"C:\Doc uments and Settings\conmxz \Desktop\TestPa ge.htm"); }

The test page contains 2 links. 1 is the one that calls window.open() without specifying the Left and Top. As you can see, it works great. The second is the one giving me all the problem in the world. I am pretty desperate as the alternative is to modify almost 8000 pages.
"Shakir Hussain" wrote:
Mike,

can you paste the code where you create a new form (after clicking link) and adding browser control?

It will help me to investigate. I believe this problem can be fixed.

Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:AC******** *************** ***********@mic rosoft.com...
Hi! I posted this question in browser_ctl group as well but got no

results.

I have a form with embedded WebBrowser. Upon clicking on a link in the
embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original.

I noticed that the webbrowser in the newly opened form is shifted to
the right and bottom leaving gray areas on the left and top of the form. I
narrowed down the problem to the Top and Left parameters being pass in the call to window.open().
If I set these parameters = 0, the browser positions itself nicely
within the form.
If these parameters != 0 , the browser is shifted to the right and
bottom.
I figured that I can adjust the layout etc in the ClientToHostWin dow()

event which seems to fire. However, I have not been able to reposition

the browser. What can I do ? If I do not fix this, I'll have to spend months
fixing all 7500+ instances of the window.open() in all web pages. Any
samples on how to do it, please?
I am not that great of a C# programmer, so may be somebody can show me
how to adjust the position of webbrowser within the form, please.

I am also open to the idea of taking the browser control and painting
it onto a new
location. I am open to whatever works as I am pretty desperate.


Many Thanks in Advance,

--Mike

Expand AllCollapse All


Nov 16 '05 #4
Mike,

Iadded two lines of code (dirty way ofcourse) to get the layout properly in
the 2nd case. Replace this function in the sample you gave to me. It works

private void OnDocumentCompl ete(object pDisp, ref object URL)
{
//Debug.WriteLine ("OnDocumentCom plete");
try
{
// TODO parse the string and get rid off server
HTMLDocument myDoc =(HTMLDocument) this.webMain.Do cument;
if(null!=myDoc)
{
string pageTitle = myDoc.title.Tri m();
if (pageTitle != string.Empty)
{
this.Text =
pageTitle.Subst ring(pageTitle. IndexOf("-")+ 1);
}
else
{
this.Text = myDoc.url;
}
}
}
catch
{
this.Text = "PRS";
}

//ADD THESE 2 LINES OF CODE
this.webMain.Do ck = System.Windows. Forms.DockStyle .None;
this.webMain.Do ck = System.Windows. Forms.DockStyle .Fill;
}

--
Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Hi! Thank you for taking a look. Please navigate to

http://users.adelphia.net/~mikezat/m...pplication.zip

Inside, you'll find the entire C# solution as well as the TestPage.htm
Open the solution and change the url in the form load event to
wherever you place the html file:

private void PRSPopupForm_Lo ad(object sender, System.EventArg s e)
{
this.Browser_Na vigate(@"C:\Doc uments and Settings\conmxz \Desktop\TestPa ge.htm"); }

The test page contains 2 links. 1 is the one that calls window.open() without specifying the Left and Top. As you can see, it works great. The second is the one giving me all the problem in the world. I am pretty desperate as the alternative is to modify almost 8000 pages.
"Shakir Hussain" wrote:
Mike,

can you paste the code where you create a new form (after clicking link) and adding browser control?

It will help me to investigate. I believe this problem can be fixed.

Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:AC******** *************** ***********@mic rosoft.com...
Hi! I posted this question in browser_ctl group as well but got no

results.

I have a form with embedded WebBrowser. Upon clicking on a link in the
embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original.

I noticed that the webbrowser in the newly opened form is shifted to
the right and bottom leaving gray areas on the left and top of the form. I
narrowed down the problem to the Top and Left parameters being pass in the call to window.open().
If I set these parameters = 0, the browser positions itself nicely
within the form.
If these parameters != 0 , the browser is shifted to the right and
bottom.
I figured that I can adjust the layout etc in the ClientToHostWin dow()

event which seems to fire. However, I have not been able to reposition

the browser. What can I do ? If I do not fix this, I'll have to spend months
fixing all 7500+ instances of the window.open() in all web pages. Any
samples on how to do it, please?
I am not that great of a C# programmer, so may be somebody can show me
how to adjust the position of webbrowser within the form, please.

I am also open to the idea of taking the browser control and painting
it onto a new
location. I am open to whatever works as I am pretty desperate.


Many Thanks in Advance,

--Mike

Expand AllCollapse All


Nov 16 '05 #5
hahaha,

Thx for the offer man. Any way try out the solution i gave you. It works
fine in my machine, with just 2 lines of code.

//attaching the previous post

I added two lines of code (dirty way ofcourse) to get the layout properly in
the 2nd case. Replace this function in the sample you gave to me. It works

private void OnDocumentCompl ete(object pDisp, ref object URL)
{
//Debug.WriteLine ("OnDocumentCom plete");
try
{
// TODO parse the string and get rid off server
HTMLDocument myDoc =(HTMLDocument) this.webMain.Do cument;
if(null!=myDoc)
{
string pageTitle = myDoc.title.Tri m();
if (pageTitle != string.Empty)
{
this.Text =
pageTitle.Subst ring(pageTitle. IndexOf("-")+ 1);
}
else
{
this.Text = myDoc.url;
}
}
}
catch
{
this.Text = "PRS";
}

//ADD THESE 2 LINES OF CODE
this.webMain.Do ck = System.Windows. Forms.DockStyle .None;
this.webMain.Do ck = System.Windows. Forms.DockStyle .Fill;
}

--
Shak
(Houston)


"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:A1******** *************** ***********@mic rosoft.com...
Free pizza if you solve the problem!

"Shakir Hussain" wrote:
Mike,

I am investigating your code and able to see your problem. Give me some
time. Will bring up a solution hopefully.

--
Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Hi! Thank you for taking a look. Please navigate to

http://users.adelphia.net/~mikezat/m...pplication.zip

Inside, you'll find the entire C# solution as well as the TestPage.htm
Open the solution and change the url in the form load event to
wherever you place the html file:

private void PRSPopupForm_Lo ad(object sender, System.EventArg s e)
{
this.Browser_Na vigate(@"C:\Doc uments and

Settings\conmxz \Desktop\TestPa ge.htm");
}

The test page contains 2 links. 1 is the one that calls window.open()

without specifying the Left and Top. As you can see, it works great.
The second is the one giving me all the problem in the world. I am pretty
desperate as the alternative is to modify almost 8000 pages.

"Shakir Hussain" wrote:

> Mike,
>
> can you paste the code where you create a new form (after clicking
link) and
> adding browser control?
>
> It will help me to investigate. I believe this problem can be fixed.
>
> Shak
> (Houston)
>
>
> "Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
> news:AC******** *************** ***********@mic rosoft.com...
> > Hi! I posted this question in browser_ctl group as well but got no
> results.
> >
> > I have a form with embedded WebBrowser. Upon clicking on a link
in the
> embedded webbrowser that calls JavaScript's window.open() call where
I pass
> different width, height, top, left and other parameters, I open a
new form
> of the same type as the original.
> >
> > I noticed that the webbrowser in the newly opened form is shifted
to the
> right and bottom leaving gray areas on the left and top of the form.
I > narrowed down the problem to the Top and Left parameters being pass in the
> call to window.open().
> > If I set these parameters = 0, the browser positions itself nicely

within
> the form.
> > If these parameters != 0 , the browser is shifted to the right and

bottom.
> >
> > I figured that I can adjust the layout etc in the
ClientToHostWin dow() > event which seems to fire. However, I have not been able to reposition the
> browser. What can I do ? If I do not fix this, I'll have to spend
months > fixing all 7500+ instances of the window.open() in all web pages. Any > samples on how to do it, please?
> > I am not that great of a C# programmer, so may be somebody can show me > > how to adjust the position of webbrowser within the form, please.
> >
> > I am also open to the idea of taking the browser control and

painting it
> onto a new
> > location. I am open to whatever works as I am pretty desperate.
> >
> >
> >
> >
> > Many Thanks in Advance,
> >
> > --Mike
> >
> >
> >
> > Expand AllCollapse All
>
>
>


Nov 16 '05 #6
Wow! Thank you very much !!!
You are a genious!

I insist you email me your name and address to mi*****@mailina tor.com

I'll treat you with pizza as promissed.

G-d bless,

--Mike Z....
"Shakir Hussain" wrote:
Mike,

Iadded two lines of code (dirty way ofcourse) to get the layout properly in
the 2nd case. Replace this function in the sample you gave to me. It works

private void OnDocumentCompl ete(object pDisp, ref object URL)
{
//Debug.WriteLine ("OnDocumentCom plete");
try
{
// TODO parse the string and get rid off server
HTMLDocument myDoc =(HTMLDocument) this.webMain.Do cument;
if(null!=myDoc)
{
string pageTitle = myDoc.title.Tri m();
if (pageTitle != string.Empty)
{
this.Text =
pageTitle.Subst ring(pageTitle. IndexOf("-")+ 1);
}
else
{
this.Text = myDoc.url;
}
}
}
catch
{
this.Text = "PRS";
}

//ADD THESE 2 LINES OF CODE
this.webMain.Do ck = System.Windows. Forms.DockStyle .None;
this.webMain.Do ck = System.Windows. Forms.DockStyle .Fill;
}

--
Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Hi! Thank you for taking a look. Please navigate to

http://users.adelphia.net/~mikezat/m...pplication.zip

Inside, you'll find the entire C# solution as well as the TestPage.htm
Open the solution and change the url in the form load event to
wherever you place the html file:

private void PRSPopupForm_Lo ad(object sender, System.EventArg s e)
{
this.Browser_Na vigate(@"C:\Doc uments and

Settings\conmxz \Desktop\TestPa ge.htm");
}

The test page contains 2 links. 1 is the one that calls window.open()

without specifying the Left and Top. As you can see, it works great.
The second is the one giving me all the problem in the world. I am pretty

desperate as the alternative is to modify almost 8000 pages.

"Shakir Hussain" wrote:
Mike,

can you paste the code where you create a new form (after clicking link) and adding browser control?

It will help me to investigate. I believe this problem can be fixed.

Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:AC******** *************** ***********@mic rosoft.com...
> Hi! I posted this question in browser_ctl group as well but got no
results.
>
> I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original.
>
> I noticed that the webbrowser in the newly opened form is shifted to the right and bottom leaving gray areas on the left and top of the form. I
narrowed down the problem to the Top and Left parameters being pass in the call to window.open().
> If I set these parameters = 0, the browser positions itself nicely within the form.
> If these parameters != 0 , the browser is shifted to the right and bottom. >
> I figured that I can adjust the layout etc in the ClientToHostWin dow()
event which seems to fire. However, I have not been able to reposition the browser. What can I do ? If I do not fix this, I'll have to spend months
fixing all 7500+ instances of the window.open() in all web pages. Any
samples on how to do it, please?
> I am not that great of a C# programmer, so may be somebody can show me
> how to adjust the position of webbrowser within the form, please.
>
> I am also open to the idea of taking the browser control and painting it onto a new
> location. I am open to whatever works as I am pretty desperate.
>
>
>
>
> Many Thanks in Advance,
>
> --Mike
>
>
>
> Expand AllCollapse All


Nov 16 '05 #7
Mike,

I am glad that your problem is fixed. As i mentioned, its a dirty solution.
I will investigate your code more today and will figure out a better
solution.

Things i observed, after adding that two lines

a) When i press the 2nd link multiple times (pretty fast, which is a rare
case)
your form hangs with the new code.

I have mailed you couple of minutes ago from my office email :)

--
Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:DD******** *************** ***********@mic rosoft.com...
Wow! Thank you very much !!!
You are a genious!

I insist you email me your name and address to mi*****@mailina tor.com

I'll treat you with pizza as promissed.

G-d bless,

--Mike Z....
"Shakir Hussain" wrote:
Mike,

Iadded two lines of code (dirty way ofcourse) to get the layout properly in the 2nd case. Replace this function in the sample you gave to me. It works
private void OnDocumentCompl ete(object pDisp, ref object URL)
{
//Debug.WriteLine ("OnDocumentCom plete");
try
{
// TODO parse the string and get rid off server
HTMLDocument myDoc =(HTMLDocument) this.webMain.Do cument;
if(null!=myDoc)
{
string pageTitle = myDoc.title.Tri m();
if (pageTitle != string.Empty)
{
this.Text =
pageTitle.Subst ring(pageTitle. IndexOf("-")+ 1);
}
else
{
this.Text = myDoc.url;
}
}
}
catch
{
this.Text = "PRS";
}

//ADD THESE 2 LINES OF CODE
this.webMain.Do ck = System.Windows. Forms.DockStyle .None;
this.webMain.Do ck = System.Windows. Forms.DockStyle .Fill;
}

--
Shak
(Houston)
"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Hi! Thank you for taking a look. Please navigate to

http://users.adelphia.net/~mikezat/m...pplication.zip

Inside, you'll find the entire C# solution as well as the TestPage.htm
Open the solution and change the url in the form load event to
wherever you place the html file:

private void PRSPopupForm_Lo ad(object sender, System.EventArg s e)
{
this.Browser_Na vigate(@"C:\Doc uments and

Settings\conmxz \Desktop\TestPa ge.htm");
}

The test page contains 2 links. 1 is the one that calls window.open()

without specifying the Left and Top. As you can see, it works great.
The second is the one giving me all the problem in the world. I am pretty
desperate as the alternative is to modify almost 8000 pages.

"Shakir Hussain" wrote:

> Mike,
>
> can you paste the code where you create a new form (after clicking
link) and
> adding browser control?
>
> It will help me to investigate. I believe this problem can be fixed.
>
> Shak
> (Houston)
>
>
> "Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
> news:AC******** *************** ***********@mic rosoft.com...
> > Hi! I posted this question in browser_ctl group as well but got no
> results.
> >
> > I have a form with embedded WebBrowser. Upon clicking on a link
in the
> embedded webbrowser that calls JavaScript's window.open() call where
I pass
> different width, height, top, left and other parameters, I open a
new form
> of the same type as the original.
> >
> > I noticed that the webbrowser in the newly opened form is shifted
to the
> right and bottom leaving gray areas on the left and top of the form.
I > narrowed down the problem to the Top and Left parameters being pass in the
> call to window.open().
> > If I set these parameters = 0, the browser positions itself nicely

within
> the form.
> > If these parameters != 0 , the browser is shifted to the right and

bottom.
> >
> > I figured that I can adjust the layout etc in the
ClientToHostWin dow() > event which seems to fire. However, I have not been able to reposition the
> browser. What can I do ? If I do not fix this, I'll have to spend
months > fixing all 7500+ instances of the window.open() in all web pages. Any > samples on how to do it, please?
> > I am not that great of a C# programmer, so may be somebody can show me > > how to adjust the position of webbrowser within the form, please.
> >
> > I am also open to the idea of taking the browser control and

painting it
> onto a new
> > location. I am open to whatever works as I am pretty desperate.
> >
> >
> >
> >
> > Many Thanks in Advance,
> >
> > --Mike
> >
> >
> >
> > Expand AllCollapse All
>
>
>


Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1895
by: Duncan Mole | last post by:
Hi, I have created a control which draws a title bar and provides a drop down menu for a Smart Device Application. It seemed to work fine until I came to add an event handler to act on Paint messages in the form which has drawn the control. Evidently, the control is consuming all of these messages. How can I pass them back/on? I have a reference to the owner form but calling Refresh() via this reference isn't helping. Help! Do I need to...
7
1779
by: BradC | last post by:
(VB.NET 2002, Windows app). I'm going to be provided a two-letter string like "BV" or "TP" that represents a location. I then need to perform some actions on several form controls that have names derived from that location. For example: lblBVimp, txtBVsignoff, txtBVsignoffdate, chkBV Now I know i can do a "For Each XXX in myForm.Controls", If XXX.name = blahblahblah,
3
499
by: Charles Law | last post by:
Sorry for reposting this question, but I did not get a single answer last time, and I'm sure you guys must have some thoughts on the matter. I have a user control which can be dragged and dropped onto a form in my application when it is running. I allow it to be clicked and dragged to a new location on the form. However, the user control has a check box on it, and if the user clicks over the checkbox to drag the user control, the check...
9
20158
by: Charles Law | last post by:
I have a form on which user controls are placed at runtime. When a control is added to the form a handler is added for an event that a high-level object raises, which must be handled by the new control. When I close the form I am expecting that the control ceases to be. However, if my object raises the event after the form has been closed, I find that there is still a user control object that handles it. Clearly the user control has not...
0
2458
by: Matthew | last post by:
All, I have searched google and the newsgroups but can't find anything the same as what I am experiencing (though I may have missed something). I have controls (textboxes) within UserControls which are not behaving as I would expect. Specifically, if there is a command button external to the usercontrol which is activated by a shortcut key (eg Alt-B), the command button Click event handler code 'executes' even though the textbox set...
4
3333
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are equally far from the upper, right, left and bottom borders of the form. I understand I must use the location property, am I right?
3
5336
by: Mike Jakes | last post by:
I hope that someone can offer a little advice on this one - I've searched the group but can't find an answer. I think that I'm doing something really stupid or missing something trivial, but see what you can make of this... I have a main form "Events" that contains a tab control. The tab control has 7 pages. The 7th page (named "Boats") contains a subform called "BoatEventssubform". On this sub-form are two combo boxes, named...
0
1902
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers... then taking that date range and finding dates specifiec between them (in a list of dates) and putting snap marks, so if you slide it near one of them it should snap to that tick, but that part i cant figure out. the rest seems ok so far... here...
3
5389
by: steve | last post by:
Hi All I have textboxes within a TableLayoutpanel and I want to be able to position an independant control adjacent to a selected textbox This independent control allows selection of text to insert into the textbox I am having trouble achieving this, see code below, the x position is too far to the right and the y position is close to the bottom of the textbox and I want it to be side by side.
1
3221
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a control that is inside a GroupBox, and that GroupBox is inside another group box. I would like to find the location of the control relative to the form itself. When I examine the Location of the control, it is relative to the containing GroupBox, and the Location of that GroupBox is relative to its containing GroupBox. Only the location of the outermost GroupBox is relative to the edges of the form itself. So, what...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8603
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.