-
- Read File not working
by Chinny
- 2 Replies
- Last post
by spotty
- Morning,
I've created a script using the System.IO setup but i'm having a lot of trouble trying to work out why it isn't working. please see below.
Imports System.IO
Public Sub loadProducts()
Dim sFilename As String 'name of file in directory
Dim sr_ProductsFile As StreamReader 'file reading variable
Dim sLine As
-
- how to replace "unchecked" keyword in c# for vb .net (2.0)
by Javfarary
- 3 Replies
- Last post
by Javfarary
- here is the code I want to convert in vb .net (2.0) ---------c# code------------ public void WriteShort(int value) { buffer_[end++] = unchecked((byte) value); buffer_[end++] = unchecked((byte) (value >> 8)); } ----------------------------- what to use in place of "unchecked" in vb .net (2.0) Please guide me. Thanks Javfarary
-
- running exe from mapped drive
by JMKL1234
- 2 Replies
- Last post
by JMKL1234
- I have a windows console app I wrote in vb.net in which the executable is located on another server in my network, which I have a drive on my machine mapped to. But when I try to run the exe from my machine it just gives me the whole publisher cannot be verified message and then closes, but if I copy the exe to somewhere local, and then run it, it runs just fine. What do you need to do to run your
-
- Anchor Error
by dogs_bollox
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hi,
this is a completely repeatable error so you should have no trouble replicating.
when modifying the anchor property if I do not click out of the property before running the application I get an invalid property error.
Regards
Andy
-
- To get the remainder of a string AFTER the substring do the following.
by Doug Wyman
- 8 Replies
- Last post
by DMan1
- I am confused and or concerned about the difference between the value returned by .length (it counts CHARs) and .INDEXOF
I want to parse off the right hand part of a string after the occurance of a substring and was thinking stringname.substring(stringname.length - stringname.indexof(findstring))
Being new to Unicode and 2 chars per character is the above going to get me in trouble INDEXOF
-
- About c compiler in vb
by Narayanan_N_852dc7
- 4 Replies
- Last post
by Anonymous
- how can i run a cprogram using vb and get the output and errors in the forms
-
- How can I generically specify and populate a Generic Dictionary.
by BhuttCrackSpackle
- 5 Replies
- Last post
by BhuttCrackSpackle
- I am trying to write a function that can create and return a populated dictionary of some type. The type however, won't be known until runtime.
In one call I might need a dictionary of (Int32, String) and on another call to the same function, I might need a populated dictionary of (Int32, Int32)
I think I am getting close, but when I try to add anything to the dictionary, it says that th
-
- Is there such a function as VarWhoseNameIs()?
by Steve Erbach
- 13 Replies
- Last post
by SJWhiteley
- Dear Group,
In another MSDN forum I've asked a question about creating a self-referencing class. There haven't been any takers, however I wondered if another approach to my problem might be solved by either an existing VB 2005 function or a custom function.
The way I see it working goes something like this: you Dim a group of variables that all contain very large bitmaps, so creating an arra
-
- Could not resolve dependent COM reference Interop.VBRUN
by Zippy1243
- 4 Replies
- Last post
by Rajendra G
- I am trying to use an ActiveX control, which I believe was built using VB6, in a Visual C# 2005 Express project. Adding this control to the Toolbox works fine. But when trying to add the control to a form, a "Failed to import the ActiveX control." message results. The build window indicates "Could not resolve dependent COM reference Interop.VBRUN". I have tried running aximp o
-
- need help saving a print image
by Ryn
- 7 Replies
- Last post
by leog naprad
- In my program I have a print routine that prints one or more graphics pages using the PrintPage event. This works fine with print preview, page setup and all the normal things. Now I want to add the capability to create and save a bitmap of the print image instead of printing to the printer. Clearly, all the code is in place to create the print image, I just need to save it. It does not make sens
-
- String Functions
by QWERTYtech
- 14 Replies
- Last post
by QWERTYtech
- Through playing I have noticed that whenever I type the name of a string, for example str, with a . after it a list appears with common and all functions availible.
Commom: Contains EndsWith IndexOf ..... etc.
I am trying to find which functin would accomodate me the best. I am currently using the .Contains to find if a specific "key" word appears in the string I just read in.
-
- Line numbers in stack trace
by BobInIndy
- 7 Replies
- Last post
by neuralsea8
- Using VS05 pro sp1...
When you hit an exception (that has to climb the stack trace to find a try/catch) during debugging, the red icon with the exclaimation point (I forget what they call it) displays all the information on the exception, including the stack trace (which you can copy to the clipboard). We also save this stack trace to the Event Viewer. The issues below is also true with handled
-
- Paint called multiple times
by Randalin
- 2 Replies
- Last post
by Spidermans_DarkSide - VSIP
- Hi! I have complex VB.NET application with needs do draw some diagrams. So I have form with pictureBox when I want to draw a diagram, and a class diagram with loads some data and do all the drawing. If everything is "static" it's ok for diagram to return Image or Bitmap. But I also want to have some events in diagram class. So I figured out that my diagram will have pictureBox in it. Her
-
- Weeknumber
by Thomas Malbeck
- 14 Replies
- Last post
by Dave299
- How do i get the weeknumber in Visual Basic 2005 Express edition
-
- Unbalanced stack Error calling winmm.dll
by ReneeC
- 3 Replies
- Last post
by ReneeC
- I¡¯m getting an pinvoke unbalanced stack error in a call to winmm.dll.
My declaration is:
Public Declare Function mixerGetDevCaps Lib "winmm.dll" Alias "mixerGetDevCapsA" _
(<MarshalAs(UnmanagedType.I4)> ByVal uMxId As Integer , ByVal pmxcaps As MIXERCAPS, ByVal SizeofMcaps As Integ
-
- Designing a program to run in the tray?
by joynerCN
- 4 Replies
- Last post
by decyclone
- I'm looking to design an application that sits in the system tray (nothing on the taskbar) and pops up alerts when they happen. How would I go about this (including something in the tray, hiding it in the taskbar, popping up alerts, and hiding all forms when there's not an alert active)
-
- Find the last item selected in a MultiSimple listbox...
by RobinSpicer
- 9 Replies
- Last post
by RobinSpicer
- I'm trying to find a way to determine which item was selected last in a listbox with a MultiSimple selectionmode. I'm currently doing it using a mouse point in the mousedown event, but I'd like to find a way to do it in either the listbox's click event or the listbox's selectedIndexChanged event. I'm trying to make a listbox select either "ALL" OR some. Any suggestions on how to do this
-
- How do I Convert String that Has "+" sign Into Double?
by more FAQ
- 8 Replies
- Last post
by more FAQ
- I can convert a string with no sign or with negative sign ("-" minus sign) into a double, but I cannot convert a string with positive sybmol/sign ("+" plus sign) into double. Considering the following samples:
Convert to string that has negative sign to double
Dim realnumber As Double
Sample 1. realnumber = Double .Parse( "1.2345E05" , NumberStyle
-
- Can I add Check Box control to Windows Form control "DataGrid"
by K. Ravinder Reddy
- 3 Replies
- Last post
by TheCrash
- Hi All,
Can I add a CheckBox to my DataGrid control of Windows form control. If yes How can I do that. Please help me out.
-
- how to create a picture transparnet
by saran89723
- 3 Replies
- Last post
by narasiman_jayachandran_2b5374
- i want to make a picture transpanent box how
-
- fastest way to load 100k+ entrys in to datagridview?
by Knodi
- 8 Replies
- Last post
by Knodi
- fastest way to load 100k+ entrys from access database in to datagridview Currently it takes over a 2mins to load the it. Does anyone know a fast way to load them or any good other datagrid controls that work with .net 2.0
-
- VB.NET & MySQL
by QWERTYtech
- 3 Replies
- Last post
by Bruno Yu - MSFT
- Okay, I am a complete newbie at this and I was wondering if someone could help me setup a connection in VB2005 to MySQL. I'm trying to write a piece of software that will store information on a centralized server so that it can be accessed from anywhere in our network. Can someone PLEASE help me.
Thanks,
QWERTYtech
http://qwertytech.bounceme.net
-
- Re Opening : Add New MS Access Connection using Wizard
by Rob Joosen
- 4 Replies
- Last post
by Rob Joosen
- Hello,
In another thread I followed the discussion about the fact that when adding a new connection, using the wizard in VS 2005, the following error appears:
"Format of the initialization string does not conform to specification starting at index 0."
The thread is this one:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=133896&SiteID=1
I have the Reg-keys as me
-
- Vertical label
by Ayhan Yerli &#40;TR-NL
- 7 Replies
- Last post
by rkimble
- I would like to add a vertica label on my from, is there somebody can help me with that
-
- What do i use to create a forum site like this site?
by WalangAlam
- 3 Replies
- Last post
by Deepak Krishnan
- What do i use to create a forum site like this site I know the basics in VB.NET, could i use VB.NET to create forum exactly the same like this forum site Am planning also to learn ASP.NET.