Ashok76's Q&A profile
Visual Basic Renamimg an object
Hi, I noticed that when you rename an object at design time that this is what the code looks like: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDecide.Click Now I renamed my command button cmdDecide. I'm used to VB6 (using VS2005) now. In VB6 the buttons name normally came after the private sub but here I see it still has the generic name that it was given by VB 2005. I do notice that the name I gave it comes after the handle event. Is this right and if I want to refer to it in another piece of code would it respond to the cmdDecide name. Thanks...Newbie ...Show All
Windows Forms Adding a new "blank" record to edit
I have a bunch of controls bound to a dataset. When I bring up existing data and make edits, all is well. But I'm missing the boat completely when it comes to adding a new blank record to be filled in. I try adding a new row, but just get DBNull exceptions. Where am I going wrong You're probably having the "two different&n ...Show All
Windows Forms ClickOnce Deployment And Browsers
Can ClickOnce application deployed using any browser. I have read somewhere it requires in 5.0 to install. but What about those clients that has Netscape, Firefox,Mozilla and opera. How will we install our application on those clients regards Sarika Is there any alternative available to run ClickOnce deployment on other browsers Like the following article says that a plug in for firefox is available http://blogs.msdn.com/saurabh/archive/2006/03/02/541988.aspx regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Program not working with pix?
Hi, I am trying to profile a Dx app with pix. The app is large and takes a few seconds to load up, but it otherwise works fine at about 5 frames per second. I recently added some shaders that made it run this slow which is why I'm profiling. Problem is, is that on pressing the pix start experiment button it doesn't run properly. It just loads a blank frame window and then nothing happens. I assume the profiling hasn't started as I set the trigger to the key ctrl+s (which I havn't had a chance to press). In any case I've given it some time and I thought the idea was that the program was to run at rougly normal speed until the trigger was a ...Show All
Windows Forms OnLoad processing
I have an app that currently loads data from a number of DBF file into a list box. This process can take up to 20+ seconds to run. Currently I have this process run in the forms onload event. The application is really useless without this listbox data. The wait is not the issue, the issue is that my form does NOT displ ...Show All
.NET Development Common Language RunTime Debugging Service
Hi, We have built application in C#. This exe works fine with small Reports. But failed and give following error message whenever we try to run a big reports/processes: ReportGenerator.exe Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process ID=0x14 (1300) ...Show All
Visual Basic Help urgent ------ crystal reports ado delay
Hi, Im using crystal 9 and i have 26 sub reports which is controlled by vb dot net code. I have noticed it takes 3-4 seconds when i set the connection string on the main report which has one table. Ive run a file monitor profile and have found a 4 second delay as crystal searches for the correct dll. Im not sure if this is a red herring or not Any ideas please 471 10:24:30 AM svchost.exe:1080 OPEN C:\WINDOWS\ SUCCESS Options: Open Directory Access: All 472 10:24:30 AM svchost.exe:1080 OPEN C:\WINDOWS\ SUCCESS Options: Open Directory Access: All 473 10:24:30 AM aspnet_wp.exe:2820 QUERY INFORMATION C:\Program Files\Com ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dramatic memory leak in DrawText
I've been banging my head against the wall for the last few days trying to track down the source of a rather big memory leak in my Direct3D-application. Turns out the culprit seems to be the DrawText function. Let me explain exactly what happens: I'm using a variable width truetype font (Times New Roman) created through D3DXCreateFont. I'm using this in various parts of my application, but the part where the problems are easiest to notice is in my custom UI textboxes. I use a function called InsertText to add new characters to the printed string, and everything I initialize is cleaned up properly afterwards. The problems only truly beg ...Show All
SQL Server Groupings in Matrix Layout?
Hello, I am trying to come up with a Matrix report using RS 2005 that looks like this one below. I have row data: question, columns data: Ethnicity and Gender, detail data: Gender average response and Ethnicity average reponse. I utlilized Report Wizard to create a report in a Matrix format , however I wasn't able to have Gender and Ethnicity column on the same line. The report wizard groups columns so Gender is a subset of Ethnicity or Ethnicity is a subset of Gender. How can is solve this issuee so that Gender and Ethnicity data is presented in a Matrix format and Gender and Ethnicity are not part of each other. Thank you! ...Show All
.NET Development Error connecting to TCP listener socket on same machine
Hi pals, I have a problem which is driving me mad. I am using a TCP socket to listen for incoming connections and another TCP socket to connect to this socket asnychronously. here is the code snippet: The server socket on a new thread: Private Sub StartListening() 'create listening socket tcpServer = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) ListeningDone.Reset() Try 'bind listening socket to port While True tcpServer.Bind( Me .LocalEndPoint) tcpServer.Listen(500) tcpServer.BeginAccept( New AsyncCallback( AddressOf AcceptCallback), tcpServer) Liste ...Show All
Windows Forms Panels in the StatusStrip
Is there any way to add panels to the StatusStrip , like there is with the StatusBar control It seems the StatusStripPanel class from the Beta was removed. I can't find any information regarding why it was removed. Thanx in advance. Hi, We have two beta versions of VS 2005. Many features have changed. StatusStripPanel is also removed. Why you need that Did you have any special request If you still have any concern, please feel free to post here. Best regards, Peter Huang ...Show All
Visual Basic Referencing Controls created at runtime
Ok, this has really got me stumped, think im slightly out of my depth as far as this is going but determind to make it work. Have created a Windows application that, on a button press adds several new controls. to the form. Some of these are text box's that I need to reference in my code, and get there data in to an external file. Also to make it difficult my control names are autoincrementing so I dont have any problems referencing. I tried writing a for loop to loop thru my increments reading the data out into a difrnt rich txt box that I would then call the save file procedure on. That didnt work because I was trying to call a .t ...Show All
Windows Forms How do I get a static background image in a ListView
I've got a nifty little program written in C# 2.0, that has a ListView as one of it's primary controls. It takes up some 3/4 of the form. I've got a background image in it, so it looks good on the load of the form, but when the ListView is scrolled, the image scrolls with the text. Everyone I've talked to at Microsoft about it has told me that it makes sense to have a static background image, and they aren't sure why it isn't like that, but nobody can tell me how to get it. I've even went so far as to override the paint event to give it a transparent background, and dropping an image into a control behind it, but apparently that requires a l ...Show All
Visual C# How can I display an image stored as OLE object in MS Access DB?
Hello, I am using MS Access and I have an OLE field that contain some images. How can I get it displayed on the form. Your help would be greatly appreciated. Use this code: FileInfo lFileInfo = new FileInfo(System.Convert.ToString(FPath(imagenumber))); FileStream lFileStream = new FileStream(System.Convert.ToString(FPath(imagenumber)), FileMode.Open, FileAccess.Read); byte [] imageBytes = new byte [System.Convert.ToInt32(lFileStream.Length - 1) + 1]; lFileStream.Read(imageBytes, 0, imageBytes.Length); lFileStream.Close(); email me for the full code @!cbmorton!@!gmail.com! ...Show All
SQL Server Adding parameters to a report model
I have a report model (.smdl) that I want to pass a parameter to from a url. The parameter would drive what data was available to the user in the data source view. I am able to do this in a standard report but can't find a way to add a parameter to the report model .dsv. I tried adding a where statement and it says that I have to declare the parameter, when I try to declare the parameter it says that the Declare construct is not recognized. How can you do this - a simple way. Thanks - Bill ...Show All
