VS 2008 Disabling Safe Mode And System Restore?

Oct 25, 2009

Is it possible to prevent my program from being ran in Safe Mode and System Restored?

View 5 Replies


ADVERTISEMENT

Determining Windows Startup Mode (Safe Mode, Normal)

Jun 21, 2010

I'm wondering if there is any code that I could use in VB.net so it can determine the computer's startup mode (such as safe mode or safe mode with networking).

View 1 Replies

Launch In Windows Safe Mode

May 3, 2012

The problem is as follows: If Windows starts up in Safe Mode, no applications I make with VS 2010 will run. Even if I try to launch them, doubleclicking, running, almost everything I tried, the problem is that the application just doesn't show up. There is no window there, and I don't know (haven't checked) if a process related to the application is running.

[Code]...

View 1 Replies

IDE :: VB 2008 Help File Has Disappeared After System Restore?

Oct 22, 2010

After a System Restore, to just two days ago, VB 2008 Express Help is no longer available. I get the message "No Help topics have been saved." I downloaded the help file long ago but don't know where it resides.

View 2 Replies

VS 2008 Restore App From System Tray Using Shortcut Keys?

May 26, 2011

I'm trying to build an application that when I press a keyboard shortcut, say CTRL + ~, if the window is minimized to the system tray it is displayed.

I have seen a few programs do this and have always wondered how to do this, but haven't had the opportunity to do learn it until now and I really don't know if its something simple or complex.

View 2 Replies

Allowing Scalable Images In Restore Down Window Mode?

May 23, 2011

I designed my program for my screen resolution (1680x1050) with all forms in maximized mode. I gave the program to a freind whose laptop has a lower screen resolution than mine. Now on a lot of the forms she cannot see some of the controls because of the lower screen resolution. I added the minimize, restore down and close buttons to the forms of my program but in the restore down mode the form does not scale down to show all the controls on the form. How can I incorporate scalabilty into the forms so that all the controls will be visible in the restore down mode.

View 5 Replies

VS 2008 Disabling ATL+F4 - Error1'KeyCode' Is Not A Member Of 'System.EventArgs'

Aug 20, 2009

A program cant be exited thu Alt+F4

[Code]...

Edit2: I want it to be in the form so that the form cant be closed unless they press button with Close() command or task manager ends the process

View 8 Replies

What Is Real Mode / Protected Mode / Supervisor Mode And Hypervisor Mode

Sep 16, 2010

What is the real mode , protected mode , supervisor mode and the hypervisor mode ?

View 1 Replies

Make A System Restore Remover?

Dec 18, 2009

i made a program that will make a system restore point for the user but i think its only 50% done. I want to add a feature that will place all of the system restore points in list box and give a user the choice of removing a restore point.

View 35 Replies

VS 2005 How Safe Is The System.Windows.Forms.Webbrowser Control

May 9, 2012

If you are interested, I am doing this because I do not like having to drag and drop my browser etc. I just right click the URL in Chrome and select (Play on My TV) a customized dropdown item, at which point my Player finds the TV, opens the URL, maximizes itself and plays the content

View 4 Replies

Enable/Disable System Restore Using ManagementClass?

Jun 3, 2010

Is there any way to enable/disable system restore using ManagementClass? I have this code but it does not work (on Windows 7 anyway), any ideas?

Dim oScope As New Management.ManagementScope("\localhost
ootdefault")
Dim oPath As New Management.ManagementPath("SystemRestore")

[Code]....

View 1 Replies

Disabling Scroll With System.Console.Write?

Apr 11, 2009

Is it possible to use Console.Write to place a single character at the very bottom right of a typical 80x25 console, without having the console scroll the row up? This is the code that I'm using...

Imports System
Console.SetCursorPosition(Console.WindowWidth-1, Console.WindowHeight-1)
Console.Write("x")

This is not working like I would like it to. Any suggestions or alternatives? I've tested that SetCursorPosition does use a 0,0 coordinate system, already. Using the WindowWidth-1/Height-1 should put me in the lower right corner of the screen... which it does, but then Console.Write is putting the "x" down and continuing on to the next line.

View 3 Replies

C# - Deep Copy System.Windows.Forms.WebBrowser Object/Restore State?

Apr 27, 2009

Essentially what I want to do is copy a WebBrowser object such that I can do the equivalent of "Open In New Tab" or "Open In New Window" actions, maintaining any posted data. I don't just want to navigate to the same URL as in the original WebBrowser object, rather I want to repeat the HttpWebRequest.

View 1 Replies

Cancel A Database Restore SMO ( Restore.Abort() )?

Jun 17, 2010

[url]..I'm trying to use the Restore.Abort function during an SMO restore process - What would be the best method?

[code]...

View 4 Replies

System.StackOverflowException In Datagridview In Virtual Mode

Nov 7, 2011

Put a datagridview in vb .net 2010 form, then on the form load, put this code.

[Code]...

Run the project. After some seconds, it crashes with System.StackOverflowException.
Someone have an idea of what happens? Seems a bug.

View 1 Replies

System Render Mode On A Tool Strip Control?

Nov 25, 2011

I'm trying to create a toolstrip using the system render mode, but the split button control doesn't look right in Windows 7 It's almost like the drop down button is offset to the right by 1 pixel, or part of the border is missing.

View 3 Replies

VS 2008 List (Of T) Is Thread Safe?

Sep 5, 2009

On the MSDN docs for the generic List(Of T) class, it says this:

Quote:

Public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.but I'm trying to work out what exactly that means or why it matters. Does that mean that if I had this:

vb.net
Public Shared MyList As New List(Of MyClass)

then I could enumerate through that list from several threads at once without there being a problem? I thought you could read from any object from multiple threads without a problem anyway... I thought it was only if there were potentially other threads modifying that object at the same time that there were problems. Particularly with a collection like a List because you cant modify a list while another thread is enumerating the items in the list as you get an exception thrown stating that the collection has changed. I think basically what I am asking is if the MSDN doc said that a public shared list wasnt thread safe then what difference would it make?

View 5 Replies

Microsoft VB 2008 Email Sender Not Safe?

Dec 13, 2009

if people wanted to sign up for a email sender they can enter there email into my form i created with VB and it would send that info to my email... well it turns out that they could get my password and i then got my email password hacked... how is this possible is it because i did not encrypt my form and they decrypted my form to get my email and password info? please tell me how this is done so i can be safer next time

View 3 Replies

VS 2008 - Is It Safe To Delete RESX Files?

Mar 20, 2009

I have a Visual Basic project in Visual Studio 2008. Do I need to keep the .RESX file that seem to be associated with each of my forms?

View 2 Replies

VS 2008 - Safe Cancellation Of Unknown Threads

Jul 7, 2011

I have got my multi threaded application running which is a Windows Service Project.

Basically when the service starts it starts a thread listening on a port for connections. The reason I started this on a new thread was so I could easily control it and not lock up that main worked thread.

Now on that thread when a client connects it dynamically assigns them another port number that is not currently in use and starts a new thread listening on that port and waits for the client to connect to do the actual data crunching.

So basically I have my main project thread, a Main listening thread then the possiblity of 0 to 100 more threads for each connected client.

Now this project should always be running but in the event it needs to be shut down (or server rebooted etc) I want to be able to shutdown the threads safely.

I can down my main listening thread safely but my trouble is all those other possible threads. What I would like is if the service is called to stop I want any of those other possible running threads which would have an active connection to the client to send a simple command like 'STOP' then close the connection gracefully (MyConnection.Close) and end itself.

The only solution I can think of which I don't really want to do is have a global varible (StopThreads as Boolean) and after each command in the thread check that boolean and if its set to true jump to some code to do what I want and end the thread but there must be an easier way? Or is this the best way?

View 4 Replies

VS 2008 : Making Safe Crossthread Calls?

Mar 13, 2012

Imports System.Threading.Thread
Imports System
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.demoThread = New Thread(New ThreadStart(AddressOf Me.ThreadProcSafe))

[code]....

I've been trying to use Microsofts example on their MSDN but I'm getting this error. :

Error1'demoThread' is not a member of 'WindowsApplication1.Form1'.C:UsersAydinAppDataLocalTemporary ProjectsWindowsApplication1Form1.vb89WindowsApplication1

View 20 Replies

VS 2008 Making A List Thread Safe?

Aug 26, 2009

I am using WCF to make a chat application - I dont think the fact I'm using WCF is relevant for this particular question but just thought I would mention it in case there is something special about the way WCF does threading that I dont know about.So I have my WCF service that runs on a server and a WPF app that acts as the WCF client - each time a new client signs in or out it updates the server WCF service to let it know that it has changed status. The server then updates a list to either add or remove the user, so this list basically represents who is online at any one time. The list is declared in the core server class like so:

vb.net
Private Shared List(Of ChatUser)

So, I have a method in my server side that is called whenever a user needs to be added to this list and originally I thought I could have some issues because while the server might be looping through this list to find out who is online, another user might have signed out and the list would therefore be modified while the server was looping through it which would cause an exception. So I added the following to the start of the method that removes a user from the list:

vb.net
SyncLock New Object

and I havent had any problems... but I'm still not totally convinced that this will completely solve the issue. So would creating a Property give me a bit of extra safety? Assuming I always used the property to access the list in my code.
Like this:

vb.net
Private Shared Property CurrentClientList() As List(Of ChatUser)
Get
SyncLock New Object

[code].....

Also, am I actually using SyncLock correctly? I mean should I be referring to a shared object that all of the threads can access rather than just doing New Object each time or does it not make a difference?

View 9 Replies

VS 2008 Disabling CTR+C?

Aug 26, 2009

How do I disable CTR+C in a richtextbox?

View 1 Replies

VS 2008 Restore Old Code?

Dec 23, 2011

Okay , Ive found a really nice remote desptop code. Did my best to correct the errors (with forum's help) but there is still issues. If someone can help me or at least tell me how set a tcp online (on net between any pc) connection because Im working on a chat. [URL]..

View 1 Replies

VS 2008 - Log In With Email And Password And Make Keep Safe Items?

Jul 27, 2009

i have created this programme which is basically a keep safe programme, well it's not created yet anyway.so far i have coded the the log in page, so the user can log in with their email and password.Once they do it comes to a screen asking if they want to visit their 'keep safe' items, or, asking if they want to deposit a file in their 'keep safe'.This is the programme belowThe Reason It say's JMEsseneger, is because i had other plans for the login until i came to face the fact, that im not quite fluant enough in this language to understand it all

1) As soon as they hit 'sign in' it creates a passworded.zip folder somewhere on their computer (using the same password they enterd to login and would only create the file if login is successful)2)The "Open SafeBox" obviously opens the file directory 3)the "Add To SafeBox" will allower the user to browes their computer for a file that they want to add into the "safebox" with a simple select and a click of an "add" button

