VS 2008 Handling New Windows?

May 27, 2009

while I am navigating, and when I click a link that opens a new window, it open Microsoft Internet Explorer. I would like to make it open a new window of my program, not internet Explorer

View 2 Replies


ADVERTISEMENT

Handling DPI Changes In Windows Form?

Feb 16, 2010

I am developing a windows based application in VB 2005, the main form of the application is of fixed border style (i.e. user cannot resize the form), but in certain cases I am resizing my form through code. Intially the form has a fixed height i.e. 350 for normal height and 400 for extended height. But in this case the problem could not be solved effectively as the user can have different DPI setting e.g. 120, 144, 192 etc.The logic I implemented is to divide my form (vertically) into 3 parts

[Code]...

View 1 Replies

Handling New Internet Windows?

Jul 15, 2009

I have a form within which has a webbrowser control. The site i view in the webbrowser control requires me to log in so i have made a one click login button which when clicked logs me in automatically. When i'm in the backend of the website, if i click on a certain button it pops up a new window that i need to make a selection from. But when this window pops up it asks me to log in again?Is it possible to catch all pop up windows so they are loaded in another form which also includes this 1 click log in to save the hassel of logging in manually again?

View 4 Replies

.net - Handling KeyCode/KeyChar Events In Windows Form TextBox Control?

May 19, 2012

I have various input textboxes on my form. And based on entries made in each of the input textboxes, I update the display textbox. However, using AppendText message of textbox. I have my input textboxes set to accept only numeric values. So for each character inputted correctly, I update the display Textbox. Problem I have is when user selects Key.Back or Key.Delete, what I would like to do is do a Delete of last character in the display textbox, but I am yet to get this right. How do I delete the last character in the string that is contained in a TextBox using AppendText()

[Code]...

View 1 Replies

COM Object Handling Differences Between 2008 Express And VB 2008?

Jul 15, 2009

I recently created a very simple project in VB express 2008 to interface with a COM object from an external vendor. I then downloaded the VS2008 90 day trial and found that the identical code in a VS2008 project results in a COMException error "Object is out of scope". Is anyone aware of any differences in how the two packages handle COM object interfaces as I have run out of ideas. Both projects have identical code and all the references are the same. The CreateObject() method correctly creates the object, but any attempt to access methods inside the COM object result in that error. I can even open the VB 2008 Express project inside VS and it still generates the same error.

Here is the code - the vendor dll in question is from Siebel v8.0.0, you'll notice that I have commented out most of the code that comes after the error. Creating a watch in the debugger on the siebApp variable sees it correctly created as {System.__ComObject}type SiebelHTMLApplication. I first tried this by creating the Property Service for variable siebSvcs, but after I started experiencing the COMExceptions, I reverted to using the most basic method inside the COM object I was creating.

Imports
SIEBELHTMLLib
Public

[code]......

View 1 Replies

VS 2008 Handling Strings?

Apr 12, 2010

I once again feel so angry about VB .NET . Here's what ruined my day :Lets say we have have a string variable :

Dim Var1 As String = "blablabla"
If we want to replace something within it , we can use the Replace function :
Dim Var2 As String = Replace(Var1,"a","o")

