Software Development Network Logo
  • Visual Studio
  • Smart Devicet
  • Visual FoxPro
  • Windows Vista
  • VS Team System
  • IE Development
  • SQL Server
  • Visual Basic
  • Windows Forms
  • Audio and Video
  • Game Technologies
  • Visual C++
  • SharePoint Products
  • .NET Development
  • Microsoft ISV

Software Development Network >> csharpdevelopernovice's Q&A profile

csharpdevelopernovice

Member List

gcaplan
BhuttCrackSpackle
AshishGupta
Recency
ld
dbaeck
fabster
Edward1
ktto
Scott Sheppard
Output the XSLCompiledTransform.
Derek Chan
kampak1111
Alejandro.avenger
flash.tato
briggins5
Thomas Mayer
Steven McCarty
Evan Machusak
rodri_ogri
Only Title

csharpdevelopernovice's Q&A profile

  • Smart Device Development How To Define Global Variable?

    Hi, I want to define a global variable which can store information like Database Connection String and can be accessed accross all the forms and classes in my application. While loading the application, I would like to set this once and then use it throughout my application. How to do this Also, what is the use of Resources.resx and AssemblyInfo.cs files in the application Can they be of any use Regards, Suman Hi, if you need to make a value what ever it was and use it from in form, then you either store it in the registry or in a file, db,.. etc if you don't know the way of doing this, tell me and i'll be glade to help you. the Resources.resx file is used to keep resources in your application to use it from there, like image ...Show All

  • Visual Studio Background Picture in Diagram - update for V1

    How could you add a background image to the diagram canvas as a whole You can set a background picture in the whole diagram as shown here.    Add your picture to the Dsl Project resources: Copy the image file to the Dsl\Resources folder and include it in the Dsl project. Open the DSL Project properties by right clicking on the DSL project Go to the Resources tab and click to add the resources file, if necessary. Drag the image from the solution explorer into the resources file Add a custom code file containing this:  [code] using System; using Microsoft.VisualStudio.Modeling.Diagrams; // Fix the namespace namespace Fabrikam.MyProj ...Show All

  • Visual C# "OUT of Memory" String construtor

    Hi, im getting a "out of memory" exception when I try to pass a large char array in the the string construtor. The array has a length of about 200MB, its XML Data. I need to convert this to a string for the further handling. For smaller data stuff works fine. Any ideas how to convert the data to a string Thanks Dob It is ofcourse possible to use a XmlDocument, but keep in mind that it parses the entire document and creates a document object model in (cached) memory. You could call this streaming but it consumes the stream in a single method call. The size of this model wil be far over 200 MB (it doesn't just store de data itself but also creates a class structure around it) and can really hamper the performance of your app ...Show All

  • Visual Studio Express Editions How to make the registry settings effective without restarting the system

    I have developed a program to disable the USB Read and Write access with the help of registry. But every change requires a Restart which is not feasible in my case. Is there any feature or process, which resolve this issue, that is, to make the modification in registry effective without restarting the system. The solution is required in VB.NET. If your operation in registry is under HKEY_CURRENT_USER\Software\VB and VBA Program Settings, you can use the GetSetting and SaveSetting functions provided by NB.NET. To access the registry without the constraints of the GetSetting and SaveSetting functions, use the Registry and RegistryKey classes in the Microsoft.Win32 namespace. The Registry class supplies the base registry keys to ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Asteroids game in the Channel 9 XNA launch video

    Any idea if this is going to be released to the community It looks like it would be a blast to play. I'd ask about the font support that was shown too, but I'm guessing that'll come in the first patch. There are some decisions in life that you'll regret forever... ...now if I can just find another game development contest where I'm the only person that enters and the prize is an XBox360... ...Show All

  • SQL Server Merge replication downloading old data to the suscriber

    I'm having an error with merge replication my suscriber are downloading old data, all this start happen after I install SP4. let explaint this with more details , if a made an update to a row in a table from the publisher , the agent history show that 1 change have downloaded to the suscriber, a put an audit in the suscriber and yes one update was downloaded but the row still the same, look like the suscriber downloaded old data instead of the curent change that i made. If i delete the row, the rows gets delete at the suscriber, if a insert the row the row get insterted ok. The problem only happen with rows inserted at the suscriber, that later on get update at the publisher. My suscriber has MSDE 2000 SP3 an my Server has SQL ...Show All

  • .NET Development Is this a bug , any one can tell me?

    I found a bug when I am programing: when I use like this: " ".IndexOf(" ") is returns -1,when it should return 9; but " ".IndexOf(' ') is OK. and belows all worked well: " ".IndexOf(" "); " ".IndexOf(" "); " ".IndexOf(" "); My environment is : Windows XP SP2(English Edition + Mutil-Language Pack) + .NET Framework v2.0.50727+Visual Studio 2005 PS: It works well in javascript. Note that the above ONLY applies to the BCL-provided System.String.IndexOf; if you use the System.Char overload provided in the globalization namespace (System.Globalization.CompareInfo.IndexOf) then you get the right behavior, always. Proof that those BCL "shortcuts" sometimes forget to tag secon ...Show All

  • SQL Server Getting the count of rows for 3 tables in Single Execute SQL task

    hi frnds, im very new to SSIS package .my package consists of Single Exceute task. In Single Exceute SQL task i had 3 seperate queries to get the count of rows of 3 tables. the Query goes like dis ... select count(*) AS precheckcount1 from new_main_dts where cust_nbr like '875%' like dis for another 2 tables i had written with the alias name precheckcount2 and 3 i mapped the variable user::precheckcount1 to precheckcount1 in the resultSet and for other two alias name i did the same. while executing the package the error is thrown : [Execute SQL Task] Error: An error occurred while assigning a value to variable "precheckcount2": "Unable to find column precheckcount2 in the result set.". please hel ...Show All

  • Visual C# foreach where

    Is there anyway to specify the types of items to get when you iterate through a collection with foreach. Right now you have to do like this foreach ( UIElement b in maincanvas.Children) { if (b is Bomb ) (b as Bomb ).Move(); } Another way is this: foreach ( Bomb b in maincanvas.Children) { if (b ! = null ) b .Move(); } I think both ways are very inconvenient, I want to do something like this. Just like when you specify generic objects: foreach ( Bomb b in maincanvas.Children where b : Bomb ) b .Move(); Is there any similar syntax that does what the above snippet do I know the snippe ...Show All

  • Windows Forms AVOID THE REPLACE FILE QUESTION

    I`ve export the data of a data grid to an excel file, but everytime that i run the app the question doyo wan to replace it (the file shows, con anyone help me Sub entrar() 'Start a new workbook in Excel. oExcel = CreateObject( "Excel.Application" ) oBook = oExcel.Workbooks.Add 'Create an array with 4 columns and 100 rows. Dim DataArray(99, 3) As Object For r = 0 To 99 DataArray(r, 0) = "ID" & Format(r + 1, "000" ) DataArray(r, 1) = blu(r) DataArray(r, 2) = bla(r) DataArray(r, 3) = fecha.Text Next 'Add headers to the worksheet on row 1. oSheet = oBook.Worksheets(1) oSheet.Range( "A1" ).Value = "Id" oSheet.Range( &q ...Show All

  • Visual Basic File to Array and general Array help/information

    Hi, I have been trying to get a file of data written in the following format:- 0001 – (16bit numbers in decimal) 0002 0003 0004 And so on (upto 25000 results) Into an integer array:- myFileContents(0) = 0001 myFileContents(1) = 0002 (and so on) My code is as follows: - Dim myFileContents(10000) As String Dim i As Integer OpenFileDialog.Title = "Load File" OpenFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" OpenFileDialog.FileName = "" OpenFileDialog.FilterIndex = 1 OpenFileDialog.InitialDirectory ...Show All

  • .NET Development Validating schema element from XPathNavigator

    Hi, As I traverse different elements in my XPathNavigator object I come across some elements which I need to check particles such as MaxOccurs against the schema. I can search the schema and find the appropriate element but the problem I have is when the element name in the XPathDocument is not unique. For example, the <name> element could be a child either from the <person> or the <company> element. What should I do to ensure I am validating the correct element Any help would be appreciated. Thank you With .NET 2.0 XPathNavigator has type annotations if you load the XML and the schemas, see the SchemaInfo property . ...Show All

  • .NET Development Can VS2005 be forced to use .NET V1.1

    I have an app that ius developed in VS2005, and uses .NET 2.0 One of my clients computers cannot have .NET 2.0 installed, as in affects another app using .NET 1.1 Can I force my app to be compliant with .NET V1.1, or must it use 2.0 VS2005 itself can't use .NET 1.1 but you can make your application compile for it. Check out MSBee at http://msdn.microsoft.com/vstudio/downloads/tools/msbee/default.aspx ...Show All

  • SQL Server printing option for landscape or potrait

    do we have any option where we can set the option in calling piece of code to print the reports either in landscape or potrait forcibly. say i want a report to print in landscape irrespective of data in it. In the report, you can specify the repot layout. Printing will use the layout you specify. Set the ReportWidth and ReportHeight to 8.5\11 or 11\8.5 depending on what layout you would like for printing. ...Show All

  • Visual Studio 2008 (Pre-release) MS Interactive Designer

    Here's the question. Is there gonna be some kind of "MS Interactive Designer June CTP" available It's not a secret that code-name "orcas" is not really usefull while talking about creating rich user interface (gradient brushes, pathes etc) After migrating to Windows SDK June CTP there's the need in Interactive Designer... It was posted yesterday. I've just downloaded it. http://www.microsoft.com/downloads/details.aspx FamilyId=B8557886-C1BE-43F8-BCF8-5DE4CB5675AB&displaylang=en Good luck Michael ...Show All

©2008 Software Development Network