-
- How to catch unhandled exception raised from singleton object?
by cwlaualex
- 2 Replies
- Last post
by cwlaualex
- I have created a singleton object in my library using shared sub. The problem is how can my executable (not the library) catch those unhandled exception raised from the library The sub in the library is an event handler of some POS devices. So, the stack trace will start from that shared sub and I cannot catch that unhandled exception in my application event.
-
- way to add only Image in combobox
by Shailendra Kumar
- 2 Replies
- Last post
by Jay Vora
- Hi Is there any way to add only image in combobox.In normal a combobox allows to add image with text but what i want is only image in the box. I have to use it to let user choose the line style and line weight .This features are available in MSWord also Regards Shailendra Kumar
-
- How to make a button navigate when enter is pressed?
by tak_juju
- 8 Replies
- Last post
by John Oliver (UK)MSP, VSIP
- Hello
Im making a webbrowser and i want to add a funtion that when i press enter my browser will navigate like the one in internet explorer!
-
- How to activate "Track Change" facility for Excel 2003 using vbscript
by Chirayu.Tailor
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hello friends,
I'm facing a problem and not able to find out the solution. The problem defination is as follows:
After opening the excel file from the vbscript, I want to enable the
"Track change" property of the file directly through the vbscript code. The
code is as specified below:
Workbooks.Open ("c:\33619.xls")
ActiveWorkbook.KeepChangeHistory = True
ActiveWorkbook.Hi
-
- how to render a table using graphics object in Vb.net 2005
by Ajay K. Singh
- 1 Replies
- Last post
by Alex Moura
- Hello friends,
I want to draw a table with 3 rows and 4 columns and each cell will have some text in it, I want to draw this table in a bitmap file using Graphics object, however there is no such Draw method available in Graphics object.
I am using Visual Studio 2005 with .Net framework 2.0.
Does anyone have any idea as how we may render a table with some text in each cell.
-
- how to show in chart?
by BlackPepper
- 1 Replies
- Last post
by Bruno Yu - MSFT
- i had show my data in datagrid...
but can i transfer my data in datagrid to bar chart
thanx...
any method
-
- Impersonating another User
by Chris128
- 8 Replies
- Last post
by Chris128
- Hi All,
I have searched these forums and google for a while looking for an easy way to connect to another computer and start/stop services and make registry edits using a username and password supplied by the user but I cannot find any straight forward instructions on how to go about doing this.
I believe what I am looking to do is called Impersonating, could anyone give me a quick examp
-
- Multiuser Account
by nader Hantash
- 1 Replies
- Last post
by Toddap_MS
- How can we add class of Global Variable To add its value to all forms in the system
Especially in Master Detail Form with Grids through VB.NET
By Visual Studio.Net
how to Update And Manipulate Data grid Items from DataBase And how To Make Coditional statement about it by VisalBasic.Net through visualstudio.net
-
- vb Source File got corrupted.
by Tech_Prince
- 3 Replies
- Last post
by Tech_Prince
- I was gonna debug the project and my computer crashed. After recovery of OS, the main source file is now have corrupted.data instead of my vb coding. I am using vb2005. Is there any way that i can recover that source
-
- Hard to solve simple question
by Cesar Francisco
- 10 Replies
- Last post
by Cesar Francisco
- A textbox(with scrollbar) which serves as a tape to a calculator.
The negative entry should be in red all the others in black.
------------------------------------------------------------------------------------------------------------
This does not work because the TextBoxscroll overrides the Label's color
'Label2.ForeColor = Color.Red
'Label2.Text = A.ToString
Te
-
- GetBytes is very slow.
by rv4
- 12 Replies
- Last post
by nobugz
- In my code u use that "GetBytes" often but it really slow down the speed, is there an other way to get the same result
Code Block Dim k1 As New Rfc2898DeriveBytes(pwd1, salt1, myIterations) encAlg.Key = k1.GetBytes(16)
-
- Application Threads
by DotNetWeasel
- 6 Replies
- Last post
by decyclone
- I've written an application that uses two threads,
1 - Main application thread
2 - Listener thread
The listener thread waits for a remote update request on port 7000.
If it gets a restart request, I need the entire application to restart.
I've tried setting the main thread to be MTA,
Private Sub frmMain_Load( ByVal sender ...
System.Threading.Thread.CurrentThrea
-
- adding handler to a button generated at runtime
by anubisascends
- 10 Replies
- Last post
by spotty
- everytime I try to add this code: AddHandler btnLogin.Click, AddressOf mybutton_click it gives me the following error: name 'mybuttom_click' is not declared. Here is the code that I am using to create the button:
Imports
System.Drawing Module formsLogin
Public Function loginForm()
Dim
btnLogin As New
Button With
btnLog
-
- Strings with "
by frxstrem
- 9 Replies
- Last post
by Spidermans_DarkSide - VSIP
- How do I use " and new lines in strings
-
- Suggestions for future VB
by CsabaU
- 9 Replies
- Last post
by kleinma
- Hi all, including the VB team.
Here are some suggestions for a future VB. They are in the order I would like to see these changes implemented.
1. An optional ¡°Catch¡± functionality in the uppermost level in sub and functions. See the code example. Much time should be saved, if this was the default:
Sub DemoWithCathDirect
Do_Something_In_Method
CatchSub
-
- Calculator
by Cesar Francisco
- 14 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- This is a simple calculator.
The problem: when the user press the equal key the numbers just keep adding, multiplying, with the first operand. Division and Minus just flip back and forth. (FIXED)
How to have this function be with the add, multiply, divide and minus keys.
-
- How to get Maximum Record from database
by gmannu
- 2 Replies
- Last post
by Dick Donny
- hi,
Actually in this code
sub button1_Click()
dim con as sqlconnection dim cmd as sqlcommand dim str as string
con=new sqlconnection("server=localhost;integrated security=true;database=pubs") con.open
str="insert authors(au_id,au_name) values(@au_id,@au_name)" cmd=new sqlcommand(str,con) cmd.parameters.add("@au_id","1")
'How
-
- ClickOnce Deployment and app.config differences
by BigDog99
- 3 Replies
- Last post
by juancamaney
- I am working on a windows forms app. I do my development in a development environment, and I have certain settings in my app.config like connection strings that point to my development SQL server.
When I deploy my Application with ClickOnce, those settings are going to have to be updated to their production values. What is the recommended method for managing this I can't imagine modifying t
-
- Manipulating HTML control VB dot net 2.0
by GaryMcC
- 4 Replies
- Last post
by GaryMcC
- I am working on an application that uses the HTML control to display "chat messages" sent by a server program. The control is currently defined with AllowNavigation false, IsWebBrowserContextMenuEnabled true, and URL defaults to about:blank.
Currently, if part of the chat is a hyperlink, people are allowed to "right click and open in a new window" so that links can be gotten
-
- do not see korean text with Microsoft Agent Genie
by Tom Cubbins
- 2 Replies
- Last post
by Tom Cubbins
- Hi,
I am using the Microsoft Agent Genie to say some
simple korean, that aspect of the code works well,
but the 'ballon text' is not correct.
what's the problem, should the encoding format
be unicode maybe the encoding should be the double
byte asia variety
has anyone been able to correctly display asian
text in the balloon text with Microsoft Agent Genie
-
- Turn on Option Strict temp'ly to find serious issues, but reach 100 errors max!!
by DavidR100
- 3 Replies
- Last post
by DavidR100
- this is really annoying, as I've found turning option strict ON temporarily is a good way of finding potentially serious issues in my conversion to vb.net. However, it results in > 100 errors even in a single source file, mainly converting object to double, or double to integer, but 100's of them and I'm not going to change each of them to use CType/CInt for now as I know they worked in the vb6
-
- KB 928365 Broke my VB2005 app!
by Fibaoptix
- 1 Replies
- Last post
by Madrona
- HI all,
I have an app that I developed many months ago that has been working fine.
After I installed hot fix KB 928365 today, it has broken.
The problem is with the following line:
offence.image1 = Image.FromFile(File)
on execution of this line, the app crashes with out of memery error.
If I uninstall the hot fix, it works again.
If a hard code an image
-
- Retrieving variables/data
by Bradley Reynolds
- 13 Replies
- Last post
by LeonCS
- I can simply duplicate data/variables from one textbox to another on the same form. However, I can't seem to duplicate a data/variables from one textbox on form1 to one texbox on form2. I thought that I could simply code in form2 under textbox1 - me.textbox1.text = form1.textbox1.text. What am I missing
-
- Overriding a double-click of an application's title bar
by sriesch
- 2 Replies
- Last post
by sriesch
- By default, if you double-click on my application's title bar, it will resize the window (maximizing it or restoring it). I wish to override that behavior and do something else instead. What event(s) should I be looking at, or should I be creating my own title bar to do this It would appear to already be too late once the resize event has happened. I'm assuming there's another event somewhere I'm
-
- Repeater control beta?
by ShadeZero
- 1 Replies
- Last post
by JohnHart_MSFT
- I've been coding my own repeater control (well it's specific for my app, anyways) when I came across this power pack site. While it's great news that this is in the works, is there anyway we could get our hands on a beta now I'd rather code my app to a powerpack control than build my own, even if the api isn't solidified.