|
Hmmm your message suffered badly in translation and you question is very unclear.
Fact: VB6 is no longer supported and has not be for more than a decade. Most of us have moved on from that language.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
hi
i Subclass a Window ( other app ) and Create Button inside it but not receive any message even wm_command , when use tab not get focus
|
|
|
|
|
Your quesiton isn't answerable as is. All of the important information is missing.
Show the code you used to create this window and button. And what do you mean by "other app"?
|
|
|
|
|
Subclass The InputBox ( Not Create Window ) And Create Button
hwndBtn=CreateWindowEx(0,"Button","",WS_CHILD Or WS_VISIBLE,300,60,49,26,hwnd,IDC_BTN3,0,0)
So Created In Window But Not Recieve Any Message Example Not Get Focus
i used follwing document also
WS_TABSTOP0x00010000L : The window is a control that can receive the keyboard focus when the user presses the TAB key.
InputBox Have 2 Buttons , 1 Static And 1 Edit Control
i Created another button inside it behind the button(cancel)
My Friends I ve created button !!!!
see third case
Select Case WM_COMMAND
Case 1 ' IDOK
SetWindowTexta hwnd,"ok"
Case 2 ' IDCANCEL
SetWindowTexta hwnd,"Cancel"
Case IDC_BTN3 ' <--- Does Not Work
SetWindowTexta hwnd,"New BTN"
End Select
***Note :
when hook and subclass the inputbox I did not recieve WM_INITDIALOG so that i can Put the createButton Code finally put the code in WM_SHOWWINDOW to create it
modified 6-Oct-19 12:08pm.
|
|
|
|
|
A single line of code does not explain anything at all. There are many places where you could put that and it would not work. Please edit your original question and add some proper details.
|
|
|
|
|
This is clear , the Button not recieve any message from its parent and my question and problem clearly specified maybe somebody did it and can help me
|
|
|
|
|
No, your problem is not clearly specified, and we have no idea where that CreateWindowEx call is going, or how the parent is sending messages to it.
|
|
|
|
|
As per your comment if button or any control create with CreateWindowEx function through Hooking-Subclasong , that button never get focus and needs Buttonproc ?
|
|
|
|
|
I have used similar calls many times without problems.
|
|
|
|
|
So Why third Case in mentiond code ( Case IDC_BTN3 ) Has not any reflect , Example if push Button "Ok" Or "Cancel" the Window Closed
|
|
|
|
|
You re right With WS_TABSTOP Get Keyvboard Focus and with SetWindowpos Can Change the Tab Order For Apply Command For Created button I Used Following
case WM_COMMAND
if lparam=hbtn Then SetwindowTexta hwnd,"Clicked Me"
Select Case wparam
Case 1
Case 2
End Select
|
|
|
|
|
I installed Visual Studio SSDT fro Business Intelligence purpose. For first 2 days it was running fine and suddenly it started giving me an error.
Error is:
TITLE: Microsoft Visual Studio
------------------------------
Cannot load the component 'Microsoft.AnalysisServices.Database'.
Make sure that the product is installed properly.
------------------------------
ADDITIONAL INFORMATION:
Cannot load the component 'Microsoft.AnalysisServices.Database'.
Make sure that the product is installed properly. (Microsoft.DataWarehouse.VsIntegration)
------------------------------
BUTTONS:
OK
------------------------------
I am unaware of what happened but how can I fix this.
Bhrigwish Parekh
|
|
|
|
|
Error states: Make sure that the product is installed properly. Run the installer again (without uninstalling it ofc).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Good day friends!
I don't know the right words to use cos I have no idea of the name this could be called.
Am trying to write a program in .Net language (VB or C# to be specific) that can I use to control a small car i.e when I click on start, the car should move so on and so forth.
I know this is a broad question so what I want is to know the right keywords to use when searching on google, relevant links and videos if possible.
In a short form, I want to build my own hardware device then control it from my own designed application.
Thanks!
|
|
|
|
|
Remote Control may be what you are looking for possibly wireless remote control . I would look at the hardware you are going to use first and worry about the control mechanism after you have decided what hardware you are going to use.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
To be precise, I bought the electronics components and run the connection myself and is working fine when I switched it on. But I want to control this device via programming either in VB.net or c#. Thanks for your reply!
|
|
|
|
|
... and how is your Hardware connected to your system (PC) ?
Serial-Port, EtherNet, USB, something complete different ?
|
|
|
|
|
Thanks. This exactly what I want to. How can I connect the hardware to the PC for instance if am using USB port i.e how would I make the system know that the device is been plugged?
|
|
|
|
|
Let's start from the beginning ...
Your answers and information aren't useful - what do your have exactly at the moment ? Please note : as better your description is and the information YOU give to us ... as better the answer could be ...
|
|
|
|
|
|
Which grid is faster than for loading 7000 records in vb.net?
1.Jgrid
2.DataTable
3.Flexigrid
|
|
|
|
|
|
A datatable isn't a grid; fastest load/display is with a virtualized datagridview. Examples can be found on MSDN.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I would like to read the properties of a file on the desktop. However, I do not have the filename but only the location points. Properties of the file with the points X = 500 Y = 320. Can anyone help me how I could do that.
Tooli
|
|
|
|
|
Had a problem hoping you can help
An external program sends via OutputDebugString messages that I can read correctly with the program Dbgview.exe.
But would like to further process these messages, if possible read the same in VB.net. eg to display these messages in a text or label field.
Could someone give me food for thought as I do that.
|
|
|
|