|
rochester_tw wrote:
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Public Shadows Property DropDownStyle() As System.Windows.Forms.ComboBoxStyle
Get
End Get
Set(ByVal Value As ComboBoxStyle)
End Set
End Property
It didn't hit me until this morning, but you made you Shadowed property Public. Change it to Private and it might solve your problem.
RageInTheMachine9532
|
|
|
|
|
I tried it. It actually got more confusion. The property is still available in Intellisense, it calls something that I can't even tell. I assume it calls the property in the parent class, but it doesn't seem to change the behavior of the control.
Thanks for try.
Tao
|
|
|
|
|
I am trying to move from a DataGrid to a new form that presents me with the information selected from the grid for updataing of a record. On the DataGrid I present a name and customer number. From there I can select a specific customer and then want to move to a form where the remaining information is presented to me for that specific customer (ie the 7th row on the grid) and allows me to change the information then return to the grid. I've tried a few things and have been unsuccessful so far.
Thanks in advance, Jim
|
|
|
|
|
How about using a detail form that accepts a customer id as a queryString parameter?
http://localhost/myApp/myDetailForm.aspx?id=xxxx
The detail form could present itself as a data entry form for a new record if the id parameter is not present, or an update form querying the db for data on customer id=xxxx and presenting it.
Then use a TemplateColumn in your datagrid with a data binding expression to construct a hyperlink to the detail form, supplying the id.
Just one idea.
|
|
|
|
|
How can i get a referencing Form object from an handle
to a window?
thanks.
|
|
|
|
|
In simple methods, you can't. Reason being is you can't get a reference to memory that sits outside your process without going thru elaborate means to do it. I remember seeing something similar about three or four years ago in a kind of debugger app, but it involved using a .DLL injected into the target apps process.
What are you looking to do? There may be another method to get it accomplished...
RageInTheMachine9532
|
|
|
|
|
I just want to know all the components of a windows form,
their appearance, their status and all other stuff about
theme.
Can i get the work using Process or Application classes?
thanks.
|
|
|
|
|
Hi everybody.
As a computer science major I've chosen to focus on programming. More specifically, VB.NET and C#. Is this a good place to ask some very basic questions?
Here is my first one:
When writing functions and subs, is there some sort of 'rule of thumb' that says when a separate class should be used instead of simply including it all in one .vb file?
Thanks
Brad
|
|
|
|
|
|
Thanks Michael.
I appreciate the input.
|
|
|
|
|
I want to simulate a CTRL + V combination using keybd_event
keybd_event(17, 0, 0, 0) Ctrl Keydown
keybd_event(Vk_V, 0, 0, 0) V keydown
keybd_event(Vk_V, 0, KEYEVENTF_KEYUP, 0) V keydown
keybd_event(17, 0,ExtKEYEVENTF_KEYUP, 0) Ctrl Down
But it dont work
Can anybody help me in this regard
|
|
|
|
|
The Control key[^] is 11 or VK_CONTROL not 17. Hope this helps.
[edit] Sorry, I just realised 11 is 17 in Hex. It's Friday and my mind's in low gear. If 11 doesn't work try &H11 or just use VK_CONTROL[/edit]
Nic "Sleepy" Rowan
The trouble with apathy these days is nobody cares.
Capital Punishment means never having to say "you again?"
As easy as 3.141592653589793238462643383279502884197169
|
|
|
|
|
Are you sending the paste to a specific app? If so, why not use SendKeys "^V"? It will do the exact same thing...
RageInTheMachine9532
|
|
|
|
|
How can i get the currently active window in VB.Net without
declaring an external user32.dll function and use it?
There's a function i can call directly?
Thanks, Ale.
|
|
|
|
|
I don't know of a Framework call that will do that.
Anyway, what's wrong with calling into Win32?
|
|
|
|
|
What i want to do is a background process getting notified of
system messages, such as WM_APPACTIVATE and get a reference
or an handle of activated process/app.
I had some bad experience with NativeWindow class, i think i've
not completely got all the triks it offers.
Could you suggest any solution?
Thanks.
|
|
|
|
|
OK. First, there is no WM_APPACTIVATE message. The closest match to what your looking for is WM_ACTIVATE. It is sent once to two windows. First, to the window being deactivated, then to the window being activated. The WPARAM part of the message contains the details of the ACTIVATE command and the LPARAM part will contain the handle of the window being activated or deactivated and, strangely enough, CAN BE NULL! Full details on the WM_ACTIVE message are here[^].
Second, the WM_ACTIVATE message is NOT broadcast to the entire system. In order to get your hands on that message your going to have to write a CBT Hook. With this you'll get notified of all Activate, Create, Destroy, Minimize, Maximize, Move, and Size messages going to any window, along with a bunch of other things. I'm saying this because you're hook routine is going to have to pick out the messages you want, do any processing you want, and then send the message down the hook chain quickly and efficiently or else you'll degrade system performance.
The top of the Windows Hooks documentation starts here[^], and the docs for writing a CBTProc hook function are here[^]. If your not familiar with writing Windows Hook functions, it's going to be a bit confusing to read at first. You might want to start with the basics of how Windows Messaging works, and that is here[^].
RageInTheMachine9532
|
|
|
|
|
Just curious, but what is this project doing?
RageInTheMachine9532
|
|
|
|
|
Very, very helpfull.
Thank you very much.
I'm working on a webapp controlling a very old application,
i need to simulate a terminal server session via web browser.
I'm new to .net development, i come from years of java programming.
Just another little question, i start a process and i do the following :
startedProcess = Process.Start(startInfo)
startedProcess.WaitForInputIdle(5000)
Dim name = startedProcess.MainWindowTitle()
Dim mwHandle = startedProcess.MainWindowHandle()
Dim topForm = Form.FromHandle(mwHandle)
topForm is always null.
How can i get a Form object from a window handle?
thanks again.
|
|
|
|
|
hi...i need to display the test in different colors in a RTF..
can u pls help???
lets say i have this text "Beautifull World"
now i want to display this text in such a way so that
"Beau" is in red color
"tifu" is in green
"l World" is in blu color..
onto a rich edit text box...
can someone plese help me???
tks a lot...
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
With RichTextBox1<br />
.SelectionStart = .TextLength<br />
.SelectionColor = Color.Red<br />
.SelectedText = "Beau"<br />
.SelectionColor = Color.Green<br />
.SelectedText = "tifu"<br />
.SelectionColor = Color.Blue<br />
.SelectedText = "l world"<br />
End With
Csharp™ the coder formally known as dynamic
Dim TwinsHaveArrived As String = "twins arrived safely , 17/08/2003 (18:05 & 18:07)"
|
|
|
|
|
You need to encode your string manually with rtf codes as far that I know
The warlord
|
|
|
|
|
hi i prepared a rtf box in my school and it was working well with colors...
now that i came howm the colors are not apprearing..the text is always black...the project is the same that was wroking with colors in school...why are there any colors??can u pls help...
RichTextBox1.SelColor = vbRed<br />
RichTextBox1.Text = "text"
do i need to add anythin to the poroject???
the RTF control is already added...
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40
|
|
|
|
|
Hi all,
I am wondering if is possible to "change" a character in Windows.
In particular, we often use the € char, but we have to push 2 keys ("Alt Gr" + E), but I would like to implement an application running in background (or even a windows service) that catches the key § (for example) and transforms it in € in every window application the user is working with.
Do you think it is possible?
Thanks in advance!
Dave
|
|
|
|
|
Hi all,
I am wondering if is possible to "change" a character in Windows.
In particular, we often use the € char, but we have to push 2 keys ("Alt Gr" + E), but I would like to implement an application running in background (or even a windows service) that catch the key § (for example) and transform it in € in every window application the user is working with.
Do you think it is possible?
Thanks in advance!
Dave
|
|
|
|