-
- How to run function using variable name
by chrisanderson
- 4 Replies
- Last post
by chrisanderson
- I have an app with lots of functions. The app only runs one function
called from an external program. At the moment i have a long if/else statement like
if functiontorun = "function1" then
function1()
elseif functiontorun = "function2" then
function2()
else etc etc
I would like to remove the if/elseif statement, can i run the function from the contents
-
- Convert VB script to C#
by karthik448
- 2 Replies
- Last post
by JohnWein
- Hi all,
I have the following code for testing WMI for a driver. I got these vbs samples from OSR and was wondering how to port these to a C# application.
Code Snippet
Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("nothing.log", True) Set Service = GetObject("winmgmts:{impersonationLevel=impersonate}!root/wmi"
-
- I want to post some article
by Ganesh Rangarao
- 2 Replies
- Last post
by Ganesh Rangarao
- Hi
I want to post an article that describes "How to use web site administration tool" in VS.NET 2005.
I would like to know a site which is widely viewed and post it for free.
Thank you in advance.
-
- My BMP to JPG program.
by ::Bull
- 1 Replies
- Last post
by Tall Dude
- This is going to be my new push for a finished project that does something usefull, but I need help getting started first. I have everything basic down, such as the buttons and menustrip. So far, I have added the openfile feature and it displays your image in an image box. I need to know how to convert the bmp file to a jpg file and have it ready for saving. Thanks in advance.
-
- Not sure how to create this class design...
by Denvas
- 14 Replies
- Last post
by Denvas
- I was wondering what would be the syntax to achieve an end result of something like this: Dim MyClass as New Class1 With MyClass.User .Name = "Dude" .Email = "Dude@email.com" End With With MyClass.Employee .Name = "Whoever" .Email = "whoever@comp.com" End with I've tried classes within classes, structures within classes; but I keep getting all kind
-
- Looking for a collection (that is generic)
by Marc Allard
- 6 Replies
- Last post
by Marc Allard
- Hello,
In VB6, I use some collections. I can access the collection by either a key, either the number of the element in the collection.
In VB.NET2005, I want to use the same way to work. The only way I have seen is the Collection that works exactly as in VB6.
The problem is that is is not generic, so with Option Strict On , I need to do a DirectCast everytime I access an item in a col
-
- C#.net user control in VB6
by Neon
- 1 Replies
- Last post
by Jonathan Aneja - MSFT
- I have created a simple usercontrol in c# . It consist of three textboxes.
I have written a method in usercontrol to set the values in these textboxes
public partial class Win : UserControl
{
public Win()
{
InitializeComponent();
}
private void button1_Click( object sender, EventArgs e)
{
textBox3.Text = textBox1.Text + textBox2.Text;
}
public
-
- Store RTF text as string on clipboard?
by Chimp
- 2 Replies
- Last post
by Riquel Dong ¨C MSFT
- I have some data in a DataTable, including a column of RTF (Rich Text Format) data. I wanted to be able to create a comma or tab-delimited string which I could then put on the clipboard, and then retrieve back later on or send it to Excel. I used a StringBuilder to 'build' the text string. What happened, though, is that after the first string line was created (separated by a carriage return/line
-
- getting Processor Id (wmi) Under Vista UAC
by jason572596
- 0 Replies
- Last post
by jason572596
- i making a sharedware in vista. but when i start vista, my application using wmi to get processor ID Return Empty String, Unless i run it in admin mode
(Once run at admin Mode, the code is ok until you restart vista.)
i read a lot in msdn , but found nothing useful.
my question is, how can i get the processor id under Vista UAC is there any other methods to do this.
this is my
-
- Custom controls folder
by Kristian73
- 4 Replies
- Last post
by Kristian73
- Hi to all,
I'm working with WinCE OS.
I created a custom control "RectangleControl.dll" with C# language in VS2003.
I created an application "MyApp.exe" with VB language in VS2003.
The application "MyApp.exe" integrates and use the custom control "RectangleControl.dll".
If I put "MyApp.exe" and "RectangleControl.dll" in th
-
- going from vba to vb 2005 with autocad
by Uriah
- 2 Replies
- Last post
by Rudedog2
- I have been coding under vba in autocad for quite sometime. I am currently using autocad 2006 and want to use vb 2005 with it.
The question is , is there any guides that will make my transition from vba to vb 2005 easier And is there a article that will help me use vb 2005 with autocad
-
- vb 2005 and websites
by rev yoda
- 2 Replies
- Last post
by rev yoda
- hey, i have made a website with an sql data source in Visual basic 2005, and i have created a menu in a different form in a different project. my question is how would i load the website through the menu on the form. any answers appreciated.
-
- Opening an existing excel file
by HELPNewToVB
- 13 Replies
- Last post
by Naga Satish Rupenaguntla
- Can someone help me out with the syntax of opening an existing excel file using a button click event. What to dim and all I know it should be easy, but I'm a little confused. I've seen a few different ways...Also how many sheets are automatically in a workbook that you create 3 If so I need 4! I'm using Excel 2007 and Visual Studio 2005. I've already referenced the Excel Object library...
Th
-
- Application disappears from taskbar without any reason
by Eelko Heuvelmans
- 3 Replies
- Last post
by OneLuckyGuy
- Hi All, I'm having problemens with my VS2005 .Net2.0 VB.Net Windows forms application. When I start the application and work with it for a while it somehow disappears from the taskbar.To get the Application button back on the taskbar I use Alt+Tab to switch to the application and voila,.. the taskbar button is back. In my code and form I can't seem to find anything strange. ShowInTaskbar is set to
-
- Stacktrace tab gone
by BobInIndy
- 1 Replies
- Last post
by spotty
- Using VS05 Pro SP1...
I have lost the stack trace tab that is at the bottom of the debug screen while debugging that shows you the stack strace when you hit a break point. I don't see how to make it re-appear. Any suggestions I don't see anything in the View option that would do it.
Also, how do you remove tabs from the bottom or right that you don't use I don't see anyway to remov
-
- VB.Net/Crystal Reports
by Sanjeev Kr. Gupta
- 1 Replies
- Last post
by Bruno Yu - MSFT
- How to generate .ttx file in vb.net 2005 & crystal Reports 10
-
- Convert Delegate
by Andrew Ross
- 2 Replies
- Last post
by Andrew Ross
- Hi,
I hope this is the right place to post this.
I found on www.netfx3.com a sample workflow application and it has a section of code that was written in C#, we need it in vb. I have worked with delegates before, but never like this..
Dictionary < string , Activity > activityIdToActivity = new Dictionary < string , Activity >();
Walker walker = new Walker ();
-
- Which is better to use? SQL Server 2005 Express or MS Access 2003?
by WalangAlam
- 2 Replies
- Last post
by WalangAlam
- Which is better to use and/or faster SQL Server 2005 Express or MS Access 2003 I am using Visual Basic.NET 2005 Standard Edition and dealing with 5,000 to 10,000+ individual records. What if my target PC doesn't have MS Access 2003
-
- Calling an Unmanaged C dll from VB.Net II
by Ibrahim Y
- 5 Replies
- Last post
by Ibrahim Y
- Environment:
Win XPx64
VS.Net 2005
I am forcing the compile as a 32bit only application.
I have been trying to pass a string to a C DLL. Basically the string is a file path sch as "D:\Arc2Cad\Test\MyFile.shp"
The DLL returns an error message saying the path "D" has an improper file extension.
I could send the string "ABCDEFG" and
-
- Use of VB 2005's ImageList Upgrading from VB6
by mmyrt
- 2 Replies
- Last post
by mmyrt
- From my side of the World, Good Evening to You All!!
I' m asking your assistance once again regarding
upgrading from VB6, this time I' m enquiring about
the use of ImageList.
I was instructed to upgrade from vb6 the following:
Case 0
Image1.Picture = LoadPicture("c:\animals\gorila.bmp")
Case 0
PictureBox1.Image = New Bitman("c:\animals\gorila.bmp&qu
-
- API - Unable to simulate +/- mouse scrolling
by Traps
- 14 Replies
- Last post
by Nicolas_qc_au
- I am trying to send a mouse event using data from a WM_MOUSEWHEEL event that I saved in eventmsg.
I am not able to determine from the eventmsg paramH or paramL if the mouse was scrolled up or down. If I can determine that I can simply make WHEEL_DELTA ( 120 or -120) to send a 1 click scroll up or down in my mouse_event statement.
My question is, how can I determine mouse scroll dire
-
- Hideable Panel
by QWERTYtech
- 5 Replies
- Last post
by SJWhiteley
- I have a Panel im my program and I was wondering how i can make it hideable. I want to have the small triangle in the dividerbar so that when u click on it, it auto hides.
QWERTYtech
-
- incrementing rows after the one inserted in a DataGridview
by hazz
- 4 Replies
- Last post
by dotnetsr
- Given the creation of a DataGridView contents
With Me.DataGridView1.Rows For i = 1 To nRows .Add(i) .Item(i - 1).Cells.Item(0).Value = i .Item(i - 1).Cells.Item(1).Value = sChannelName.ToString next i End with
I am trying to insert a row at any point in the grid and move any subsequent rows up by one.
Sub InsertRow(ByVal iRowPosition As Int16) With Me.DataGridVie
-
- Mask: optional but no spaces. Number or numbers only textbox entry.
by IceAngel89
- 4 Replies
- Last post
by spotty
- How do i create a mask that accepts numbers 0-9, no spaces, and at least 1 (length > 0) currently i am using If - else for the at least 1 char condition If MaskedTextBox.length = 0 Then ... End If but for the 0-9 and no spaces , optional(but at least 1 character) i tried using 099 but spaces can still be entered ResetOnSpace property set to true didn't work i thought of using a KeyDown e
-
- thread timers and garbage collection
by sriesch
- 2 Replies
- Last post
by sriesch
- I have created and started a thread timer in the application event sub "myapplication_startup" using the following code:
Dim TheThreadTimerStateObj As New ThreadTimerStateObj
Dim TimerDelegate As New Threading.TimerCallback( AddressOf TheThreadTimerStateObj.ThreadTimerTask)
TheThreadTimerStateObj.TimerReference = New System.Threading.Timer(TimerDelegate, TheThread