Message Boxes not showed [closed] - vb.net

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
net Programmers
I am in a trouble
I want to display messagebox after a while of time
i did this but the problem is that the messagebox appears behind the other windows of the active programs
I want a code that displays the messagebox over all opened windows to make the user see it
and THANKS

You can't set TopMost on a message box. However, you could create your own class/dialog set TopMost to true on it and then use ShowDialog to display it.

Related

If Statement for When button is clicked [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am trying to write an If statement in VBA that is somewhat in this format:
If Button A is clicked
Then
Open a file
End If
I am stuck at the first part where I am not sure how to write the portion for the "If Button A is clicked". Would greatly appreciate any advice on this.
Code
The expected result would be that the file opens when the user presses button A and specifies the location of the file that is to be opened.
A button being clicked is an ephemeral event that happens, not state that you can test with an "if". Set an event handler to call the code when the button is clicked, and don't worry about an "if".

Taskbar in vb.net [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Sorry for my English, but i'm studying it.
My question is this: is possible to create a taskbar like Windows 10 taskbar in vb.net? I'm developing a vb.net OS and i need a taskbar. I would like it to work in such a way as to show an icon for each application (project forms) that are opened by the OS. I've tried using pictureboxes and user controls, but the problem is that I do not know how to add the click event to controls added dynamically to the program.
Thanks to those who will answer, even if you will not be helpful :)
If you mean you want to make OS using VB.Net, I should tell you that is impossible in VB.Net, If you mean you want to make something emulate the OS as Launcher, You can use this codes to get all opened process and other codes to get that's thumbnails
Dim pro() = Process.GetProcesses()
For Each pr As Process In pro
'Your codes goes here
Next
Then you can add processes name with that's thumbnail in database and Refresh it using Background Worker, Then Display it in List View Docked at the bottom, that will emulate the Windows 10 Task bar.

Non-Latin characters in VBA InputBox() [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am using VBA code to get data from user by using InputBox function. I want a user to write in Arabic.
But, when I run it, I found strange characters although I can write in Arabic normally in Excel sheets.
Can anyone help?
Make a custom form, that works as InputBox.
There you would be able to write in any other language than English.
Otherwise you would be getting the ?????????????????????
Simply add a label element for the input and button elements for Ok and Cancel.
In general, this is much better than InputBox, because you can control the TextAlign property, which is different in Arabic than in English.

Macro-assigned button does not work in Excel [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I created a button and I assigned a macro to it. The button does not work, but if I run the macro manually by using the "run" option in the developer tab or if I press the "play" button in the VBA window, everything works perfectly. I do not think that adding the code will be useful.
Regards,
It's possible the macro got "un-assigned".
Right-click the button in design mode, and select "Assign Macro"
Re-assign the macro in the dialog, exit design mode and click the button - it should "just work".

How handle when mouse leaves form during drag and drop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I have my form set up to be able to drop files into a textbox, and also drag the files out of the textbox, thus clearing the textbox. The kicker is that the drag out of the textbox has to be dropped on the form. If I try to drag it outside the form, then it crashes. I would like for the drag and drop to ignore when the mouse is moved outside of the form. Any ideas? Here's the error I get when I drag the file out of the textbox and out of the form:
Invalid FORMATETC structure (Exception from HRESULT: 0x80040064 (DV_E_FORMATETC))
You can keep the cursor inside of the form. Cursor.Clip
MouseDown event:
Cursor.Clip = Me.RectangleToScreen(Me.ClientRectangle)
MouseUp Event:
Cursor.Clip = Nothing