Group, Today I learned with `Me.Cursor = Cursors.WaitCursor` and `Me.Cursor = Cursors.Default` do. I've seen other programs, when running, a "message box" comes up and let's the user know what in the routine is happening. If it's possible to do in VB.net, I'd like to do the same thing. However I know I don't want to use a true MessageBox as I don't want the user to have to click OK each time. But it would be nice for them to see each "stage" of the progress being made. Is that possible? If so, how is this done. Can you …

Member Avatar
Member Avatar
+0 forum 5

Hello!! So I just started moving over from Java to C++ and am having problems. All I am trying to do is make a simple MessageBox and when I try to run this code: #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ MessageBox(NULL, L"Hello World!", L"Hello World program", MB_ICONEXCLAMATION | MB_OK); return 0; } it just gives me this error: main.cpp:7:39: error: cannot convert ‘const wchar_t*’ to ‘LPCSTR {aka const char*}’ for argument ‘2’ to ‘int MessageBoxA(HWND, LPCSTR, LPCSTR, UINT)’ MB_ICONEXCLAMATION | MB_OK); ^` Any ideas why it might be broke? Thank you!!

Member Avatar
Member Avatar
+0 forum 3

I have a messagebox to display a error message from code behind, when i click ok on the message box, the parent window gets a postback. The parent window consists of Jquery code. Any solution for this issue ?

Member Avatar
Member Avatar
+0 forum 1

![menu3](/attachments/large/3/menu3.jpg "menu3") MessageBox.Show("COSTUMER" & vbCrLf & TextBox1.Text & "QUANTITY" & " " & vbCrLf & TextBox2.Text & TextBox3.Text & TextBox4.Text & TextBox5.Text & TextBox6.Text & TextBox7.Text & TextBox8.Text & TextBox9.Text & TextBox10.Text & TextBox11.Text & TextBox12.Text & TextBox13.Text & TextBox14.Text & TextBox15.Text & " " & "Description" & vbCrLf & Checkbox1.Checked) I want the output in the message box to appear just like the picture on top using the code I posted but it seems that there's something wrong with it

Member Avatar
Member Avatar
+0 forum 2

Public Class Form1 Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Checkbox1.CheckedChanged If Checkbox1.Checked Then TextBox2.Visible = True Else TextBox2.Visible = False End Sub Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged If CheckBox2.Checked Then TextBox3.Visible = True Else TextBox3.Visible = False End Sub Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged If CheckBox3.Checked Then TextBox4.Visible = True Else TextBox4.Visible = False End Sub Private Sub CheckBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox4.CheckedChanged If CheckBox4.Checked Then TextBox5.Visible = True Else TextBox5.Visible = False End Sub Private …

Member Avatar
Member Avatar
+0 forum 3

I borrowed this from C#, where you can easily send output, that normally goes to the ugly black console window, to a nice looking Windows MessageBox with an OK button to close after you read your results. You can accumulate your output in a string to send to one message box, or even use different message boxes. Experiment with it![code]// use a message box to display console output // compile as GUI // tested with Pelles C vegaseat 15jun2007 #include <windows.h> #include <string.h> #include <stdlib.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { char output[1000]; char st[20]; …

Member Avatar
Member Avatar
+0 forum 2

This is my first time to do visual basic program Please help me about this problem... When I run the program with maximum attempt of 3 with correct username and password, Illegal user will pop up,,,i really dont know what to do..illegal user must be pop up when i already attempt " try again " then another "3attempt" then the username or password are wrong....pls help me [CODE] Imports System.Data.OleDb Public Class SignIn Dim ctr As Integer = 0 Dim crr As Integer = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ctr += 1 …

Member Avatar
Member Avatar
+0 forum 3

Hi, I'm having a little trouble about message box, Since the website has been deployed in the IIS, the msgbox won't work anymore, Now I need a new alternative to create a message box that could also have a validation, something like if msgbox("do you want to save this?", msgbox.yesno) = msgbox.yes then 'do some code end if Can anyone help me with this, thanks

Member Avatar
Member Avatar
+0 forum 3

Hello ! i m developing a application i want that my notification form will pop up just like messengers , anti virus , and other applications forms pop from right bottom of the screen what can i do for it , i m using this code for it [CODE] Me.Location = New Point(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height - Me.Height) [/CODE] but its not working :( Please guide me , Thanks in advance Regards M.Waqas Aslam

Member Avatar
Member Avatar
+0 forum 8

How do I create a message box that lets me display a variable? I also need to know how to display variables with text. Here is the code in the switch(message) statement that I have at the moment that doesn't work. [CODE] case WM_CREATE: CreateWindow( TEXT("button"), TEXT("Click"), WS_VISIBLE | WS_CHILD | WS_BORDER, 10, 30, 55, 20, hwnd, (HMENU) 1, NULL, NULL ); break; case WM_COMMAND: if(LOWORD(wParam) == 1){ money--; //this has already been declared at 50. MessageBox(hwnd, money, "New money value", MB_OK); //also tried money.toString() but that doesn't work either. } break;[/CODE]