This works great . My problem appears when I want to replace the " character (double quote) . Thus , when using :Dim Var2 As String = Replace(Var1,"""","o")it will return an error .Of course you may wonder why I care to replace the " character . You see this string variable receives its value from a text box . Thus , if the user uses the " character , I want to replace it with two ' characters (single quote) . Is this replacement possible in .NET

View 4 Replies

VS 2008 GDI And Paint Event Handling?

Aug 26, 2009

From jmchillihiney's most excellent code bank sumission on Drawing:Quote:The way GDI+ works, controls get repainted on screen over and over again, sometimes many times in quick succession. On each of these occasions the control's Paint event is raised. You need to use the Paint event of the control to perform your own drawing or else, the next time the control is repainted, your drawing will just disappear as the control paints over it.

When you're creating a custom control you should override the OnPaint method and perform your drawing there. When you're designing a form or user control and you want to add custom drawing to a child control you handle that control's Paint event, then perform your drawing in the event handler.

You may have seen, or heard people talk about, controls flickering on screen. That's caused by repainting large areas of the control repeatedly and happens because painting on screen is actually quite a slow process. As such, you should try to do as little of it as possible.So, I am attempting to draw part of a custom control. I have placed a SplitContainer on a UserControl, and oriented it vertically. I then shrunk to top panel to 15 pixels in height. I have two Methods which each draw a different type of Path + fill into the panel, and then draw a border around it (One is a gradient fill, and the other is just a plain color). The idea is that when the user clicks on this panel, it switches from one to the other (a "Selected State" and "Not-Selected" state).

I have also created an icon which looks like the +/- widget on a treeview (or more specifically, on the vs2008 Toolbox, which is essentially what I am trying to emulate here . . .) which toggles as the control is selected/unselected. Not that ultimately, the selected state will change when the user selects OTHER controls, but the Expand/Collapse gizmo will toggle when the user clicks on the panel in question.

Again, check out the vs2008 toolbox. The Group "headers" are what I am after here. Believe it or not, all of this now WORKS (gee me, look what I did!) EXCEPT the initialization. If I "Handle" the paint event of the SplitCOntainer.Panel1 object in any way which prevents the flickering jmc alludes to above, any redrawing required by either initialization OR hiding/unhiding of the host form is prevented. And it seems like the SplitContainer panel is constantly redraing (probably checking to see if the splitter has been moved).

I can post some code, but it is a little confusing, since I am dealing with some semi-complex interaction here. Also, It is not necssecarily structured well ()yet). AFTER I figured out the drawing bits, THEN I was going to try to do some refactoring and restructuring. Code Follows in next post.

View 2 Replies

VS 2008 Handling An Unhandled Exception?

Mar 27, 2009

I have an unhandled exception event in the ApplicationEvents area of my program, but it never gets called when I do get unhandled exceptions. Is there a trick to making this work?

View 8 Replies

VS 2008 Handling Exception In Classes?

Apr 28, 2009

I have the following code in a class of mine. The purpose of this class is to get the balance from a web server. Just in case something goes wrong with getting the balance. I will handle a exception. However, all this is easy to do. But I am left wondering what do I return in my catch statement.

Most of the examples I looked at just write to the console using:

Console.WriteLine(ex.Message);

That is all very well. But in a real application what do most developers do?

My function at the moment returns void. And I am just wondering what else I would return if the webclient is busy?

[Code].....

View 1 Replies

VS 2008 Handling Week Numbers?

Oct 3, 2009

I have written an application and SQL database to handle accounts. Everything is working fine except I have a small problem with week numbers.For example:Mon 29th June 2009 is the start of week number 27.Tue 30th June 2009 is also week 27.Wed 1st July 2009 is also week 27 - BUT it is into a new month.

View 3 Replies

[2008] Text File Handling?

Jan 29, 2009

i am using vb.net 2008 what i want to do is 1. send a selected list of records (with about 10 or 11 fields each) in a text file 2. this text file will b used by another prog. and it will add some data at the end of each record. 3. these additions r to be used by me again by reading it from the text file and then updated again in my database

i have gone through a lot many text file handling eg. but not able to understand what ihave to do.
i know i would somehow have to get the fields in parts but cant get how lset will give me the entier string till a fixed length which i can use for the first field but how do i jump to the 2nd field and so on

pls. note that i cant give any spl. character to diffrenciate the end of 1 field and start of 2nd field.i have to gather and send the fields for each record just 1 after the other.

View 5 Replies

Handling Multiple Keypress Events In VB 2008

Oct 21, 2009

I am new to VB but I want to find this out. For example there are two objects in my form and when I press W,A,S,D then Object1 should move Up, Left, Down and Right respectively. Object2 moves when I press the arrow keys. How do I make them move together and also separately depending on whether the key is pressed.

View 8 Replies

VS 2008 - Handling Online Activation For Application

Feb 20, 2010

This is how I handle online activation for my application the problem is that this is very poor security because i display my Username and Password. I was thinking of using Myslq but i also have to input the Username and the password into the application. What other ways do big companies like Kaspersky handle online activation.

My code
Try
My.Computer.Network.DownloadFile("FTP SITE" + textbox1.Text + ".txt", "C:" + textbox1.Text + ".txt", "USER", "PASS")
Dim auth As String = My.Computer.FileSystem.ReadAllText("C:" + textbox1.Text + ".txt")
If auth = Textbox2.Text Then
Kill("C:" + textbox1.Text + ".txt")
[Code] .....

View 9 Replies

VS 2008 - Other Ways Of Handling Events Without Using Methods

Aug 5, 2010

Whenever we need to handle events, we do it by creating a method which handles the event. Without creating methods; is there some other ways of handling events?

View 6 Replies

VS 2008 Exception Handling In User Classes

Apr 27, 2009

I have to get the balance from the web server. Once that is done it will call back into my main app with the result.However, sometime the web server fails for some unknown reason. Could be high volume of traffic or something else. However, I haven't implemented any exception handling in my class. As the app that uses this handles the exception. However, the client has confirmed that when the web server does fail it displays a unhandled exception dialog box. Then they have to click continue to keep using my application. So below I am not sure if I should implement the exception handling in my class.[code]

View 1 Replies

VS 2008 Handling Xna Gamepad Button Press?

Oct 4, 2009

I have an xbox 360 guitar hero x-plorer controller and I was wondering if anyone here knows how to handle the event of a gamepad button press in the xna framework.

View 4 Replies

C# - Detect If Application Start Using A Manual Handling (Pressing An Icon) Or Start When Windows Start?

Feb 28, 2011

I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?

View 2 Replies

VS 2008 Handling Exceptions In Custom Control Library

Oct 21, 2009

So I've made this control that inherits from the treeview control and basically loads objects from active directory into a treeview (url...).All working fine, but as this is the first custom control I have made that I have intended for other people to use, I'm not quite sure how I should approach error handling.I mean, obviously I shouldnt do something like show any exceptions in a messagebox because that might not be what the person that is using the control wants to happen. So do I just write out exception messages to the debug window? Do I swallow exceptions (guessing not)? Do I just totally ignore them so that they are thrown in the user's project?

View 4 Replies

VS 2008 Handling Exceptions In Referenced Class Libraries

Jun 8, 2010

i created a Class library (.dll) and loaded it as reference into a main project. In the code for the class i've handled exceptions using try..catch subs, however when debugging the main project exceptions that are handled in the DLL still get thrown! (the class ".vb" file gets loaded into the debugger and the line of the exception shows up)

Up till now i've found it useful that when an unhandled error occurs in the imported reference, it shows up in the main project with tracing back to the referenced class. But i dont want the exceptions that are handled in the reference class to be thrown when debugging the main project!

As you can see the exception thrown was handled with try...catch this class exception.vb belongs to the project that created the class library (.DLL that i referenced). i didnt even load the project that built the reference so it amazes me that it could find the coding class to begin with.

View 3 Replies

VS 2008 Create Windows Service Using Windows Form Common Control?

May 3, 2012

It is possible to create windows service using windows form control in vb.net. give me the url or links. The windows forms control such as, Timer control, list-box, notify-icon control etc.

View 1 Replies

Will An Program Built On Windows 7 Using Vs 2008 Or 2005 Have The Compatibility With Windows Xp Or Vista

Nov 15, 2009

will an program built on windows 7 using vs 2008 or 2005 have the compatibility with windows xp or vista

View 5 Replies

VS 2008 File Handling - Create A '.txt' File And Then Fill In The Dates And Times When The Program Is Opened

Oct 25, 2009

I want my program to be able to create a '.txt' file when it is run for the first time, with the date and time the program was accessed, and to be able to add new 'logs' of program history every time it is accessed. What i mean is that i want my program to be able to create a '.txt' file, and then fill in the dates and times when the program is opened.

View 7 Replies

VS 2008 Hide Exe Into Taskmanager In Windows 7 Using Windows Application?

Mar 5, 2012

how to hide exe into taskmanager in windows 7 using vb.net windows application?

I want exe is hide into task-manager in windows 7 & windows vista machine using vb.net(windows application)

View 9 Replies

VS 2008 Unit Converter Handling Multiple Unit Types

Apr 12, 2011

Does anyone have a nice sample of a unit convertor handling multiple unit types that I can integrate in my application? I have found this one, but it is only handling one type of unit. For example I want to convert weight as well as volume from and to imperial units.

View 8 Replies

Viewing VB6.0 Windows Form In "windows Server 2008"

May 21, 2009

I am facing problem in displaying VB 6.0 windows form when it is accessed from activeX control on windows server 2008 Is there any work around or any patch available to resolve this issue

View 2 Replies

VS 2008 Access Windows Form Designer Generated Code In 2008?

Jan 20, 2010

Is it possible to edit the Windows Form Designer generated code in VS2008?

View 4 Replies

VS 2008 : Windows Is Running In XP Style Or In Windows Classic Style?

Feb 5, 2010

how to get the current Style of the Windows Xp programmatically. At the program startup I need to get if Windows is running in XP Style or in Windows Classic Style, so I will set my buttons Flatstyle property to flat or standard.

View 6 Replies

VS 2008 - Process.waitforexit Is Hang Up When Running On Windows 2008

Sep 21, 2009

I use the 'Process' object to run EXE from my application. It works fine when it run on Windows XP and 2003. When it run on Windows server 2008, it hangs up: the process is stayed in background but never returns. It never goes ahead for the next commands. What could be the reason? [Code]

View 6 Replies

VS 2008 Process.waitforexit Is Hang Up When Running On Windows 2008?

Feb 4, 2012

I use the 'Process' object to run EXE from my application. It works fine when it run on Windows XP and 2003. When it run on Windows server 2008, it hangs up: the process is stayed in background but never returns. It never goes ahead for the next commands

View 2 Replies

VS 2008 While Windows Configures Microsoft Visual Studio 2008?

Oct 27, 2009

I get the message "Please wait while Windows configures Microsoft Visual Studio 2008..." whenever I build the install project for my application. It configures VS for a while, then builds the project. This does not happen when I build the vb.net application itself, only the installation project in the same solution. This occurs on applications using the Leadtools library, but not others.

View 1 Replies







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