Paul1975's Q&A profile
Visual Studio Express Editions (Newbie) Listbox.SelectedIndex problem
Hi EDITED post: changed question. This is the very last thing I need to do to complete my first project. I have found that to select an item from a Listbox, the user needs to use the up/down control and then click to highlight anthe item before a call to ListBox.SelectedIndex will return the correct item in the list. Even if a different item is showing in the Listbox, the return is always the last item that was 'selected', How d ...Show All
Windows Forms Changing Windows Forms based on Display Resolution.
I would want to change the Windows Forms.NET to adjust to the display Settings. To do this I would want to get what the display Settings are currently in place. Would any know the API to get the Display Settings You shouldn't&nbs ...Show All
Visual Studio Express Editions why is vb.net printing so difficult?
Hi, I have loads of VB6 apps I am trying to migrate to VB.net and the biggest problem I have is that printer.print has no equivalent in vb.net Can anyone tell me a simple way to print in dot net Thanks Impossible is about right. I just can't see what to type to make something come out on paper, and I have written some neat VB stuff (IMHO) in th epast but this dot net thing has me stumped. Am I missi ...Show All
.NET Development ConnectionLimit behavior
Hello. I noticed that when I set ServicePointManager.DefaultConnectionLimit to 10 and I spawn 20 threads, the first 10 go through fine, which is expected. However, the next 10 seem to be going out one at a time, not simultaneously. I was expecting them to grab the 10 available connections that had been released by the first 10. Is that the expected behavior Thanks, Ever Unlikely.. How do you know that ...Show All
Visual Studio Team System Next Visual Studio (presumably VS2007, Orcas)
I'm just curious about the estimated release of the next version of Visual Studio. Is it going to coincide with the release of Windows Vista, or be before or after We will ship the next version of Visual Studio at some point after Windows Vista. At this stage we can not be more specific than that. ...Show All
Visual C# how to point to a set of parameters using delegate
Hello, I wonder if it's possible to point to a set of parameters or values when calling a function with a delegate. I have 2 forms and I pass delegate to call functions from form1. lets say on form2 i have: public delegate bool CallFuncDelegate(); private int generalX, general Y; public bool Call(delegate, int a, int b) { generalX = a; generalY = b; invoke(); } public bool Func1() { int localX = generalX; int localY = generalY; .... } public ...Show All
SQL Server For Each Loop Oddities
I am experiencing some odd behavior in the Foreach Loop Container and was wondering if anyone else has experienced this. I have a SQL statement from a staging environment that populates an ADO recordset. When I created the variables in the package I specified them as the types that I was expecting (1 Int64 and the rest as strings). However, I kept getting a type cast error when it tried to run through the loop, this error only came about on the ...Show All
Visual Studio Express Editions Im Taking A Class on VB...
How much diffrent is Visual Basic 6 from Visual Basic Express Edition Im going to be taking a class online and its based in Visual Basic 6. My school is getting Visual Basic 6 for us to use there, but I have VB Express at my house. Are the files interchangable Is the coding a lot diffrent The bottom line is, will I be able to start something in one program and finish it in another or visa versa You can ...Show All
.NET Development Installing a dll into GAC
hi all, somebody plz help me............ i have to install a dll which i build in VC++2005 into GAC but fail to do so. when i run gacutil from command line, it says Failure adding assembly to the cache: Strong name signature could not be verified. Was the assmbly built delay-signed . but i built the dll by [assembly:AssemblyDelaySignAttribute( false )]; and if i drag & drop the assembly into GAC , it says the check of the signature fai ...Show All
SQL Server SQL Server 2005 Management Studio can't be found
Sorry if someone already covered this, but I can't find anything about it. I just installed (3 hours ago actually) SQL2005 Standard Edition (from the Launch event) on my machine, and i don't seem to have a shortcut to the SQL Server 2005 Management Studio anywhere. I looked for a likely executable, but couldn't find it anywhere. This wouldn't bother me as much if I could use Enterprise Manager from 2K, but SQL2005 will not allow it t ...Show All
Windows Forms Cannot write to a richtextbox
Hello guys, I'm just a newbie as far as VS2005 and winforms go, so please bear with me on this question. I'm implementing a windows forms application that has tab controls and one of the tabpage containing a rich text box. I have a public function in "Form1.h" that takes in a string as input and outputs it to the text box. public : property String^ AppendValue // PassedValue property { void set(String ^va ...Show All
Windows Forms WaitCursor and form disable
Hi I got an application with a lenghtly task in managed C++. I wish to disable the form to prevent user from doing anything and have a waitcursor (hourglass) when the task is running. this->Cursor = Cursors::WaitCursor; this->Enabled = false; the task this->En ...Show All
Visual Basic When is DLL Main executed?
I am trying to load a dll and make it run code as soon as it is loaded without having anything called. Is dll main like a regular main where it starts running as soon as it is launched If not, how can I create that kind of effect When a dll is understood as a class library, there can be a constructor, that is a public routine that is executed when the class is instantiated. So that when you say dim a as New MyDll that constructor ...Show All
Visual Studio 2008 (Pre-release) How to get the value of the color in some position of a LinearGradientBrush?
Hi everybody,I have a problem about LinearGradientBrush. Here's the code: <Canvas Name="MainCanvas" Height="20" Width="200" Margin="0,0,0,0"> <Rectangle Name="rectLegend" Width="200" Height="10"><Rectangle.Fill> <LinearGradientBrush StartPoint="0,0" EndPoint="1,0"> <LinearGradientBrush.GradientStops> ...Show All
Windows Forms Is there a way to export a datagrid to an Excel or html format file?
Hi all.. thanks for taking the time to help in advance!! :) I've written a win application that has a datagrid which displays certain contents from a database, is there a way to allow the user to export the contents of that datagrid to maybe an excel file or html file so they can print it out themselves I've done a lot of googling and most i could find were for web applications and not winform.. can someone point me in the right direction Than ...Show All