View 10 Replies

VS 2008 : Make An Invoke Or Safe Thread Call?

May 27, 2010

i got a background worker that has the following code in the do work.... one of the things i want to do is to add rows if theres none available ...but i got an error saying i need to do a safe call thread...i already read about it but im stuck i put control.invoke, but that gives me an error too saying Error1Reference to a non-shared member requires an object reference.what can i do to add rows safely?

vb.net
Private Sub BackgroundWorker2_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker2.DoWork
If DataGridView2.Rows.Item(num).Cells.Item(0).Value = "" Then
Control.Invoke(DataGridView2.Rows.Add(1))

View 6 Replies

VS 2008 Disabling A Program?

Apr 19, 2009

i did a program on VB 2008 Express Edition but id like to add a feature.Id like that my program could be only accessed if you had an internet conection and if i allowed it. Id like to disable my program whenever I like for the ones who have it cant use it if i dont enable it

View 20 Replies

VS 2008 Contextmenustrip - Restore Program?

Nov 17, 2009

Im trying to restore my program from the system tray using a Contextmenustrip. Ive googled it but can seem to find anything.

View 7 Replies

VS 2008 Disabling A Checkbox On Listview

May 4, 2009

In my code i check listview1 values, whether they contain a "Yes" or a "No" if they contain a"No" i was trying to disable the checkbox on listview2 that corresponds to that value so far i have:

If formMain.ListView1.Items(Index).SubItems(2).Text = "No" Then
'// We need to disable all the checkboxes on listview2 that contain "No"
'// And also color code the background

[Code]....

View 2 Replies

VS 2008 Disabling Ctrl+alt+delete?

Jan 11, 2010

Is it possible to disable ctrl+alt+delete in code? Can anyone post an example?

View 15 Replies







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