KittyOH's Q&A profile
.NET Development Convert C# to VB
Hi Could someone convert if (iMessage.Substring(i,1).Equals( "a" )) { tmpString+=(( char )29).ToString(); } to VB.NET /nOrphf Hi, I ran the code in C# and VB now and I get the same output in both cases. I get a square box character. Regards, Vikram ...Show All
Windows Forms ImageList handles
I'm writing an app in C# and need to access the system's image list. I've wrapped the SHGetFileInfo() command, which (with certain arguments) returns me a handle to the system image list and an index into that list for the icon for the supplied filename. This is currently returned as an IntPtr. Question is, how do I now use this I w ...Show All
SQL Server Shared Datasource Problem
I have created a few packages which uses shared 2 data sources called source and desitination. When i change the server in the datasource file manually\programatically, it is not reflecting in all the packages. Ideally all the packages should refer to this shared datasource,but i found out that the server name is hardcoded in each and every package which destroyes the concept of shared data sources in SSIS packages.How ever if i change the server name in the data source from the SSIS environment itself then all packages using the shared datasource are updated.Is there a work around for this apart from changing the server in every package. ...Show All
SQL Server Capturing Processing Status and Progress Messages
When you use BI Dev Studio or SS Management Studio to process an Analysis Services database or object, there's a nice dialog box that shows very robust status and progress information. Is there any way to capture this information if you are processing something programmatically Specifically interested in both the ability to capture and display this information to a user when processing via a custom application. Also interested in whether or not there's a way to capture this information to a log (or table) for display and analysis after the fact (or if the custom application is running in a batch mode via a schedule). Thanks ...Show All
.NET Development Events & Delegates CPU spikes
Hi, I have the following issue and am not sure what's the best way to tackle this: The application I'm dealing with utilizes live financial market data for stocks, options, etc. So, there is one class that handles all the market data subscriptions and emits the quote as an event. There are several controls which subscribe to this Quote event and process the data the event delivers. The issue with this is that one control might subscribe to market data for MSFT and the other control might need data for IBM, however they are still subscribed to the same event and thus the control itself has to filter the incoming data from the event and determ ...Show All
SQL Server SQL Server 2005 June CTP available ?
Is the June CTP out, and if yes why can't I see it on MSDN Subscriber Downloads ( http://www.microsoft.com/sql/2005/productinfo/ctp.mspx ) Thank you Correct, this should work, it might also work if you just uninstall .Net and then try and install SQL Server June CTP. But uninstall both is best bet. ...Show All
Visual Studio report viewer newbie
hi, i'm a newbie in using report viewer and having a tough time now building a web app in c# and asp.net.. hope someone can help me on this. i'm using VS2005 and RS2005. i've tried looking at the sample RssNewsReader but i have problem running it. error message : Could not find type 'RssNewsReader.ChannelInfo'. i think this is because i don't have system.ComponentModel in the reference and i don't have this dll file in my system as well, therefore i could not add it in. i tried looking at sample in odetocode website but the sample wasn't built using VS2005, so i encounter problems changing the syntax. can so ...Show All
.NET Development Reading XML-Document to console
Hello, I am reading in VB.NET 2005 a xml document with following code: Dim document As XmlDocument = New XmlDocument() document.Load( "Customers.xml" ) Now I want to display the whole data from the xml document in my console. Can you offe me some code Thank you! Or better document.Save(Console.Out); this is better because XML here is being written node by node while document.OuterXml creates potentially huge string in memory before outputting it to the console. ...Show All
Visual FoxPro How to pass a variant value to CFRONT object (Navision) ?
Hi, I need to pass a string value to a COM Object the method styax as follow S/W Name : NAVISION COM Object : CFRONT.OCX Method AssignField( hTable as Long, hRec as Long, FieldData as Variant) as Void My program source code is ************************************************************ loCF = Createobject("cfront.cfrontctrl.1") lc_Data = "Testing" loCF.AssignField( 1, 2, lc_Data) ************************************************************ But return error message "Type Mismatch" How can fix it Thank you for help Try to see if it works this ...Show All
Visual Studio Express Editions USING SQL 2000 with VB 2005 Express
Does anyone know if you can connect and use SQL 2000 Server with VB Epress 2005 datasources tab wizard I use the datasources tab to try to connect but it keeps failing to connect. VB6 seems to connect fine using the data environment wizard. I can connect to the SQL 2000 database with code without any problems in VB Epress 2005. Hi Tommy, Express editions have design support for local data only (.mdf and .mdb files). The version/feature matrix is located here: http://lab.msdn.microsoft.com/vs2005/productinfo/productline/default.aspx hope that helps ...Show All
SQL Server how to manage sql server transaction in desktop networking application vb.net2005?
hi i want to know that how to manage the sql server transaction in a big desktop networking application for example there are 200 tables in database. many of that tables have relatationship. i have a form in frontend which holds nere ablut 50 tables deffrent calculated amount. i want to ADD, EDIT and DELETE, SAVE(commit), CANCEL(roll back) them and same time another use will do the same work from another pc. if there are 100 user does the same work (add, edit, delete, save, cancel) how could i magage my sql server data i also want to know that 1 kind of proffessionsl w ...Show All
Windows Forms Logging into MDI Application
First off, I'm just starting to learn to program in VB.NET. I am trying to create a login for a MDI application! My problem is once i get a user authenticated I want to open up the main MDI window and then close the login form. Here is my code snipet: If blnAuthenticated = True Then &nbs ...Show All
Smart Device Development WaitHandle (IDisposable)
This is more a question out of interest than an issue really. In the full framework and in CF 2.0 the WaitHandle hierarchy implements IDisposable but in CF 1.0 they did not. Was WaitHandles implemented different in the old Compact Framework You are right that in CF 1.0 the WaitHandle class did not implement IDisposable, but in 2.0 (to maintain compatibility to the desktop behavior) of this class we decided to have it implement IDisposable. When you mean was it implemented differently (I am assuming if you are asking if the underlying behavior changed) well since it now implements the IDisposable interfa ...Show All
.NET Development SQLExpress - SQLDataAdapter Conflict
I have a VS 2005 Pro VB - Windows XP Pro Application that connects to an SQLExpress Server, obtains & displays database & table information,and then makes an SQLDataAdapter connection to a selected database to obtain data from a selected table. The problem is that after connecting to the Server to get/display database and table information, when I then try to use an SQLDataAdapter I get a "Login Failed" error. My SQL Express connection string is: Dim SC As ServerConnection = New ServerConnection SC.ServerInstance = "OptiplexGX270\SQLExpress" SC.SqlExecutionModes = SqlExecutionModes.ExecuteAndCaptureSq ...Show All
Visual Studio 2008 (Pre-release) Infocard and Clickonce deployment
Hi, I been reading through the WCF documentation and samples and have a couple of questions on how to use Infocard in a ClickOnce deployed application. This application would have to communicate securely with a public WCF based web service, and use Infocard as authentication mechanism. 1) What kind of server certificate is required Is a simple domain name certificate sufficient (like e.g. http://www.thawte.com/ssl-digital-certificates/ssl123/index.html ) Or would a free personal e-mail certificate also work (like e.g. http://www.thawte.com/secure-email/personal-email-certificates/index.html ) Can (or should) it be the same certificate as ...Show All
