gdb's Q&A profile
SQL Server Fill in page
Hello, My current reports are too large for printing but good for viewing. Can I set some parameters to fill reports in single page by width Thanks Are you asking if you can have a report dynamically shrink so it always fits on a single page If so, the answer is no. You can set the page height or width in the Report Properties dialog box. ...Show All
Windows Forms add an empty line to combobox?
hello, I have two questions. 1) When using Databinding with combobox, the application shows the first record automattically inside the combobox. I want it to show nothing until the user selects drop down tab. When user selects drop down they should be able to see the available choices. How do i do this 2) I have another combobox that I don't want to populate until the selection is made in the first combobox. so how do i keep the combobox2 visible and unpopulated until the selection is made in first combobox (Making a selection in first combobox gives me a value that i use for filtering purpose for second combobox) I am very new to C ...Show All
SQL Server Why is this slow?
The query is just... select name, max(date) from myTable group by name myTable had a clustered index PK, also non-clustered indexes on name and date. There are approx 1,000,000 rows and there are only 3 distinct names. This takes 10-15 secs to execute, even running directly on the server. Server trace says duration = 100, reads = 100 Profiler says CPU=20000, reads = 20000, duration = 10000 What on earth is going on ! Have you looked at the execution plan I'm betting that your nonclustered indexes aren't even being used -- neither of them provide access to ...Show All
Windows Forms how to limit number of instances of a form being opened?
I have a btnAddNew on my frmMain which opens frmAddNew for adding new service record: What can I do to make sure the no matter how many times the btnAddNew is clicked, the frmAddNew will only have one instance opened. this is the code under btnAddNew_Click: //open up frmAddNew frmAddNew frmAddNew1 = new frmAddNew(); frmAddNew1.Show(); Also, I have a btnPendingServices, which opens frmPendingServices, I want to make sure user can only open no more than 3 instances of frmPendingServices. the code under btnPendingServices_Click is: //open up frmPSV frmPSV frmPSV1 = new frmPSV(); frmPSV1.Show(); Pl ...Show All
Visual Studio 2008 (Pre-release) Is MSMQ broken??
The following simple example doesn't work properly. It was built using VStudio 2005 and both the machines involved have WinFX Nov CTP installed. It appears that MessageQueue.Receive only works correctly with a queue on the local machine. This also prevents ServiceHost from working correctly with MsmqIntegrationBinding - which is how I discovoered the problem. I have tried this code in both directions between the two machines with the same results. Local queue access works fine, but remote queue access appears to be broken. Writes are OK, and the first read is ok too. Subsequent reads just hang the calling ...Show All
Visual Basic How to Read, Write, Modify & Remove Application Settings From Config File Using VB 2005?
.NET Framework 1.1 provides System.Configuration Namespace which exposes methods for reading information from the config file, but there are no methods for modifying the contents. Is there anyway this can be done using Visual Basic 2005, without implementing a custom class I have already set it up to use this sort of settings setup and I have used the My.Settings.Save() command after having made a series of changes. I set it up so that there are 18 button name and link settings and 5 user name, password and limits (eg is admin sort of things). I get the user name things to work perfectly, which can be changed by an admin. ...Show All
.NET Development SQL Server not compatible with .net Framework x64?
Hi. I'm trying to install SQL Server Express in a Windows XP x64 Pro. I got a message that tells me to uninstall .net Framework and all SQL components and reinstall .net Framework but I don't know where the cleanup wizard is at and because I've got Express, I didn't get it in a CD. So is it true that SQL Server Express is only compatible with .net Framework x86 which is not compatible with WinXP x64 Hi, The Product feature comparison page shows that SQL Server runs on a x64 Windows OS using WOW layer. So it should work although it will still run as a 32-bit app. I think the final version of SQL Express would work - the Beta/CTP releas ...Show All
Visual Basic Unable to find Immediate window in VS 2005
I'm use to using the command window in VS 2003. However that doesn't seem to function the same as it did in 2005, there is no intellisense to do msgbox's and stuff in that window. I see posts stating that it is now an immediate window and the command window is seperate. However under by debug window there is no option to show the immediate window. Why would that not show up hi, Yo can use "ctrl + alt + i",you will get immedeate window. regards Vivek.V ...Show All
Visual Basic Newbie question
It have been about 10 years since I used VB, and boy have things changed. Back when I used it, VB included code for a browser that one could customize, which was similar to IE (surprise surprise). I wanted to see if I could still customize a browser, so I downloaded and installed Visual Studio 2005 Beta 2 and then tried to figure out how to compile and run the Internet Browser from http://cuinl.tripod.com/source-code-7.htm I am totally lost. I think I was able to compile it without errors, but I can't figure out how to run the program. I don't insist on this code. If there is some other browser code I can use, that ...Show All
.NET Development Is there anyone skilled in windows services?
Hi everybody, I've a big problem with a Windows Service I've created using C#. It's a very simple service: it just starts a TcpListener listening for incoming connections on a certain ports. First I compiled it on FW2.0, and run the service without any problem. Some days ago I had to performe a sort of "backporting" to FW1.1, I compiled the source code, installed the service but as I try to start it I get a timeout and a system error. I know that if the "OnStart()" method doesn't retunr in 30 seconds the OS generates an exception but there's something I'm still missing: 1 - why the _same_code_ works if compiled on F ...Show All
Visual Basic transfering VB ActiveX control data to another file
Howdy folks, I need to be able to transfer text data from an ActiveX control (a textbox) in one file to an ActiveX control in another file. Currently, I can move the textbox data to the spreadsheet in VB as follows: Range("k5").Value = TextBox1.Value and then I tie the TextBox LinkedCell property in the secondary file to the cell in the primary file: '[primaryfile.xls]'Worksheet1'!$K$5 I would like to be able to do this in one step in VB. I would be thankful for any ideas. tracy But are these not two separate actions. I could suggest that you write a function with the two steps in and then ca ...Show All
Smart Device Development System Time Emulation
I have an application where the user interacts using the stylus, and the application measures the temporal relationship between the various locations of the stylus to determine how it responds. Unfortunately, the emulator runs sufficiently slow, that it appears to significantly affect the timing of these stylus events and confuses my application. I like so many things about this emulator and I am hoping I can come up with what I need to do to accomodate how it behaves with respect to the system clock. Does the emulator simulate the system clock or does it use the PC clock for GetTickCount() Is there some kind of lag factor I can ...Show All
Windows Forms Arraylist
Hello, Everybody! I have mulitiselect Listbox, and I loop through the selected item like this: Then I created ArrayList Message1 to store the selected items. Then I call a function that require only one selected item. MY QUESTION IS HOW DO GET ONE VALUE AT A TIME IN A ARRAYLIST THEN COMEBACK AND GET THE OTHER VALUES.MY FUNCTION REQUIRES ONLY ONE SELECTED ITEM AT TIME foreach ( string lsStr in listBox1.SelectedItems) { ArrayList message1 = new ArrayList (); message1.Add(lsStr.ToString()); GetXMLCMD(message1, "appInstallCmd" , "appInstallParams" ); } ...Show All
Visual Studio Express Editions change the next field jump from tab to enter
Hi! Is it posible to change the key to jump to the next field from tab to enter thank you very much Using the Tab key to move from field to field is not a part of .NET, but a part of Windows. .NET provides facilities to work with the tab order because it is such an inherent part of the Windows interface. Let me first say that I would generally consider changing this behaviour to be a bad idea. Because it is such a standard part of the Windows interface your users have every right to expect it to work. I for one would be annoyed if I used Windows software and it did no ...Show All
Visual C# int dividing
ok,,,, i have a problem dividing 2 ints... heres the code: int w = image.Width - 146; int h = image.Height - 148; &nb ...Show All
