Topics
-
-
- *Experts*
- Administrators
- 16 replies
- 6.9k views
Has anyone encountered an unhandled exception being thrown while stepping through the debugger? When this happends I am inside a newly created thread and the function I am in is the one pointed at by the addressof(myThread = New System.Threading.Thread(AddressOf postdata). In this case I am in postdata. The message I am receiving while stepping through the debugger is: "An unhandled exception of type 'System.Threading.ThreadStopException' occured in CreditBureauHTTPS.exe Additional Information: Thread was being stopped." I have executed the same code with no problems on two separate machines that are identical to the one I am using. One of the machines has …
Last reply by bonstio, -
-
-
- Administrators
- Leaders
- 3 replies
- 1.1k views
I'm trying to compile a vb file to a dll using the windows vbc.exe file I can almost get it to compile however a few commands come up with Name 'Function' is not declared. The functions are as follows: Mid Len InstrRev MsgBox vbcr Which assembly .dll file do I need to reference to get this to work. I already have the following references: System.Windows.Forms.dll system.dll I've tried referencing Microsoft.VisualBasic.dll as well but it tells me this is done as default. It looks to me like it hasn't as these look like old vb commands. Any help would be greatfully received.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- *Experts*
- 9 replies
- 1.1k views
Dear All, Just a quick question about collections and indexes... Do collections retain their order permenantly via their index? For instance, if I have a collection with 10 most popular vegetables and the fourth is deleted, then do all of the vegetables from 4 to 9 get moved up by 1? If they do, then is there any chance that, excepting through some bad threading, the indexes would become shuffled in any way? Thanks in advance, Paul.
Last reply by mandelbrot, -
-
- 2 replies
- 577 views
I realise this is a simple question but I wonder if anyone can help me with this: Untill now i have been using Datareaders for example; Public Class Catalog Public Shared Function SP_GetBB() As SqlDataReader ' Create the connection object Dim connection As New SqlConnection(ConnectionString) ' Create and initialize the command object Dim command As New SqlCommand("SP_GetBB", connection) command.CommandType = CommandType.StoredProcedure ' Open the connection connection.Open() ' Return a SqlDataReader to the calling function Return command.ExecuteReader(CommandBehavior.CloseConnect…
Last reply by tbcmartinharvey, -
- 4 replies
- 801 views
Ok, I have no problem displaying an alert when a button is clicked or at the end of a particular method. I can also call a confirm dialog when the user clicks a particular button, this is based on adding an attribute to the particular button in the page_load event. What I really really want to do is when the user clicks a button is go to the method called by that button and do some of the processing, then display a confirm dialog (i.e. "you have selected 10 people, do you want to give them a raise?", "OK, Cancel") and based on the users action I then either complete that action or abort it. Now, I have figured a way of calling that confirm dialog in the middle of …
Last reply by mike55, -
- 3 replies
- 1.3k views
I need to locate a control or visual basic.net code snippet or something that will allow me to take a bitmap, search the bitmap for a barcode and read the data from the barcode. Any help with how to accomplish this task would greatly be appreciated.
Last reply by rangelo, -
can anyone point me to simple guide on setting up an intranet. this is for my home. i just want to trial and error some remoting stuff i've been reading about lately. i set up the page on windows xp pro machine and it runs fine on that machine but when i try and hit it from another (xp pro) machine it pops up with a login dialog and it just will not login. i googled this figuring i easily return a how to but all i got were a truckload of sites wanting to sell me there product. ps i do use a router and have no problem sharing documents between the pc's
Last reply by bri189a, -
- 1 reply
- 5.6k views
I have been attempting to trap printer events via the FindFirstPrinterChangeNotification and the FindNextPrinterChangeNotifcation. I am able to trap the event properly if a new job is added to the print queue, but I am unable to retrieve the PRINTER_NOFIFY_INFO and the PRINTER_NOTIFY_INFO_DATA properly after calling the FindNextPrinterChangeNotification. I have been looking at some of the samples in VB, but I am unable to get them to successfully work in C#. I believe the problem may be related to how I have my PRINTER_NOTIFY_INFO wrapper class layed out, in particular its association with the PRINTER_NOTIFY_INFO_DATA class. Any help is greatly appreciated....I have b…
Last reply by danc, -
- 0 replies
- 1.3k views
I want to add a submenu to my programs context menu that will then show the standard Window's Explorer submenu. Any ideas? If anyone has ever used the program Tortoise CVS, it does such a thing. When you choose to Commit a set of files, right clicking on a file in the list displays the CVS menus, but there's also a submenu called Explorer. Highlighting this menu then displays a submenu just like you were in Window's Explorer and right clicked the file there. help please..
Last reply by kasdoffe, -
- 2 replies
- 4.6k views
I am trying to use the DataTable.Select statement and the selection criteria is a string that contains an apostrophe. It looks like this DataRow[] rows = ds.Tables["MyTable"].Select("Invoice='" + invoice_num + "'"); the invoice_num is a string that holds @"test's inv". I have tried setting invoice_num=@"test[']s inv" and invoice_num=@"test\'s inv" but that doesn't work either. Can anyone help me on this?
Last reply by grip003, -
- 3 replies
- 2k views
I dont know if this is the write topic to be posting under but I need to write a c# app that does basically what the LPR command does. We run large laser printers and can LPR postscript data direct to the print queues and I have an application that needs to send it direct (as its security based and needs no intervention). Does anyone have any ideas? PB
Last reply by Nate Bross, -
-
- Administrators
- 4 replies
- 2.7k views
Can anyone give me an idea of how i can force a particular predefined format for the input in a textbox?... in particular, i need to force 2 things (on 2 different texboxes): 1. date entry of the format mm/dd/yyyy 2. entry of the format xx-nnnn-nn (where x=alphabetic and n=numberic) any advice would be greatly appreciated!
Last reply by jalo, -
-
- 3 replies
- 842 views
how can i change this command so that i can use LIKE, instead of " = " in the query (the part in red) ? Private Sub doCommand() command = New OleDb.OleDbCommand("Select Patient_ID, SS_Patient_ID, First_Name, Middle_Name, Last_Name, Date_of_Birth from Demographics [color=Red]where First_Name = ? and Last_Name = ?[/color]", Me.OleDbConnection2) command.Parameters.Add(New OleDb.OleDbParameter("Fname", OleDb.OleDbType.VarChar, 20)) command.Parameters.Add(New OleDb.OleDbParameter("Lname", OleDb.OleDbType.VarChar, 20)) command.Prepare() command.Parameters.Item("Fname").Value() = Me.TextBox1.Text command.Parameters.Item("Lna…
Last reply by SonicBoomAu, -
- 1 reply
- 782 views
Hi Guys Actually im just a bit confused on asp.net page my asp page has html plus some c# code in it like this <%@ Page Language = "C#" %> <script runat = server> ...some code </script> <html> something </html> So, to debug, i change the directive to this <%@ Page Language = "C#" Debug = true%> And i placed my breakpoints.. Everything worked fine.. Only problem was lets say i place breakpoints at line 8, the code stops there, just as i want, but the value for the variable is not displayed when i place my cursor there.. Lets say Line8 has this statement result = i+b; And when i place my cursor at re…
Last reply by bri189a, -
-
- Leaders
- 4 replies
- 1.9k views
Hi there, im using D3D sprites in my 2D game. Im storing textures in jpg and tga files, every time im creating a sprite with, say 150x150 tga texture file all seems to wrok fine, but my sprite's texture is being automatically resampled to fit 256x256. i have absolutely no idea why. any help would be greatly appreciated. ah yes, here is the code: .... .... .... texture = TextureLoader.FromFile(device, @filename); SurfaceDescription description = texture.GetLevelDescription(0); textureSize = new Rectangle(0, 0, description.Width, description.Height); .... .... Width and Height Fields semm to always be 256... :o
Last reply by Fraktalite, -
-
- 0 replies
- 1.7k views
hi I want to make a texture slightly transparent on another. I work in 2D and I read that I have to use the alphablending. The problem is I don't know how to use this. Can you help me?
Last reply by Fraktalite, -
- 0 replies
- 1.4k views
Hi everybody, I have an image which I would like to display darker. Could it be possible to do this using DirectDraw? Here is my code to display the picture: backBuffer.Draw(SpriteDest, spriteSurface, spriteSrc, DrawFlags.DoNotWait); Have I to add DrawFlags in these func?
Last reply by Fraktalite, -
- 3 replies
- 1.6k views
Multi part question: question 1) while running the following code from a windows application: Sub uploadFile(ByVal uri As String, ByVal destFile As String, _ Optional ByVal username As String = Nothing, Optional ByVal pwd As String = _ Nothing) Dim wc As New System.Net.WebClient() If Not username Is Nothing AndAlso Not pwd Is Nothing Then wc.Credentials = New System.Net.NetworkCredential(username, pwd) End If Try wc.UploadFile(uri, destFile) lblMessage.Text = "Congratulations you uploaded " & uri & " to " & destFile Catch ex As Exception lblMessage.Text = ex.Message End Try End Sub I get the remote server returned an error (…
Last reply by nyst, -
- 0 replies
- 1.4k views
Anyone entering the Messenger Activity Contest? http://www.worldsbestapp.com/ They're making a big deal out of it.
Last reply by Diesel, -
-
- Administrators
- 1 reply
- 2.7k views
I'm writing a large application that uses many different .dll's. I've noticed MOST .dll's load initially on first program load. There are a few occaisions where the OTHER .dll's load WHEN those functions are called - sometimes the users go into special dialogs that trigger the functions on those .dll's - which naturally, cause the system to hesitate for the first time while it loads from disk into cache memory. I'm seeking advice on HOW to PREMATURELY load ALL REFERENCE .dll's into memory AT initial load of the application; so that when users click stuff for the first time, it doesnt hesitate seeking disk activity and runs from it's cache. Please help, thanks.
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 60 Guests (See full list)
- There are no registered users currently online