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

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

Rachita

Member List

webrod
Robert Slaney
wjousts
pkarun
PerPixel
SHISHIR WAHI
johnx
sheldono
ReneeC
etones
ernie0509
Alex Krapivin
Damien Morton
tomerlev
Pranav Garg
SulaimanA
ClydeCoulter
Paul_Rus
Haicheng
Divermarv
Only Title

Rachita's Q&A profile

  • Visual Studio 2008 (Pre-release) DataSet Serialization errpr with nettcp Binding

    The following is tested under .Net 3.0 RC1. We have found an anomaly in serializing DataSets across a WCF service. When we send a Dataset over WCF to update back to the database, we perform some server side validations. If there are errors, we set either the RowError string on the DataRow with the error, or (usually) the ColumnError for the column within the row associated with the error. Upon return from the service, the Dataset is merged with a dataset bound to GUI elements, the column errors cause the error provider to light up and the user knows to correct the problems. Unfortunately, we discovered, that, whether passing the Dataset back as a return from the service method or as a ref parameter, only the RowError was preserv ...Show All

  • .NET Development Bit manipulation

    Hi! We would like to see if C# (1.1) has any API to manipulate bit in that way: For example, send a variable to it, like a INT64 and ask that function is such bit is 1 or 0; like... Int64 test = 255; bool bit = CheckBit(test, 5); and that CheckBit would return if the 5th bit is 1 or 0... We know how to write that function, and it's simple, but we always prefer to use the standard API, and we don't know if C# 1.1 has that already. Thanks in advance Yep, it does. BitConverter can convert your Int64 to an array of bytes, System.Collections.BitArray is available to manipulate the bits. For example: Int64 v = 255; System.Collections.BitArray vec = new System.Collections.BitArray(BitConverter.GetBytes(v)) ...Show All

  • Visual Studio Tools for Office Problem with punctuation after a control inserted at runtime.

    I have a document template that I am working on. I am inserting a Windows Forms Button conrol into the template as shown below: This is a sentence [Button]. That all seems to work fine and appears normal as I save off the template. I am using this code to inser the button into the DOT, straight from one of the examples that ships with VSTO: private static void InsertControlAtSelection ( Control c , string name ) { object horizontal = false ; object vertical = true ; Word. Range selection = Globals.ThisDocument.ThisApplication.Selection.Range ; c.Name = name ; if ( selection != null ) { // Save the control extender as a tag on the control, so that ...Show All

  • Visual Studio Tools for Office publish vsto project and connection to word dll

    Hello I am working with vsto 2005 (.net 2.0) . I created a default dot file that opened with custom task pane but i missed some information about the way the documents (base on this dot) knows about the dll. I know about the manifest file and about the property at the doc but i am getting problem when i opened the documents if the dot file is not at the same plcae it was when i first created the document. How can i force the document to know about its DLL Thanks in advance Sharon :-) Why would you have moved the *.dot file Generally, Word documents can only find their "partent" template if it's in the same location, or at least in a default path or a path in the Windows "PATH" environment. ...Show All

  • Visual Studio Express Editions Re-drawing items in picture box

    I have a program that draws a graph in a picturebox (using DrawLine, DrawString). My problem is that the picture box goes blank if the program is minimised and parts of the contents are erased if another program is brought in front of it. There must be a better solution than having a 'refresh graph' button. Help much appreciated. Thank you Mike ...Show All

  • SQL Server Problem with dates format passed as parameters...

    Hi, I am having the " classical problem " of the forums; A local date changed to the american format (normally in the development environment) which I call "Switching months with days"... well it switches both again if you press "view report" again :) The problem I'm having is that when I Navigate from one report to other, the dates get switched... Everything's been set in the locale uk date format (dd/mm/aaaa), in the operating system, in the database and in the reports... and the reports are working properly through the web interface.. the only thing that is not working properly is the Navigation which switches the date month with the day... Changing all the Reporting Services server, database server to ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rants on XNA 1.0

    This is my first reaction when I installed and tried the 1.0 of XNA. To summarize my feeling: it's still 95% for XBox and no nearer to replace the old MDX 1.0. So I decided not to migrate from MDX to XNA though I want to do that very much. I feel like MDX 2 more; amen to MDX 2. The hardest issue for me is the content pipeline, which is very necessary, but the workflow is fixed and it assumes the contents are only built before the program runs. The helper functions wrapping D3DX can only be used with types in the content pipeline. I have to utilize the full content pipeline just for generating something dynamically, of course with significant performance cost. Or I have to write those D3DX utilities my self. Currently I don't have a good id ...Show All

  • Visual C# Thread Message Suggestions

    I have a question. In my C++ days, I had straight C++ threads using thread messages to act very similiar to MFC UI threads to process messages even though they weren't connected to a UI. The Win32 calls included ::CreateThread(), ::PostThreadMessage(), ::GetMessage() to simulate the behavior of just dropping a message into a thread queue to process the message. Now that I am in C## land, I can't seem to find any documentation about thread messages which tells me that I am looking at the problem incorrectly meaning C## does things differently. Suggestion Yes, I do realize this What I am looking for is a suggestion as to either the "official" C# way to accomplish my desired behavior or just restru ...Show All

  • Windows Forms Problems with "Show Dialog" and Large amounts of data

    I have an inventory lookup form, called from many different user controls, that could easily be loaded with large amounts of data (150000+rows). My problem is that with only 22000 test records it takes about 35 seconds to load. This would be acceptable if I could load it up the first time and then simply hide it. The problem is that the ".showdialog " method of the form, while it works and allows me to pass the selected ID to the calling form, brings up a new instance every time causing the delay reloading every time. In VB6 you could hide the form then show it again and pass a global variable containing the selected ID from one form to another. In VB.net 2005 the Only way to pass the variable from the one form to the other, ...Show All

  • SQL Server Feeding an "IN" Clause

    I know I can supply an explicit set to an IN clause, or I can feed it with a select statement. What other ways in TSQL 2005 can I feed it One thing I'd like to do is feed an IN clause by calling a stored procedure. I'm new to TSQL, so I don't know if I can do that. I'd also like to know if there is a way to pass a variadic list of values as a parameter to a stored procedure, so that they can be used in an "IN" clause found in that stored procedure. I think the way to do that last item is by having a recordset parameter. Is that correct Any other way to do it My apologies for making a mistake. The method I presented in my previous post should work, but the implementation is a little off. The corrected code should be... ...Show All

  • Visual C# Monitor Brightness Contrast adjustment

    Hi, Anybody knows how to change the monitor brightness and contrast through programatically using C#. Thanks Do you want to change the actual monitors brightness just like pushing the buttons on the front of the monitor Or do you want to have brightness sliders like many games do They are quite different things. ...Show All

  • Windows Live Developer Forums Resizing Windows Live Mail

    When I log into Windows Live Mail through IE, the paine size (not the text) is too large, I can not see the bottom of my e-mails nor can I see the far right. It will not allow me to scroll down to the bottom of my e-mails. If I compose an e-mail longer than the screen within IE, I cannot see what I'm writing. I have to TAB through the buttons to get to the top and bottom menus in my messages and to log out. This is not the case with Mozilla FireFox. What can I do to fix this Thank you, latrekker Latreker: This forum is for discussions and questions related to Windows Live Development. For questions or problems related to Windows Live Mail, check the Windows Live Help Central page at: htt ...Show All

  • SQL Server SharePoint Add In Install Problem

    I upgraded my SQL Server Enterprise 2005 instance to SP2 CTP. I also have sharepoint server 2007 b2tr running on same machine. The portal is running fine off port 80, and Reporting Services is running fine off poer 8080. I configured reporting services with in Sharepoint Integrated mode, using the report services config utility. I downloaded sql server 2005 reporting services addin for sharepoint (SharepPointRS.msi dated 11/9/2007). When I try to install the add in I get the following error: "You must first install Sharepoint Server before installing SQL Server 2005 Reporting Services Add In for Sharepoint Technologies" I'm running SQL Server Enterprise 2005 x64 and Share Point Server 2007 B2TR x64. Any thou ...Show All

  • .NET Development Express Editions and SQL Server MSDE 2000

    Is there a way to connect to a database using MSDE with the express edition of C# I tried to use connection string ="Data Source='Data Source Computer Name' Integrated Security=yes" and I get an error that the connection string was wrong. Since it is native .NET Managed provider, you cannot use Provider property in a connection string, it already knows that it is SQL Server. Your connection string should look like System.Data.SqlClient. SqlConnection _conn = new System.Data.SqlClient. SqlConnection ( "Data Source=(local);Integrated Security=SSPI" ); ...Show All

  • Visual Studio 2008 (Pre-release) XBAP and browser cookies (not working)

    When an XBAP application calls Application.GetCookies(), it throws an exception (due to no cookies). The browser window hosting the XBAP application does have cookies for the site. This is CRITICAL in developing an XBAP application that interacts with a web server - the forms authentication and session cookies need to be maintained between the initial browser request and the XBAP application that it is hosting. How can I get the XBAP and browser to use the same cookies Not all session cookies can/should be persisted, and the developer does not have control of some cookies. See my previous comment about forms authentication. ...Show All

©2008 Software Development Network