Preventing Form2 From Moving?

Jun 28, 2010

I have 2 forms. Form1 and Form2 When the user calls for a new record to be created, Form2 shows modally centered in form1. I have disabled the control box and need to stop the form from being moved by the mouse. I do not see (Movable) in the properties list.

View 3 Replies


ADVERTISEMENT

VS 2005 Preventing Buttons From Moving?

Mar 9, 2010

I have a win app with some buttons. Whenever I run the app, the buttons move away from their default location. Is there a way to fix the button in one location.

View 2 Replies

Requery Form Value After Moving Focus Back From Form2?

Jan 6, 2011

I have Form1 based on Table1 with unique records per employee/position. Form1 is used to updated position dates/active status/add new position info for an employee. I have Form2 based on Table2 which has unique record per employee. On Form1, I have a combo box to select which employee's records to view in the detail section. If I select a record from the combo box, the detail displays any existing records from Table1 for that employee. If I need to add a new employee, a command button opens Form2 where new employee is added to Table2, and a new record is also inserted into Table1 with the employee name and ID. When I close Form2 and return focus to Form1, my combo box is refreshed to display the employee just added, however I can't get the detail to show the new, partial record from Table1 for the new employee. Form2 is a stand-alone (not a subform on Form1).I've tried hooking Requery to OnGotFocus, but that either doesn't work or isn't activated by returning focus via code. I've tried adding a text box to the detail that contains the unique EmployeeNum and setting the control source of the text box to cboEE.Column(1) (which is the EmployeeNum bound column). Am back to trying to do stuff in code after long absence and
now feel lost in all the variations I've tried.

View 1 Replies

Pass Data From Form2 To Form1 When Form2 Is Closing

Nov 29, 2009

Last one day I could not manage to pass data from one form2 other form.

When I am opening Form2 from Form1, I can pass data from Form1 to Form2.

When I am closing Form2, I want to pass data from Form2 to Form1 which is still open when I close form2.

I try to use shared textbox, but I understand that this is nt supported.

View 11 Replies

Call Menu From Form2 To Form1 Like VB 6 Do "Me.PopupMenu Form2.mymenu"?

Dec 15, 2009

I have 2 forms. On form1 i have listview on form2 i have menu. I'd like to call form2 menu from Form1 ListView1_MouseUp. I tryed to use this code

[Code]...

View 3 Replies

Pass The Selected Rows Of A Datagridview Of Form2 To The Datagridview Of The Form2?

Feb 15, 2012

In my scenario when i press the "Get Book Details " of the Form1 , it will redirect to the Form2 , in the form load of Form2 a datagridview is filled with values along with the checkbox column and the desired rows of all the columns are selected and when OK button(form2) is pressed the selected rows should get populated to the datagridview of the form1.But i m not getting the selected rows to the form1t.

View 1 Replies

Making Moving Percentages Into A Moving Graph?

Oct 5, 2008

I have this:

Private m_PerformanceCounter As New _
System.Diagnostics.PerformanceCounter( _
"Processor", "% Processor Time", "_Total")

[code]......

View 4 Replies

Preventing SQL Injection?

Oct 25, 2010

I have this code

UPDATE OPENQUERY (db,'SELECT * FROM table WHERE ref = ''"+ Ref +"'' AND bookno = ''"+ Session("number") +"'' ')
How would I prevent SQL Injections on this?

[code].....

View 8 Replies

Preventing .NET From Saving The Project?

Dec 29, 2009

Is there a way to prevent the VB .NET editor from saving the project whenever IT LIKES TO ? It very annoying ; it so stupid that it saves things that I don't want to and that I didn't ask it to do .If I add a form and then close the editor , when I open the project again , that form is still there though I DIDN'T save it !If I change a declaration from Friend to Public and close the editor without saving , then when I open again the project , my modified code remains modified , though I DID NOT save it !Today I realized that if I delete some controls of a form and then close the Editor , then when I reopen it , the controls are missing for good ! It saved that modification by itself !

View 3 Replies

Preventing A Message Box Repeat

Feb 26, 2012