Member Avatar
Member Avatar
+0 forum 4

I need to output all the student information (name, student no, gender, course) and the charges (registration fee, athletic fee, medical and dental fee, IT infrastructure Fee, Library Fee, Supplementary Fee) in a messagebox with a process menu option. How do I do it? Where should I put the messagebox.show and how do i make a process menu option? I have an attachment for your reference.

Member Avatar
Member Avatar
-1 forum 1

Hi guys I encounter an error everytime I run my recursion program which contains a messagebox. Here is the error: The name 'MessageBox' does not exist in the current context and here is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication10 { class Program { static void Main(string[] args) { string [] fruits = {"apple", "mango", "banana"}; foreach(string fruit in fruits) { MessageBox.Show("apple"); } } } } [/CODE]

Member Avatar
Member Avatar
+0 forum 1

Hi Everyone! I am here by to ask help on enhancing messageboxs. How is the way to Display a picture(like a JPG file) inside a messagebox along with text when a button is clicked? Any Suggestions would be appreciated. Thank You!

Member Avatar
Member Avatar
+0 forum 9

Hi.Im working on an ASP.NET website.In this application there are some local functions and a call to an external C# exe.Every thing works fine if I use a msgbox control before this form redirects to the output page.If I dont use this msgbox before redirecting, the output is different than expected. More Info:-This C# exe creates a .txt file in a folder and the redirected page just reads that txt file. Question why the output is different with and without using just a msgbox.

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm almost done with my coding and I'm trying to implement blocking the user from putting anything but numbers into one textbox and then autocaps'n everything put into another. I've been looking through the web and can't find anything to point me in the right direction. Also, I can't figure out how to add an int to a string in a messagebox. my code that I have is: [CODE]Convert.ToString(totalScore); finalMessage = (""); //Displays the users final score along with a finished message. MessageBox.Show(finalMessage.ToString(), "Question 10/10", MessageBoxButtons.OK, MessageBoxIcon.Information); [/CODE] or at least thats what im trying now, originally it was …

Member Avatar
Member Avatar
+0 forum 5

Hello, I have a datagrid and I want to delete selected row from that grid. It is working fine upto this. but I want to add some advance functioning with msgbox YES-No buttons. If user select some row and click on delete button, A msgbox with YES/No options appears. If user clicks YES, row should be deleted but if No is clicked then that row should not be deleted. I have tried it many ways, but failed to achieve goal. Your help on this would be appreciable.. Thanks Below is the code: view source print? [CODE] Private Sub btnDeleteSitting_Click(ByVal sender …

Member Avatar
Member Avatar
+0 forum 2

I am trying to open two different forms depending on if I click yes or no from a message box. The code runs but both yes and no open the same form. Is it possible to open two different forms? My code is posted below. Both open Form3 when clicked. Thanks mbrown686886 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox("Nickname?", MsgBoxStyle.YesNo) 'This code will open the Form3 If MsgBoxResult.Yes Then Form3 = Nothing Form3.Show() 'This code will open the Form9 ElseIf MsgBoxResult.No Then Form9 = Nothing Form9.Show() End If End Sub

Member Avatar
Member Avatar
+0 forum 2

hi there, does anybody know how to create a user input message box in C# thanxxx

Member Avatar
Member Avatar
+0 forum 7

Visual C++ is an absolutely big environment. Currently, I'm working on windows forms applications. I tried to search for tutorials but the only thing I found was scattered information in MSDN Microsoft website. How is it possible to learn windows forms separately?Is there a book out there? Anyway, I'm going to stick to the point. I've tried this code to show a message but it does not give any sound [CODE]MessageBox::Show("string")[/CODE] Also what is the code for error messages and ho do I specify their icons Thank you all in advance

Member Avatar
Member Avatar
+0 forum 3

Dear Sir/Madam I have a program where I have used a small form as Input / Message Box in place of VB’s InputBox / MsgBox in a click event procedure i.e CmdSave_Click(). Though the code lines are executing in that procedure at a time, the global variable GblBox is not getting the value 1 for executing SaveRecord procedure, which is passing by the FrmMsgBox(a form)’s CmdOK button. So, can I hold/pause the code lines of Form1 from line no. 6 to 9 till passing the global variable’s value as like as InputBox. Or is there another way to solve. Please, …

Member Avatar
Member Avatar
+0 forum 6

hi..i just want to make a messagebox that has an image in but i couldn't find the way. it tried to make a bitmap of the image and put it on the messagebox like MessageBox.Show(image); but it was wrong...any ideas???

Member Avatar
Member Avatar
+0 forum 4

The End.