guyinkalamazoo3's Q&A profile
Visual Basic FlowLayoutPanel Problems
Hi I find that if buttons are added to a FlowLayoutPanel, the AutoAcroll (via mouse wheel)works. But if the added controls are pictureBox, then the autoScroll does not work. Does anyone know why The code I used is: Dim panel As New FlowLayoutPanel Dim control As New PictureBox 'Button ' panel.Width = 300 panel.Height = 500 panel.Location = New Point(10, 10) panel.FlowDirection = FlowDirection.TopDown panel.AutoScroll = True panel.BackColor = Color.AliceBlue Me .Controls.Add(panel) control.Width = 200 control.Height = 1300 control.BackColor = Color.Blue panel.Controls.Add(control) Thanks. Hi Although new to VB 2005, I have als ...Show All
Windows Forms Change column color in Datagridview
Since quite sometime I am trying to figure out how to change backcolor of a particular column in datagridview. CellPainting event does that but I do not want to use, is there any property available, which can be used easily Please suggest, Thanks in advance. Datagridview.Column("Name").defaultcellstyle.backcolor Dim dt As New DataTable dt.Columns.Add("FirstName") dt.Columns.Add("LastName") Dim dr As DataRow = dt.NewRow dr("FirstName") = "Ken" dr("LastName") = "Tucker" Dim dr1 As DataRow = dt.NewRow dr1("FirstName") = "Joe" dr1("LastName") = "Healy" Dim dr2 As DataRow ...Show All
.NET Development .NET Remoting - Server should forward an ObjRef from one to another client
Hello, I'm developing a client/server application by using .NET Remoting. Client- and server-activated objects works fine. But now I want to to create an object (e.g. StreamReader) on one client and send an ObjRef to the server. Then the server should forward this ObjRef to another client. Afterwards the second client should be able to use this ObjRef and read the file opened on the first client. The problem: in the configuration-file I have to specify the server's url, where the object can be found, but it's different each time. Is there any way to realize this Activator.GetObject takes as parameters a type and a URL and returns a proxy to that remote object. It doesn't matter where you take the URL from ...Show All
Visual C++ Can I use POSIX threads in a atl STA project
I have a library which uses pthreads inside of it. Can I use this library safely in a single threaded apartment project. If I can't what are my options . I want to use this library for building a com component. Thanks I wrote my component a little bit. This component use the C library to send HTTP messages. e.g. myComponent.Send("HTTP data"); Send() method uses the C library internally. The C library method should block until the response arrives and give me the response. The problem is that if the response take a long time to come the method just returns even before the response arrives. If the response arrives quickly it will capture the response. What could cause this kind of a problem. Actually this com component is a d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT won't set LoopEvent property
Hi, I have a problem getting sounds to loop from within XACT. I open my project, open the Sound Bank window, select the sound name and highlight Play Wave - this causes the Event Properties panel to reveal LoopEvent, amongst others. Now, when I try to open the combo box to set "No" to something else, I get a dialog saying: "Object reference not set to an instance of an object." So, two questions: 1. Is there a way around this bug in XACT 2. Preferably I'd like to set the sound to loop from within my code. Is there a way to do this in Beta2 Many thanks =) Mark Hi Mark, I've seen a few variants on this error dialog popping up in the forums, but I haven't bee ...Show All
Visual Basic Selected Value in ComboBox Populates DataGridView - Please Help
'I need assistance on how to Load the GridView By selecting a value in the ComboBox '1. ComboBox is loaded with Satellite SCC #s' From SQL Server 2005 Express '2. The DatGridView is loaded with signals that correspond to the Transponders on the Satellite From SQL Server Express 2005 'The GridView also contains the Satellite SCC #s'. '3. I need the GridView to only load the Signal that Matches the Satellite SCC #s' that are Selected from the ComboBox. '4. So when you click the SCC # in the ComboBox, it will search the Signal Database Table for all the matching 'Satellite SCC #s' and then load the signal information into the GridView. DataBase: SQL Server 2005 express Language: VB.NET 2005 FrameWork: .NET 2.0 Imports System ...Show All
.NET Development Connection Timeout
I have a problem with Connection Pool running out of connections. I have a site which can get upwords of 1000 conncurrent hits at once. We never had problems with the connections when using classic ASP. But now we are running into the issue with timing out before getting an available connection. We are closing all of the connections. We have bumped up the max pool size to 700 but i don't feel this is really the right solution. Should we not use ADO.NET and go back to using ODBC as stated before we don't have this problem with our classic ASP which uses ODBC connections. Thanks for any help! If you actually have the potential for a large number of concurrent connections, I recommend going ahead ...Show All
Visual Studio Team System Microsoft.TeamFoundation assemblies
Hi Guys, 1. Who installs Microsoft.TeamFoundation assemblies (Visual studio 2005 or Team explorer or team foundation server or windows service pack, etc.) AFAIK: All TeamFoundation assemblies are installed when we installed vs 2005. But I want to confirm. 2. If I have visual studio 2003 (.net 1.1) but not visual studio 2005 (.net 2.0), can i still use Microsoft.TeamFoundation assemblies If yes, from where I can get all assemblies Thx in advance. ...Show All
Visual C# How can I exit program
Hello folks, I m new to C#. I dont know how to exit program at some point. I try to use "Enviroment.Exit(0)", but got "SecurityException unhandled." error at runtime. I also got that error when using File.createText(), Can anyone tell me how to avoid them as well Cheers, Elton Thanx again, Wes I also read that page so I use Eviroment.Exit(1). When I run the program at home, everything is fine. But , properly, as u said I dnt have enough permision to kill a process...... So. do we have some alternative way to halt a program once we catch a exception BEST REGARDS, Elton ...Show All
Windows Forms Scroll Event in List Box
Hi how would i handle the scroll event in List box. Thanks and Regards Jayesh Are you asking this because you want to dynamically load list view items as they scroll into view Perhaps you should look into using virtual mode in the list view, which will notify an event when it needs a list view item. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=191033&SiteID=1 ...Show All
Visual Studio how to install Visual Studio 2005
I was able to install the .net framework 2.0 for my 32bit system, but am now having trouble, or don't know how to, install Visual Studio 2005 make sure your user account has admin priviledges to install the software. I doubt very much this would help but you can try to mount the images to a virtual CD using say, Microsoft Virtual CD (MSVCD) or some other 3rd party CD mounter tool, or even burn the image to CD and start the installation from there. Also make sure you have enough disk space for the installation ...Show All
.NET Development Generating sql query using C# code
How do i generate sql query using my frontend windows application C# 2005. ie developer has to select table and columns from the list box. it should look like our add query in the sql express 2005. Thanks Arun Thanks Paul June A. Domag Exectly you are correct. but i want some sample code. could you pls help in this case. Thanks Arun ...Show All
Visual Basic Passing a Byte Array to a COM object expecting a variant
I'm trying to pass a byte array to a COM object, SHDocVw.dll, which expects a variant variable. VB.NET won't let me do this. I understand that the variant type is no longer supported in VB.NET, and I have come accross several references to marshaling, but none that make any sense to me. Anyone have any ideas [my appologies, but as this is an urgent issue for my project, I posted this issue (sort of) on another thread with a subject meant to attract a different knowledge base - sorry for the duplication] Take a look at the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=632804&SiteID=1 You basically only need to send it as an object, and the marshaller should take car ...Show All
Visual Studio Tools for Office How to get the Excel dialog that allows to select multiple cells?
Hi team, I am working on a project, and am looking for a way to click a botton on the Actions pane that opens an Excel dialog like the one in the chart data area selection that allows me to select several cells by dragging the mouse over them; even using Ctrl- and Shift for multiple selections. The resulting cells should be shown on a textbox like "A2:A7" or "A2;A4:A7". I am programming the application in C#. Thanks for your help Doriak Misha, Thank yor for the answer. I have only one final question. I tested the method, and saw that the returning string (rng.get_address()) does not returns a sheet name in case that you select a cell range different from the current ...Show All
.NET Development Tracking Incoming Call
Hi, I have a hp iPDA using windows mobile 5.0. I would like to write a program than catches the incoming call. IT will be able to displpay on a text file and every incoming call a pop-up box will appear on the pda. I dun know where to start so in need of help asap. Thanks worried ...Show All