I've completed an assignment that requires me to search through two listboxes for a particular number.If the number is found, the text on a label changes to a dollar amount, otherwise a message box is displayed letting the user know that the requested number cannot be found.It works well enough, searches through the listboxes, finds the number, and displays the message box when it can't be found.However, the message box shows repeatedly up to five times.After the user clicks "OK" on the fifth appearance, the program crashed and displays the follow message."Invalid Argument = Value of '5' is not valid for 'index'.Parameter name: index."I don't know what's causing this, or how to fix it.I do use the index as a counter at a portion of the program...but I'm not sure where I went wrong with it.[code]Also there are five items in the second listbox...probably has something to do with it.

View 2 Replies

Preventing Application Elevation In .NET?

Sep 20, 2010

I designed an application in vb.net 2005 while using Administrator account on vista.After compiling the application it start requesting for elevation during startup.I will like to prevent this, because the customer is complaning

View 2 Replies

Preventing Coping Project?

Sep 27, 2011

i have develop small project in vb.net and also created setup for it with license key but when i install the project in C drive it can run on another machine with simply copy it how to prevent this piracy

View 5 Replies

Preventing Form Minimizing?

Sep 24, 2009

I have two froms when one from is opend it should not be minimized when mouse clicked outside the from like the message box in vb.net

View 1 Replies

Preventing JIT Debugger From Popping Up

Nov 15, 2011

I have a program, I have published it, and I have been actually using it in my PC. Whenever it encounters an error, the JIT debugger comes out. How do I prevent it from popping up using try...catch blocks, or is there any other ways or code on how to do this?

View 3 Replies

Preventing Opening Another Window?

Dec 9, 2009

<VB.NET 2008>I created a MDI frame and I try to open a Winform by clicking menu.I do not want to allow opening same winform which is already opened by user.How do I check whether the winform is already opened or not?

View 5 Replies

Preventing Printing Of WebBrowser?

Dec 12, 2010

I am trying to prevent the user from activating a Print command for the content displayed in a WebBrowser. If the user hits Ctr P, the print dialog appears. I would think I have to trap this, but am not sure how to do this. There is no KeyPress event in the browser, and using the keypress event on the Form does not appear to trigger when text is typed into browser.

View 3 Replies

Preventing Software Piracy 2?

May 3, 2012

The original post provoked more responses than I anticipated. Therefore I have tried to draw them together with this post.There appear to be several schools of thought on this issue.One holds that I should not release time-bombed software because it is illegal.

Suppose I include code that often randomly checks if the user is registered and then puts up a message and shuts down the program if a check fails - rather like an improved nag screen. Would this be regarded as illegal?One holds that I should not worry about it because the pirates wouldn't buy my software anyway.

Maybe, but there's no fun in that.One holds that it is a waste of time because it is impossible to protect 100%.Maybe, but once again no fun.My view was that an honest user buying from my site would get a genuine copy. If a dishonest user got a harmful copy and lost the lot then I couldn't care less.Reed Kimble pointed out the existence of "fake sellers" who could cause harm by selling honest users a dishonest copy.This is a problem that I had not thought of and it poses a dilemma.

If I do include protection, then how do I distinguish between and honest user and a dishonest one? They will both be caught by the protection.should I not include any protection at all so that the honest user doesn't lose out, and just accept that the dishonest one gets away with it?Or nail the pirate and accept the honest loser as collateral damage?

[code]....

View 8 Replies

Preventing The JavaScript Injections?

Mar 16, 2009

What's the best way to prevent javascript injections in a VB.NET Web Application? Is there some way of disabling javascript on the pageload event?Recently, part of the security plan for our vb.net product was to simply disable buttons on the page that weren't available to the specific user. However, I informed the guy who thought of the idea that typing

javascript:alert(document.getElementById("Button1").disabled="")

in the address bar would re-enable the button.

Update:Aside from validating user input, how can I protect the website from being toyed with from the address bar?

View 5 Replies

[2005] Preventing Users From Using IE?

Jan 6, 2009

