Mega_bit_dk's Q&A profile
.NET Development Binding Multiple Values to Single Component
Friends, I am hoping someone can tell me if it's possible to bind multiple values to a single component and/or property. What I am attempting to do is display two values from a dataset in the Text property of a form. The form has a data navigator and the Text property should change with each record. Any info would be greatly appreciated. Thanks! I just went ahead and concatenated the columns in my dataset ...Show All
Visual C# How to auto-generate .aspx and .cs
Now I need to auto-generate .aspx file.Do I use System.IO.StreamWriter or others How can I do xiaotao - What are you trying to do here Do you need to regenerate both the .aspx and the code-behind .cs file Try the asp.net forums if you need something specific to the .aspx file -- http://forums.asp.net/ . Thanks, Karen ...Show All
Smart Device Development accessing the strings of the string table
hello everyone could anyone tell me how to get the strings/text in the string table into a control - i mean can i anyways get a string/text from a string table into a control's caption (on a button click or some event) i have a smart device mfc dialog based application. in the application's dialog, i have a static text control and a button. i have included a string table in my application and inserted few strin ...Show All
Software Development for Windows Vista Threading question again.
Here is what I'm doing-- I created a workflow DLL which contains all my workflows, and expose a single class RequestManager so that my win form app dosen't need to know there is WF behind it. The call from win form app is very simple: InstanceID= RequestManager.Exec(WorkflowCode, Params); Since all my flow should return the result immediately, I made the flow run in sync mode by call waitHandle.Set(); .. waitHandle.WaitOne( ...Show All
.NET Development How to UNlock a file
Hi, how can i unlock a file, so i can change, move or delete it It doesn't matter, because i run through a list of files and want to delete them all. At the moment i catch exceptions and don't delete files if they are locked in any way (maybe by another application) cause i don't know how to unlock them. ...Show All
.NET Development How to declare API in C#
Dear all, I want to use functions in Shell32.dll. I search function SHGetPathFromIDList in MSDN and the result is BOOL SHGetPathFromIDList( LPCITEMIDLIST pidl , LPTSTR pszPath ); However, this syntax is not suitable when declare in C#. So, How to declare this function in my C# code Thanks, Khiem. I ...Show All
.NET Development .NET 2.0: Setting WebServiceBindingAttribute.Location leads to a NullReferenceException
Hello, I currently try the contract-first approach when making Web Services on the .NET 2.0. Trying to set the WebServiceBindingAttribute.Location to point on my hand-made wsdl file leads to a NullReferenceException. Does anybody have an idea about what's wrong here Here is the stacktrace: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object . Source Error: An unhandled exceptio ...Show All
Visual Basic In need of help
ok, ive made my XML plugin, and the app reads it like this: Try Dim sr As New System.IO.StreamReader( "settings.xml" ) Dim xr As New System.Xml.XmlTextReader(sr) Dim settingsxml As New System.Xml.XmlDocument settingsxml.Load(xr) Dim NumberofcatagorysXmlNode As System.Xml.XmlNodeList = settingsxml.SelectNodes( "settings/numberofcatagorys" ) Dim number As System.Xml.XmlNode = NumberofcatagorysXm ...Show All
Visual Studio Express Editions ZwQuerySystemInformation: buffer size
Hi. How can I know beforehand the buffer size (or the number of processes ) used in ZwQuerySystemInformation function I use SYSTEM_PROCESS_INFORMATION as enum value of the SystemInformationClass parameter. Thanks in advance. Ciao guaglio! Call it twice. First with SystemInformationLength set to 0. It will return the required buffer size in ReturnLength. ...Show All
Visual C++ Why isn't this call working properly?
I'm building a project for myself really; however, this problem is sticking me in the side. Can anyone tell me why this particular problem isn't working #include "pl_en_stats.h" // in *.cpp file for icPlayerInformation_Data struct usage. // in *.h file for Class definition. class LoadGameData { private: char PlayerInformation; icPlayerInformation_Data* pl_statistics; public: LoadGameData(); bool load_SaveData_Open(); ...Show All
.NET Development Adding URL-encoded '&'s as data in a URI parameter
I'm developing a client application that needs to send the '&' character in HTTP requests as data. I DO NOT want these to be interpretted as the start of a new parameter but rather would like them passed to the application as parameter data. I realize that you need to URL encode characters with special meaning. My problem is that in .NET, when you attempt to create a URI with a %26 (the URL-encoded version of '&'), it automatically conve ...Show All
Visual Studio Express Editions Simple Pause
Hi, I'm trying to add pauses into one of my programs. If the pause is in a loop, the system hangs up on it. As a simple example, the following works fine - it waits 4 seconds then puts "5" in the label box: Dim g As Integer = 5 System.Threading.Thread.Sleep(4000) Label1.Text = g The following code, however, doesn't work. It just hangs up and does nothing: Dim g As Integer For g = 1 To 10 Syst ...Show All
Visual Studio VSS 2005 & SQL Server
Call me crazy, but i thought there was a feature that mentioned the new VSS being able to use a SQL Server Database as it's datastore instead of the old file system structure. Did this disappear or what You are probably thinking about Visual Studio Team Foundation, which is a complete suite of lifecycle management tools that does include a Source Control solution based on SQL Server. You can find out more about ...Show All
SQL Server Whether to use local system account or Domain account for service account
During install of SQL Server 2005, we can of course use a domain account or the built-in system account for running the services. I lean toward domain for obvious reaons but would like to know a +/- to each option and why I'd choose one over the other and what consequences or limitations one may encounter if I choose one over the other. Hello - You can find out a lot more information about service accounts in Books Online, but the ...Show All
Visual Studio Tools for Office Using VSTO Addin to manage bookmark events
I've been playing around with the VSTO/interop bookmark events in a Word template (they're great), and now that VSTO v3 supports Word add-ins, I would like to create a global add-in with similar, more dynamic functionality. What I would like to do is: 1) When application's DocumentNew event fires, I want to "inventory" the bookmarks in the active document. (Some documents will have my bookmarks, others not, and the actual bookmarks ...Show All
