API For Block Tab Key?
Jun 3, 2011i have problem in vb.net window base application.i want to block TAB key from the keyboard.PI code or any useful hint to do that.
View 1 Repliesi have problem in vb.net window base application.i want to block TAB key from the keyboard.PI code or any useful hint to do that.
View 1 RepliesI assume i have more number of If and less End If i cant find it where its going wrong?
______this is the code below _________________________________
Private Sub CommandButton2_Click()
Dim app As Object
Dim Slide As Object
Dim ppApp As Object
[code]....
im doing a login i have finish it but you can close it by using alt+f4 so i need to block the alt key im using vb 2008
View 5 RepliesHow can i add this to Me.Controls within the With block. [code]
View 4 RepliesI am looking for a way to block registry changes unless I choose to allow them to be made. So basically if an application tries to make a change my program would display a dialog with information of the change and I can either click Allow Change or Disallow Change.
Only thing is I am not sure how I go about stopping a registry change before it happens.
it is possible to block the window key using vb.net...
View 1 Repliesin vb6 to block value in text box i using :
text1.setfocus
sendkeys "+{home}"
How if i use in vbnet 2005 ?
I'm working with an antivirus scanner.But I would like my scanner can block websites.So that some URLs are blocked from any browser[code]...
View 6 RepliesI have this block of php that i want to convert to c# or vbnet. I am stuck on the array methods since there is no direct equal to the is array and other bits like array merge. I know that arrays behave differently in php than in c# but thats about it. I am looking online but have not found anything yet.
private static function processArgs( $arguments )
{
$args = array();
foreach ( $arguments as $arg ) {
[code]....
I tried utilizing a collections Enumerator inside of a USING block to take care of the Enumerator.dispose call for me, however, I'm getting NullReferenceExceptions when trying to access the Enumerator.Current property after doing a MoveNext.
[Code]...
I am coding in VB.NET.
Currently, I am enclosing object initialization and usage in a Try/Catch block and then tear it down (dispose, close, set to nothing) in the Finally block. The problem is, a C# 'using' block is so easy to use and would clean things up in my code.
Is there a VB.NET equivalent? Or is my Finally block tear-down solution the only way?
i have a simple question. in vb6 you can block the form using modal. but in vb.net i dont find any thing like this. so is there a way to block a form when other is opened. now i do this:
Dim frmDisc As New frmDiscount
frmDisc.GET_SENDER(Me)
frmDisc.Show(Me)
and in form Discount i do this:
Public Sub GET_SENDER(ByRef frm As Form)
frmSender = frm
End Sub
[code]....
How to block popups
View 1 RepliesHow to block shutdown using vb.net?
View 1 RepliesI have a form in vb.net that has a ShockwaveFlash object in it, and I get an IE popup requesting to download a file. I changed variables in it and it blocked some of them.
View 5 RepliesStudying Ruby and the Do block. Coming from much c# I didn't see much that reminded me of Do, but then VB came to mind with the With statement and one which I wish was in c# (maybe it is and I never saw it?). The two statements, Do and With, appear similar.Is the With statement in VB the same as a Do block in Ruby? [code]I understand what I will get just from looking at it. I know that I will get a new record in my database with the above information, but I do not know why. Why did book become TheBook.new?
View 5 RepliesFor the code shown below, how would I use a try/catch block to handle an error if it were to occur?
TOTKILO.Text = KILO.Text * TOUCH.Text * 0.01
TextBox10.Text = TextBox9.Text * TextBox8.Text * 0.01
K = Math.Round(Val(TOTKILO.Text) - Val(TextBox10.Text), 5)
[code]....
I used VB.Net controls and LINQ to SQL to perform all Updates and Inserts, so when an error occurs I want to show "Enter Data Correctly", how do I do that once I catch an exception?
I often use the Try block to catch exeptions, and I have read in the help pages to do with the Finally statement. But, from what I understand it has no use whatsoever. Why would I use Finally instead of just ending the Try block. For example, from what I know
[Code]...
I have a Web Browser that navigates to some websites, and I would like to know how would I go about blocking ads, just wondering is there any examples around, or can someone give me some ideas.
View 4 RepliesI have a very simple VB 2005 program which runs on our W2K and XP systems, but when I try to run it on W7, the UAC throws up an admin login block. I have tried signing the assembly, to no avail. The entire program is below:
frmSimpleTest.vb:
Public Class frmSimpleTest
Private cabsdirectory As String = "C:HOTRMHMR"
[Code].....
We have a current implementation of a log file manager where it's two main purposes are to 1. rename files generated by other programs with a date/time stamp so they create new ones, and 2. delete files older then X amount of days from a specified folder. The program also makes it's own log file which records when these events happen.Do you think the Logging Application Block would be useful in this instance? The old file manager is written in VB 6.0 and an upgrade to VB .Net would not take too long, but is it worth it to try and implement LAP into it?
View 1 RepliesI have a simple function which tries to get a value from an Obout grid filter column, and if the value is empty, ignores it and moves on. For some reason this code ignore my catch block and always shows a System.FormatException when the input string is empty More bizarre, if I use visual studio's debugger and set a breakpoint on that line, the catch block functions normally (after I continue from that line). I have already confirmed that my Debug | Exceptions | CLR are not set to catch when thrown. I have also confirmed this same behavior in the production version.
[Code]...
My understanding of assert.fail was that if the line is executed, the test will fail.owever, I have found an instance where the assert.fail is executed, but the test passes.If the Assert.Fail statement is within a try block, the test will ALWAYS pass, even if the code execution executes the assert.fail. For example, the following test will always pass, even if the sub fails to throw an exception.
View 2 RepliesI have a button called "SendMoneyOutButton" in MainForm, I have a label call DecisionLabel which is binding to datasourceIs there is anyway to prevent the button SendMOneyOutButton is pressed if DecisionLabel.Text = "Already Sent"
View 3 RepliesHow to block a program from running twice. Show a message box when the program is executed twice
View 1 RepliesI need to block access to some website from .net framework, how do i do it without manipulating the hostfile?
View 2 RepliesI have a website in intranet and I wanna to block a remote access or VPN access to the site.I waana to know how is users use remote access or VPN to access to my site.
View 2 RepliesSomebody have code VB.Net for Block all installation software
View 1 Repliesi make a kid protect app where the parrents can add a process name to listbox and it will block the process by process kill
View 2 Repliesim doing a login i have finish it but you can close it by using alt+f4 so i need to block the alt key im using vb 2008
View 2 Replies