How to use savefiledialog in vb.net -Please help me [duplicate] - vb.net

This question already has an answer here:
How do I use savefiledialog in vb.net
(1 answer)
Closed 9 years ago.
I have a program called TextEditPro and I just started it, I'm running into a problem.
When I had the code for clicking Save As... I don't know how to use the savefiledialog so when you click Save As it will pop up!
Any help?
Thanks!

Look at the code in http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/ec63bda3-cb9f-438f-8d3d-43eb858299aa. I hope it helps. The code works.

Related

can't get vba to show code for all buttons [duplicate]

This question already has an answer here:
How to view code for all subs in a module at the same time
(1 answer)
Closed 6 months ago.
Working in VBA in Access
In one of my databases "General" in the drop down shows the code for all buttons.
For some reason this database does not, and I have to manually select each button... ie RunFDE, RunQP1
Not sure how to fix it.
Want to see code for all buttons at the same time.
Figured it out.
Bottom left has Procedure View and Full Module View.
Full Module View is what I want.

How it's allowed to access instance method by class name? [duplicate]

This question already has answers here:
Why is there a default instance of every form in VB.Net but not in C#?
(2 answers)
Closed 2 years ago.
In VB.NET, I can have multiple forms and show one from the another by using the following code:
Form2.Show() ' Form2 is the class name itself!! not an instance..
How it that allowed?
Your project uses a Forms object in a namespace called My. In there, Visual Basic creates default instances of the forms:
https://learn.microsoft.com/en-us/dotnet/visual-basic/developing-apps/development-with-my/default-object-instances-provided-by-my-forms-and-my-webservices
This seems to be happening somewhere behind the scenes. I have not been able to locate a file in my project where this is happening, but I see My.Forms being used in my executable.

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".

Show form without losing focus [duplicate]

This question already has answers here:
Show a Form without stealing focus?
(19 answers)
Closed 6 years ago.
I've created a small form that acts like the office notifications (fades in\out above the notification icon tray)
I'm having problems showing this form, I want to display it without the focus being taken from my main application (or any other form), I've managed to get the attached code doing roughly this, (using Me.Activate to take back focus) But this isn't great - focus switches for an instant plus I want to show the form from various areas in my application...
Dim frm2 As New frmNotification()
frm2.TopMost = True
frm2.Show()
Me.Activate()
Any Ideas?
A similar question has been answered here.
Show a Form without stealing focus?
The code is in c#, let me know if you need help in converting it to vb.net. Sorry for the delay.

How to update 'title in jQuery UI Dialog? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
jQuery ui dialog change title after load-callback
I like to change the title from an UI Dialog after I have submitted a form in this UI Dialog. So in the callback-function after load I should suggest, but I've tried and googled without result.
The option method will change a dialog's properties after the dialog is created.
Therefore, you can write
$(whatever).dialog('option', 'title', 'New Title');
you can also use this, before open it
$("#YourContainer").data('title.dialog', ' I am the new title');