-
- Force asynchronous method to terminate immediately
by Mark The Archer Evans
- 9 Replies
- Last post
by el_d
- Is there anyway of forcing an asynchronous method to stop immediately
You can do Thread.Abort() but i'm not sure how to determine the thread that the async method is running on. I know you should place periodic checks in your async method to see if the method is pending cancellation but I also need to be able to immediately stop the thread.
Any ideas
-
- DataGridViewButtonColumn
by Keyth
- 2 Replies
- Last post
by Keyth
- Hi.
I have a DataGridView that I add the columns to at runtime.
The datasource has a boolean type column and I want to be able to change the button text according to the boolean value.
For example:
If the boolean value is true then the button text should be "Unallocate" but if the boolean value is false, the button text should be "Allocate"
Dim
-
- Arithmetic operation result in an overflow ERROR
by blackspider
- 6 Replies
- Last post
by GregThurman
- What's is Arithmetic operation result in an overflow exception Public Function saveMultipage(ByVal bmp As Image(), ByVal location As String, ByVal type As String) As Boolean If Not (bmp Is Nothing) Then Try Dim codecInfo As ImageCodecInfo = getCodecForstring(type) Dim i As Integer = 0 While i < bmp.Length If bmp(i) Is Nothing Then ' brea
-
- Drop Down ListBox In Textbox
by Nabeel Allana
- 9 Replies
- Last post
by nogChoco
- Hey guys, i need some help; I have a textbox and was trying to have a listbox drop down when you type something; pretty much exactly like the visual studio. I cannot use a DLL to do this as the textbox is part of another DLL for syntax highlighting. Please reply if you know anything
-
- need help with a Database Connection
by JayMc100
- 1 Replies
- Last post
by Bruno Yu - MSFT
- I'm fairly new to VB and visual studio so this question should be easy. I created a easy application that has a few forms. My application connects to a Oracle database by a using the .Net Framework Data Provider for Oracle for OLE DB connection. I added a new data sorce and I've add datagrids and linked labels and text boxes to my form(s). I've saved the connection string and stored it in my appli
-
- asp.net call to sub in code from asp:button only works once?
by uwjosh
- 3 Replies
- Last post
by kleinma
- Hello,
I'm a relative newbie at dealing with asp.net but I'm giving this a shot anyway...
I have a web form with a table that on page_load generates four rows with textboxes so you can put a name in them. I added a button that I want to call the sub that generates the rows and adds them to the table if the person filling out the form wants to add more rows (if they have more names to
-
- Library not found error
by OneEyedJack
- 1 Replies
- Last post
by nobugz
- I've written an app that works fine on XP machines, but when installed on Server 2003, it throws the following exception.
" System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at S
-
- How to return a selected file name in grid?
by Simon Hooy
- 4 Replies
- Last post
by spotty
- I have listed a list of file in a directory into the grid.
I want to erase a selected file in the grid with kill funtions.
How can I return the name of the file been selected in the grid so that I can use the coding below to delete it
Thanks.
Code Snippet
For y = lstProjects.ItemCount - 1 To 0 Step -1
If lstProjects.ItemSelected(y) = True Then
kill("directo
-
- Disable keyboard input
by Simone1
- 6 Replies
- Last post
by Riquel Dong ¨C MSFT
- I am developing an application that will be used in a kiosk, available to the general public. The application will get its input from scanned/swiped devices, such as credit cards, bar codes, mag stripes, etc... and from a touch screen. There will be NO physical keyboard or mouse. I need to be able to trap every key stroke that comes into the application. In developing and testing, I have seen wher
-
- Unclickable Form
by Zooz
- 1 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hello,
How could i make an unclickable form you know if i click on it then the thing behind it will be clicked.
-
- Zed Graph - Simple Clear question
by xplosiv_1
- 1 Replies
- Last post
by DMan1
- Hi,
Has anybody used Zedgraph if so can you tell me if there is a clear graph
function, as i am allowing the user to add up to 4 curves and would like to
have a clear button to empty the chart so the user can add 4 different charts.
Many Thanks,
Andy
Note: - you can find the zed graph homepage at http://zedgraph.org/wiki/ or just google
search zed graph ¨C The page seems
-
- SortMode in DataGridView with DataTable DataSource
by jothmc
- 6 Replies
- Last post
by rkimble
- I am trying to disable the ability for users to sort records in a DataGridView and not having any luck thus far.
I have a DataTable that has two String columns defined in it, but no records in it when I make it the DataSource of my DataGridView during initialization of the app. From what I could tell on the forums, I needed to set the SortMode of each of the columns to NotSortable, so I hav
-
- Run project without installing it (framework is present)
by gfu
- 1 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Hi there! Is there anybody more experienced than who can answer my question Here it is : i want to run a project i created with vb 2005, from a flash disk without having to install the project in the computer, resulting in being able to run it on any computer i want (and have a usb port(!) and the framework of course) without having to install it. Be carefull : all the computers i want to run it H
-
- Problem with Getfiles and Login Information on the source pc.
by JohnWilliams
- 3 Replies
- Last post
by DMan1
- I am using the following code to get a list of filenames from a directory on a pc on our network.
Dim query As String
Dim x As New System.IO.DirectoryInfo( "\\shipping\ShippingC\KEWILL\CSWIN\ARCHIVE" )
'Dim x As New System.IO.DirectoryInfo("C:\KEWILL\CSWIN\ARCHIVE")
Dim s() As System.IO.FileInfo = x.GetFiles( "*.cs" )
Dim a As New
-
- Shaky Form w/ BackGroundImage
by puffzotty
- 5 Replies
- Last post
by TheMJ
- I am developing a Windows Application and I set BackGroundImage property to a JPEG file for a forms.
I have few controls (such as Labels, Buttons) on each of these forms and have these contorls' BackColor property set up to "Transparent" so that Labels do not have grey boundary(default BackColor) around its content.
But every time the form loads and when the Label's content
-
- WebClient UploadData problem.
by Alessandro Minoli
- 3 Replies
- Last post
by Martin Xie - MSFT
- I have an application (a COM object) that references an external Web service. I use WebClient.UploadData method for sending an Xml file to the Web Service. This is a portion of code I am using. ... try { byte[] responseArray = null; responseArray = myWebClient.UploadData(szYhamUrl, byteArray);
szSMSResponse = Encoding.ASCII.GetString(responseArray); doc.LoadXml(szSMSResponse); XmlNode Node=
-
- product key in setup project?
by OmarMallat
- 6 Replies
- Last post
by Ting Wang - MSFT
- I'm using Visual studio 2005 professional edition... and I need to make a setup for my project... I add a setup project and I configure it.. but how to set the setup project to prompt for a product key that I define
-
- Splitting strings on ","
by Tryin2Bgood
- 6 Replies
- Last post
by Solitaire
- Can someone teach me how to write a method that will split strings on comma's and semicolons...like if i have
d,d;d,g,g;f
I want it to really be
d
d
d
g
g
f
I know i have to do something like
Public Shared Function Splitter(ByVal ThelistofStrings As String) As String
TheListofString.Split(","c)
End Function
But ot
-
- Reading cell values from an Excel spreadsheet
by Ken Warthen
- 3 Replies
- Last post
by Sam B Nkosi
- I have a VB project where among other things I'm trying to populate some text boxes with values from an Excel spreadsheet. I need some direction on where to find or how to write appropriate code to read the cell values from a particular worksheet in an Excel workbook. Any help is greatly appreciated.
-
- create alternative DLL directory path for DLL loading
by s00263668
- 4 Replies
- Last post
by s00263668
- Usually, we have to define the directory of DLL in our VB code if we want to load a particular dll file. e.g., "..\xx.dll"
My question is, is there any solution, to provide alternative directory path fo DLL loading So that, if the program unable to load DLL file from path 1, it still manage to load DLL file from path 2.
Thank You.
-
- Variable in my SQL query string..help
by Louis Cypher
- 5 Replies
- Last post
by jamesparsons@cox.net
- OK, this is what I am working with. I'm trying to get data from an access db. If I hardcode in the tech# then I get exactly the info I want: Dim cmdText As String = "Select * FROM tblSheds WHERE TechNo = 'tech4567' " but what I want to do is pass the tech# from textbox1 to the query so I tried: Dim cmdText As String = "Select * FROM tblSheds WHERE TechNo = 'textbox1.text' "
-
- Managed' has exited with code -1073741819 (0xc0000005)
by redbeard411
- 2 Replies
- Last post
by redbeard411
- I am not able to run the VB program in debug. It starts up the closes right down. Here is what the output is:
'Very Busy Mail Order.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Very Busy Mail Order.vshost.exe' (Managed): Loaded 'C:\WI
-
- Please help with SqlTransaction problem in VB.net
by pvphuc
- 6 Replies
- Last post
by Bruno Yu - MSFT
- I am using SqlTransaction to use SqlDataAdapter to update data into DB with SqlCommandBuilder and I got a probelm with it. This is my code :
If dsCustomListSetting.HasChanges() = False Then Exit Function Dim sqlTrans As SqlTransaction = Nothing Try UpdateCustomListMaster() 'Just Update data in DataTable UpdateCustomList() 'Just Update data in DataTable If (ClsDBAccess.
-
- Status Strip Help!!!! StatusStrip
by QWERTYtech
- 4 Replies
- Last post
by QWERTYtech
- Hello MSDN world,
I have a StatusStrip in my project. I want to display a few things in it:
The Date/Time
User logged into the computer
Version of Windows
Thanks for any help,
QWERTYtech
-
- Change node backcolor in treeview
by vin25
- 2 Replies
- Last post
by vin25
- I have created a treeview
whene i click on any node in treeview it shows the corresponding notes in the texbox next to it
I want to change the back color of the node clicked
I able able to do till this
however I am not able to change the backcolor back to default
I am not able to cycle through the nodes in the treeview
I would be glad if some one could share tht code or tell