babka's Q&A profile
Visual Studio Express Editions about sqlconnection?
hi gud day ppol.... i have a problem regarding sqlconnection for example dim theConnectionString as new sqlclient.sqlconnection(" what's NEXT "no idea"") thx in advance... sorry for stupid question Dim theConnectionString as New SqlClient.SqlConnection("Data Source = YOURServerAddress ; Initial Catalog = YOURDataBase ; User Id = YOURDATABASEUsername ; Password = YOURDATABASEPassword ") ...Show All
SQL Server ExtendedProperties Performance
Has anyone found a way to speed up the retrival of the "ExtendedProperties" on a column via SMO yet I had a search around but couldn't spot anything. I have an applicaiton that currently cyles through 180+ tables (with the number growing all the time) and the "ExtendedProperties" access is abosultly killing it ... taking it from seconds to minutes. If anyone could provide any information (even if it's a "no it's not possible to speed up") or an alternative retrival method I'd greatly appreciate it. ExtendedProperties is a collection not a property therefore your solution will not work. Try this: Database db = ... // get your database root ScriptingOptions so = new ScriptingOptions(); db.PrefetchObject(typeof(Table) ...Show All
Smart Device Development GPSID: GPSOpenDevice does not start GPS
I'm desperately trying to access the built-in GPS of a FujitsuSiemens PocketLoox N560. I can successfully call GPSOpenDevice(NULL, NULL, NULL, 0); and also get a correct handle. But the GPS hardware does not start. The PocketLoox normally indicates active GPS with a blinking orange light, but thats not the case. So far I tried the following things: Accessing the GPS the 'old fashioned' way, using a COM-Port connection. That works. As soon as I open the COM port, blinking light goes on & the GPS (sporadically) sends NMEA messages. Run the C# sample from MSDN - that also works. (But I need a C++ solution for my project What else do I have to do to start the GPS hardware ! Here's the source code I'm using: [...] if (gps_handle == NULL ...Show All
.NET Development .NET 2.0 breaks .NET 1.1?
Hi! I just heard that there is a problem with something in .NET 1.1 when .NET 2.0 is installed on the same computer.. That there is some logic in .NET 1.1 that fails. Does anyone knows what this problem is And if so any workarounds I have tried to search around but did only find this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=171977&SiteID=1 which didn't say that it was a problem with both 1.1 and 2.0 on the same computer. Thanks for any answer, --Rune ahmedilyas wrote: never heard of it. 2.0 does not break 1.1. I'm currently running both of them without any problems what so ever. as stated, it installs side by side, one does not care about the other really nor ...Show All
Visual Studio 2008 (Pre-release) Debugging WCF server on Vista RC1 (x64)
I'm having trouble debugging a WCF server on Vista. It seems that you are not allowed to bind to an adress without elevated privileges, this I fixed (when running *without* a debugger) using e.g http://mark.michaelis.net/Blog/WindowsCommunicationFoundationWithWindowsVistaAndUAC.aspx that is adding a manifest to exe requesting elevated privileges. The problem is, it seems this does not work under the Visual C# (Express) debugger (even though there is a exename.vshost.exe.manifest) with the correct content. I do not get a dialog asking to OK elevated privileges, it just behaves like the the manifest is not there ! ! How do I fix this easy way of fixing is,launch VS.NET under admin account,so it will have all privileges to debug apps (p ...Show All
Visual C# C# no header files. All code is written inline - why?
Hi, Can someone explain "C# code does not require header files. All code is written inline" what is the advantage in going for inline how does it affect dynamic linking why dont we have header files as in C++ Thanks, Benin. I think the question should be turned on its head. Why does C/C++ have header files You'll see that header files are an answer to a problem that no longer exists - faster hardware and more memory means that a compiler can directly access all the type definitions a program references, without having to have them declared first elsewhere (in header files). ...Show All
Visual Studio Team System Project to TFS error -- garbled screen displayed
We have tasks in MS Project, either coming from Project Server, being entered directly into Project, or coming from TFS and being edited. When attempting to save these into TFS, a screen is displayed to allow you to correct any issues. It's the familiar TFS panes, hosted in a standalone dialog box. However, many of the text boxes/combo boxes do not display correctly. Some don't display at all (showing the form background color instead), and some don't redraw at all (showing whatever was on the screen in that location prior to the the dialog box displaying). For instance, I have a new "Requirement" type, and it pops up with a screen titled "New Requirement". Directly below the title is a yellow bar with the error & ...Show All
Visual Studio Tools for Office Retrieve Outlook calendar
Can anybody tell me how does one retrieve an Outlook calendar and store it in a database I would like my app. to detect appointements from outlook, display them in a datagridview in my app., and store the info in a DB. I looked at this: ms-help://MS.MSDN.vAug06.en/enu_kbvbnetkb/vbnetkb/313801.htm#2 and it doesn't seem to be working. Just as I get to the line below, I get an error saying: 'type outlook.application not defined'. Dim olApp As New outlook.application Which namespace(s) should I use to accomplish this. I've already added a reference to the outlook object and am using MS Outlook 2003. Any help appreciatd, thanks in advance. I get 140 displayed for the value of&nb ...Show All
Visual Studio 2008 (Pre-release) .NET 3.0 and Expression Interactive Designer for Pre-RC1
Will there be a .NET 3.0 or at least EID for the Pre-RC1 build of WinFX Something like at August or September CTP I doubt there will be a new drop before RC1. However, I have installed and haven't had any problems running the July CTP on Pre-RC1 Vista. - Doug ...Show All
.NET Development How to keep a thread running?
Hi, I have the following issue and the odd part about is that I had it already working however I don't know what I changed that it doesn't anymore. I runtime compile a class, create an instance of it and init it on a different thread. In this init the class subscribes to a couple data dispatchers and should now wait for incoming data. When I first implemented this it kept running after I subscribed to the dispatchers until I aborted the thread. However, now it subscribes and after that exits the thread. Any idea how I can keep it running without putting it in a wait loop Thanks, Tom Peter Ritchie wrote: Tom Frey wrote: The WorkItem doesn't "provide" event handlers, it "subsc ...Show All
Windows Forms tablelayoutpanel flicker / performance
We are finding that the tablelayoutpanel control is causing a lot of flicker, especially flicker when resizing. We have an windows forms architecture based on user controls and tablelayoutpanels (we use the CAB). Our major flicker issues happen on our detail UI elements, such as a single row data maintenance user control of the pattern: Page Title Label A: TextBoxA Label B: TextBoxB Save Button / Cancel Button These control are organised in a tablelayoutpanel with 2 columns (one for the labels and one for the textboxes) and the desired amount of rows (one for the Page Title, a spacer row, one for row A, one for row B, a spacer row, a row for Save and Cancel buttons). The 1st column is AutoSize and the 2nd column is set to a Size Ty ...Show All
Smart Device Development Play audio during phone call
I am developing a smart phone application to monitor incoming phone calls. One of the functions is to use the device to play a one-second wave file during the phone call. I use PlaySound function to play the wave file. I can hear the audio through the device speaker when the device is not engaging in a phone call. But when I play the wave file during a phone call, I cannot hear the audio. It seems that when an incoming call comes, Windows shuts down all the audio devices. Even Media Player cannot play anything. How should I implement this Thank you, Chris I use PocketMusic in my pocket pc to listen to podcast. One of the configure options is "Pause playback on incoming ...Show All
Windows Forms treeview scroll position
Hello, I have a treeview on my form which has horizontal scroll bar. I want to control the position of the scroll. Is it possible How can I do it Thanks You can set a certain node to be selectedNode of the treeview, this will change the scollbar position, for example: private void TreeViewTest_Load( object sender, EventArgs e) { for ( int j = 0; j < 20; j++) { TreeNode node = new TreeNode (); node.Text = "Node" + j.ToString(); node.Name = "Node" + j.ToString(); this .treeView1.Nodes.Add(node); } this .treeView1.SelectedNode = this .treeView1.Nodes[ "Node16&qu ...Show All
Visual Studio 2008 (Pre-release) ListView Performance Issue
I am running the .Net 3.0 RTM and have come across a performance problem with data binding. I am data binding XML which is updated once per second to a ListView/GridView . I have noticed that cpu utilization increases rapidly as the number of items in the ListView grows. For example, on my IBM Thinkpad 43p, if I have 3 items, cpu utilization is 8%. If I have 6 items cpu usage grows to 30%. At 12 items it is approaching 100%. As the number of lines of XML grows, the performance gets worse. Is there a scalability issue in WPF when binding collections Is there a way to optimize this code Here is my XAML and XML : < ListView ItemsSource = " {Binding XPath=Instruments/Instrument} " Selecti ...Show All
.NET Development BC30138:Unable To create a temp file
Server Error in '/WebApplication3' Application. ...Show All
