Setting cancel to any nonzero value prevents the form from being removed. So, your else clause becomes
Else
Call setf
Cancel = 1
End If
End Sub
Best wishes,
tootired (Jonathan Clarke)
Is this for real? In which case, start by adding some electronics to measure the temperature.
Or is it a wind-up? In which case, I want to know how to use the chip to detect excessive sweating on behalf of the user (either by smell or by moisture content on the keyboard).
Time for me to go...
You can do this by intercepting EN_SETFOCUS and calling SetFocus() for another control ...
void MyDialog::OnSetfocusNoEntryItem()
{
GetDlgItem( IDC_ANOTHERITEM )->SetFocus();
}
An alternative would have been to use a text label rather than an edit box, though changing the value in the...
No-one has mentioned how the compiled code runs on a target machine. My experience is that "runs" is the wrong word - it takes A LONNNNNNNG time to load the program. For this reason, I'm sticking to VC6 until running .Net programs is a bit more straight-forward.
Happy New Year...
I think we're answering different questions! My reading of the original question is that we don't want to sort the whole array - we want to find the minimum value in the third column, and then return the corresponding values in the first two columns.
The example given is that the...
No need to convert to a one-dimensional array, surely. Plus that might obscure the purpose of the array.
Here's a simple treatment.
int myarray[ NOROWS ][ NOCOLS ];
getvalues( int* p1, int* p2 )
{
int row, returnrow, minvalue;
row = 0;
*p1 = myarray[ row ][ 0 ];
*p2 = myarray[ row ][ 1 ]...
Hi everyone,
I'm stuck trying to get a Console application to behave consistently. Specifically, I can't get calls to SetConsoleWindowInfo to produce a window that is always the right size on the screen - every now and then it comes up much smaller than I want, with scrollbars to move around...
Hi,
Seems to me that txtIncumbent.Text will be BOTH the contact_id and the name. So you can use e.g. Mid( txtIncumbent.Text, 1, 8 ) if you know that the contact_id is 8 characters long.
If the id is variable length, use a delimiter (space, colon - whatever looks good and cannot appear in the...
Hi,
I don't get the problem you describe. I have to be careful with the format AND length (padding the lenght with underscores) but it is not sensitive to WHERE the drop is done.
Here is my code ...
Private Sub MaskEdBox1_OLEDragDrop(Data As MSMask.DataObject, Effect As Long, Button As...
Hmm. Maybe the URL hacking is not going to work!
Thinking about your original SendKeys approach, it seems practical to me. I write a VB form with a WebBrowser control in it, and write code as follows. It is delicate code - the precise number of tabs (32 in the example below) will vary as the...
Here is a worked example!
The BBC website (I pay my licence fee, so I feel allowed to abuse it!) has a search form including the following bits of HTML
<form name="toolform" action="/cgi-bin/search/results.pl">
<input type="text" name="q">
So we can put...
HTML is not a particularly bad learning curve, so you shouldn't be too scared if you need to start on it.
The submit URL will be of the form http://server/program?arg1=val1&arg2=val2
"http:" becomes https: if the website is secure
"server" will be the website...
HTML Frames - I do love 'em!
You're seeing the FrameSet, which includes src="./fred_index.html" which is probably the actual page. To see the HTML page with the form, right-mouse click on the form and view source. That should be more helpful.
I also respect the issues about not...
Are you sure about this?
If the form displayed is a Java applet, then I could understand it, but (thankfully) that is getting uncommon. If it is HTML then you should be able to see everything. For instance, View-Source tells me that the box in which I am typing this is called "post" -...
Hi,
Are you sure that you can't construct the URL for the COMPLETED form and send it off to the website? I have used this technique in the past - sometimes it is just a matter of studying the names of textboxes and the action that is called by the submit button and/or looking at the URL when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.