Does anyone have any experience in writing VB.Net apps that control Internet usage? I have a friend that needs to have her office computers monitored in order to prevent the users from playing on the internet. I'm not sure what the best approach to this issue is.

View 9 Replies

Parsing - Preventing Errors With HTMLAgilitypack

Dec 26, 2010

I'm using the HTMLAgilityPack to parse HTML pages. However at some point I try to parse wrong data (in this specific case an image), which ofc fails for obvious reasons. Code:

How to check whether the content is 'parse-able' before trying to parse it to prevent the error? For now it is an image which makes an error popup however I think it might be just anything which isn't (x)html.

View 2 Replies

Preventing A Record From Being Added To The Database

Mar 19, 2010

This code is driving me nuts. I have no idea what I could be missing that is preventing a record from being added to the Database. Here is what I have

[Code]...

View 7 Replies

Preventing Illegal Copies Of A VB Application?

Sep 19, 2009

We have a construction company and I am designing a program in Visual basics for it. This program is intended to be installed only on the computers in our office ( its not going to be distributed ). There is always a risk that one of our employees will take our software and distribute it . Is there anyway to prevent this. If not how can we make this as difficult as possible?

View 1 Replies

Preventing Multiple Instances Of A Form?

Mar 29, 2009

need help please on how to prevent multiple instances of a form at runtime in vb so tha when a user clicks a button to load a form it loads an if the user clicks the same button again whilst the other instance of the form is running it doesnt open a new one but insted sets focus on the currently running form.br2

View 4 Replies

Preventing Picturebox Runtime Collision?

Apr 16, 2010

I have code my pictureboxes so that I can move them around my form, however i can move a picturebox under another picturebox. Basically What i would like to be able to do it for a picturebox not to be able to go underneath another picturebox and thus dissapear.For example my picturebox 1 when i move it can go under my picturebox2, I would like it to touch the edges of picturebox2 at most but not go underneath it. I am using visual basic 2008.

View 3 Replies

Preventing Specified Text From Showing Up In Textbox?

Apr 15, 2010

Ok I am trying to make it so that if words are found within the 'Textbox1.text' they will be delete or remove or completely not allowed to even be entered into the text box. I have found a code on these forums from a previous post which has worked for me

View 6 Replies

Preventing Values To Be Loaded In Dataset

May 5, 2009

I have assigned a column of values from an Excel file into a dataset.I am using the following code to check if the column header is empty:[code] However for some reason even if I have an empty column header in the Excel spreadsheet, it is automatically assigned a value within the dataset. For example if I blank out the third column header in Excel spreadsheet, the dataset assigns it as "F3" as its column header which is making the above code ineffective. Can anyone tell me how to prevent the dataset to automatically assign a value to its column header.

View 4 Replies

VS 2008 : Preventing A Program Opening Twice?

Feb 4, 2010

Preventing a program opening twice?

View 4 Replies

VS 2008 Preventing Characters Being Entered?

Jul 6, 2009

VS 2008 Preventing characters being entered

View 1 Replies

VS 2008 Preventing The IDE From Checking Things?

Aug 16, 2010

I often face the following problem : when I have a form with lots of controls on it (100 , 200 etc) and I change the name of a control , the IDE goes slow for a few seconds . This is very annoying when I have to change the name to a lot of controls . I believe this is happening because the IDE checks the forms , the code etc to see if there any problem after (re)naming the controls . Of course this is welcome because it prevents a lot of problems , but at the same time it creates some serious problems as well . Thus , I wonder , is there any way I could prevent the IDE from checking all those things in order not to reduce it's speed ? Of course I am talking temporarily . I believe that what I gain by letting it check after every name-changing , I also gain it if I only let it check once (at the end of the name-changing process) .

View 14 Replies

VS 2010 Preventing Redraw Of Control?

May 12, 2012

I have a RectangleShape on a form and certain events that invoke the Paint event for the Shape.But it redraws unwantedly when I drag the form to the taskbar or minimize and then maximize it or press the alt or tab key while the form has focus.I do not want this to happen. I have made sure that no other event fires the RectangleShape's Paint() event.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved