Can't Coordinate Dialog That Accepts Password To The Form That Requires It Before Functioning
Mar 29, 2012
i cant coordinate my dialog that accepts a password to my form that requires it before its command.
Heres the code for the Dialog:
Imports System.Windows.Forms
Public Class ReqPassword
Public correctPW As Boolean
[Code].....
after the dialog reqpassword has closed, the textbox doesnt show my retrieved values.
View 7 Replies
ADVERTISEMENT
May 8, 2009
I am using this statement
CODE:
The command procedure calls a Java program that opens a dialog box, the cmd and java exe shows up in task manager, so I know it is being called, but no dialog box. I know normally having anything show up on a server that requires user interaction is a bad idea, but in the case, the users remote into the server to do their work. (They have to because of the environment) So, there is no problem with them being able to respond to a dialog box. I just need it to show up.
(I cannot rewrite the Java program as the latest source is not the right version) Running, Framework 2.0, 3.5.
View 7 Replies
Jul 7, 2010
I need to map a network drive from within a .NET application. I'm going to need to use an AD Username and Password to authenticate. Usually I just use a batch file with the net use command. How do I do this from within C# or VB.NET code?
View 4 Replies
Sep 18, 2011
I am currently making a 2d game where a spaceship flies around a 2d map.Currently, I am moving the ship with keys, but would like to implement mouse clicking as well.I am wanting to enter an x and y coordinate and have the ship move to that coordinate.
These are my variables:
PlayerFacingAngle, PlayerPositionX, PlayerPositionY, PlayerVelocityX and PlayerVelocityY
View 3 Replies
Aug 19, 2010
I want to know how can we determine the world coordinates (x,y,z) when our mouse moves in the viewport. I am using vb.net to make a directx application.
View 4 Replies
Dec 22, 2009
I often use the process of displaying a dialog from a form, with the dialog user input then used to update the main form without any problem. In a new scenerio I launch the main application screen, I then show a login dialog ontop of the main app screen and can launch another dialog from the login if a new user is required. The plan is to update the login dialog (updating a combobox to reflect the addition of a new user) from the new user dialog.
See code below :-
'Update login forms user list as new user added successfully
frmRoomBookingLogin.cboLogin.DataSource = Nothing
frmRoomBookingLogin.txtPassword.Text = "Updating password from dialog"
MessageBox.Show("The password text is " & frmRoomBookingLogin.txtPassword.Text)
[code]....
The messagebox implies the dialog has been updated yet the text does not change. Is it possible to update the dialog when using a setup such as Form -> dialog -> dialog? I'm intrigued as why the dialog does not reflect changes. I have never refreshed/repainted the dialog as never required to in my other examples when updating a form from a dialog and never encountered a problem when using a two tier form setup.
View 2 Replies
Nov 16, 2010
I have managed to develop a form which allows me to add a record to an access database using Adonet. The last few fields added are populated when i place the mouse over a floor plan image on the form (provide geographical location) and capture the x y coordinate. Prob im having is how on another form i get the points to automatically re-draw on a form with the same content (floor plan on it. I can obviously retrieve the data set using a data adapter/data table just cant make it draw on top of the graphic automatically.
View 1 Replies
Jan 15, 2012
I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this:
1 - User enters invalid current password
2 - New passwords do not match
3 - User's account is locked
4 - User cannot authenticate because password is expired
It's case 4 that I'm struggling with, because their is no way for me to take the password the user entered and verify it against active directory without getting an error.
View 5 Replies
Oct 6, 2010
I'm trying to create a form that accepts names (or any strings) as input and stores them in a object. See attached form sample.Form Image:
Operations: ï Initially the NumericUpDown object on the form should be disabled.The user enters a value (string) in the textbox and clicks the Add button or presses the Enter key to activate that button.The application then stores that name in a List object, and displays the last entry in the Label underneath.The NumericUpDown should become enable after the first entry. The user should be able to move between all the values entered using NumericUpDown.
View 7 Replies
Mar 3, 2009
Right, I'm making a program where the user enters a number in both boxes which is between -10 and +10, and when they press the = button, it adds the two numbers together. If the user enters a number which is not between -10 and +10, an error message appears which warns the user of this.At the moment, it's not quite working for me. If I enter a number outside of this range in either or both of the boxes, it brings up a warning box, but once I click 'OK' in that window, another window is brought up with the answer to the calculation.In fact, even if I enter a number which is between -10 and +10, the error message still appears when I click on the '=' button and then the other window has the answer to the calculation.[code]
View 12 Replies
Mar 27, 2010
ok This is my code inside timer1
Dim rand As New Random
Dim rand1, rand2 As String
Dim first, last As String
[code].....
View 7 Replies
Aug 20, 2011
I have my own control which inherit System.Windows.Forms.Control The only functionality that this control requires is the capability of losing and gaining focus. I learned this requires the control style of selectable to be applied which is descriptive as exactly what I'm in need of, "If true, the control can receive focus.".
However after applying this style in my code, the control still refuses to have anything to do with gaining or losing focus. Other styles I have applied to this particular control are as fallowed
UserPaint, AllPaintingInWmPaint, and SupportsTransparentBackColor. I'm not sure but perhaps one of these other styles interferes with the one that's not working properly.
View 2 Replies
Feb 9, 2011
First of all i want to say i feel very rude as my current posts only consist of me asking questions and never posting to give answers. im still learning and do not want to give people diff advice and sending them down the wrong path.I am doing an assignment for my vb.net course and im having a problem with tabcontrol. I originally didnt do my code inside a tab control. Then i had to copy all the code and button etc over to the tab control then the code completely stopped working. I copied the code then deleted it and pasted it back into my project and it worked again. But it seems everytime i restart my laptop the code stops functioning and i need to copy delete then paste to get it working again!I need to hand this assignment in shortly and i dont want to if my code is working intermittantly..
View 5 Replies
May 2, 2011
I have created a 2008 Visual Basic.NET application I'm using on Windows 7 that requires elevation. In myapplication I used the UAC manifest in VS 2008 to makere elevation. that works fine with a regular 2008 VB.NET form and will remember the form postion.On my application (really just a form) that requires elevation it will not save the position and always starts in the upper left of the screenDoes anyone know a way around this on an application created that requires elevation
View 2 Replies
May 8, 2012
My code requires the webbrowser to be up so I can sendkeys something onto a website form. For some reason, changing the attribute doesn't work with this website. When I'm doing other task, such as web browsing or something else, the following code works occassionally.
AppActivate("xyz")
WebBrowser1.Focus()
Is it possible to sendkeys to a website form in the background? This would be the ideal solution. What other command do I need to consistently pull up my application into the foreground?
View 2 Replies
Aug 7, 2009
I'm having an interesting issue that I can't reproduce on a different project, but can consistently on this one. I have no clue what might be causing it, but am hoping that someone may have seen it before.
I have a main form, from which I run a series of checks. On this form, I have a listview control. Because of some issues with the refreshing of this listview control, I had to create my own messagebox. It's just a form that displays some text ( it also happens to look nicer than MsgBox; in my opinion, anyways ). It's been working great for months, until recently.
My problem is that on my main form's load event, I run this check, which returns an error within a try/catch block. I then call my custom messagebox with a message. It in turns calls it's ShowDialog() function.
In any other situation ( after the main form has been loaded ), I have no problems. The messagebox goes on the screen and behaves appropriately ( ie: waits for my input and acts as a modal dialog ( stops execution of my main form's thread ) ). However, on this onload event, my messagebox comes up and goes away almost immediately afterwards.
I've traced it all the way to the showdialog() call. For no explicable reason, it appears to skip right over this call, without me doing anything on the form.
Here's what the inner trace looks like ( when I put a breakpoint on the onclosing event for this messagebox form ):
CODE:
View 10 Replies
Feb 3, 2010
I want to be able to check if there is currently a dialog or modal form shown for my form so that I can close it.
Is there a way to do this?
View 1 Replies
Jan 26, 2010
I'm new in .Net and I have an application with windows form "LOGIN" When users enter the user and password and click "ok", then if user passes validation then I have the code Show(MDIMainMenu) (I'm trying to open an mdi form), but I receive the following error: "Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling Show. Error Number 5"
[Code]...
View 2 Replies
Mar 2, 2009
My project has a single dataset with about 6 datatables. Each of those datatables has a TableAdapater and a Bindingsource on the main form (due to various databound controls).
Now, I want to have a second form for adding a new record. If I bind the controls to the datasource it creates new TableAdapaters and new Bindingsources on that form. I was wondering if it's possible to simply use the ones from the main form instead like this
[code...]
View 3 Replies
Mar 25, 2010
im trying to do where the main form is a login form if the USer and password matches that in the code it goes to the main screen if it doesent it launches a form saying this user and or password is incorrect and when you click ok it closes that message window as well as the login form stop the program from launching is has to match the user and password from the text on text box one and masked textbox 1.
View 3 Replies
Aug 4, 2009
How can i create a form dialog. I mean when that form show, then i click to other form, form dialog still show and behave like a dialog.( when lost focus , dialog alway focus).
View 2 Replies
Apr 2, 2010
Whenever you have a messagebox, it grabs attention from your main window and doesn't let you click back into your form until you hit okay.I want to make a form that does kind of the same thing. I have this for that shows download progress and I don't want the user to be able to click back into the main form until the download form is finished.
View 4 Replies
Feb 1, 2009
Public Class frmStudentScores
Private Sub btnAddStudent_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddStudent.Click
[code]....
The Form that I'm trying to get to Display as a Dialog box is AddNewStudent1 but I keep getting an error that says AddNewStudent1 is not defined.
View 3 Replies
Apr 22, 2009
[code]...
The Form that I'm trying to get to Display as a Dialog box is AddNewStudent1 but I keep getting an error that says AddNewStudent1 is not defined.
View 12 Replies
Oct 14, 2009
when I compile the dialog do not have the picture on it...here is the classfile data Tier
Public Class ChemistryDataTier
Private aDataSet As chemistryDataSet
Private aTableAdapter As chemistryDataSetTableAdapters.ChemistryTableTableAdapter
Public Function getChemistryData() As chemistryDataSet
[code]....
View 1 Replies
Jan 21, 2011
I am using VB.Net 2010. I have two dialog forms open at once. the form that does not have focus I am trying to close and reopen to show the value changes. Below is what I have.
[code]...
the form associated with f never closes, however does open with the new values. I have tried Application.DoEvents and that hasn't worked.
View 11 Replies
Jan 22, 2011
I have a borderless form displayed as a progress object. This is displayed via childform.show().
I'm overriding CS_DROPSHADOW to give it the shadow (pictured), when the form loses focus (parent clicked or another formapplication) the shadow is lost.
How can I keep the form focusedselected similar to a modal form? (I cannot use showdialog due this being called from various threads other than UI) Using Me.TopMost = True works, but obviously puts the form above all others rather than just the parent.
View 1 Replies
Jun 2, 2010
At one point I have a dialog form open, but in order to process it, the user might want to access information on other (open) forms. This would necessitate the ability to move/resize/scroll the other forms, but obviously everything is frozen during the dialog. I don't suppose it's possible to achieve this "semi-modal" state, where other forms can be browsed, but no other actions taken?
View 5 Replies
Sep 16, 2009
I has 4 form
1. Main.vb (IsMdiContainer = T)
2. Form1.vb (has textbox1 , Button1)
3. Form2.vb (Has button1)
4. Form3.vb ( has textbox1, button1)
i start with Main.vb, and show Form1.vb (
code :
dim frm1 as new Form1
frm1.MdiParent = Me
frm1.show()
at Frm1 i has 1 textbox (textbox1) and button1, if i clickk button1, form2 show with dialogform
at button1 click
form2.showdialog()
in form2, i has button1 if i click, form3 show with dialogform too
code
form3.showdialog()
in form3 i has textbox1. and button
if i clock button1. i'll put textbox1 value into form 1 textbox.
code : at button1 click.
form1.textbox1.text = me.textbox1.text
but the textbox1 in form1 not has value ?
View 2 Replies
Aug 14, 2009
Is there a way to pass variables into a form that is shown as a dialog?Dim frmCreateCSVFile As New CreateCSVFile Dim returnValue As DialogResultreturnValue = frmCreateCSVFile.ShowDialog()
It doesn't seem to find the variables when I use the form name.
dtpFirstEndDate.Value = ControlChartsCSV.dtpFirstEndDate.Value
dtpLastEndDate.Value = ControlChartsCSV.dtpLastEndDate.Value
View 4 Replies