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

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

sarika

Member List

Dkdjarrett
Tuk
Wilton Kwok
William Xie
jdwilliams543
garimell
thomaskremmel
Andrew Mercer
Aoeuid
mpennin
TACIR
langev
Johan Sörlin
stallion_alpa
DerekForsbloom
monkeycz
DonaldM
Barron Gillon
Eagleguy125
Lex007
Only Title

sarika's Q&A profile

  • Visual Studio Team System Merging From Branch to Branch

    I have the following TFS source control layout: $/Main/ $/Release 1.0.0.0 $/Release 1.1.0.0 $/Release 1.2.0.0 ... etc Let's say I have a bug fix for version 1.0.0.0. I write the bug fix and check the code directly into $/Release 1.0.0.0. I can label this changeset as version 1.0.0.1 or branch it again or whatever. Let's say this particular bug applies to all releases and to my current Main. I can easily merge the change from $/Release 1.0.0.0 back into $/Main. No problem. But what if I want to merge that same change into 1.1.0.0 and 1.2.0.0 As far as I can tell, I first need to merge the change into $/Main and then back out to the various release branches. There is no option to do a merge from one branch directly in ...Show All

  • Visual C# Best way to update a class when modifying a member

    Hi, I have a UserControl derived class containing a Label, which I would like to be updated every time a public string on the class is modified. For this, I created accessors for the public string, in this way: public class MyControl : UserControl { private Label _label; private string _string; public string MyString { get {return _string; } set {_string = value; _label.Text = value + " " + value; /* do something fancy with the new value */} } /* ... */ } What I dislike of this approach is that I have the feeling of having duplicated the string inside my class. I am not sure if this is accurate, as I am new to C# development. Anyway, is there any other way to update elements of a class when a member is mo ...Show All

  • Visual Basic Why does my app try to connect to the internet?

    This was really strange. After finishing my application (first one in vb.net) I ran it and for some strange reason it tried to open a port (1147) and according to my firewall it was listening not sending. I found this very strange because my application doesn't contain any code what so ever that would be able connect to the internet. I even tried a simpler application with just a form and a button and that one also tried to open up a port. When i blocked the program from trying to listen, it crashed giving me this error report. EventType : clr20r3 P1 : cmiss.exe P2 : 1.0.0.0 P3 : 44e17833 P4 : system P5 : 2.0.0.0 P6 : 4333ae87 P7 : 2ba8 P8 : 40 P9 : system.net.sockets.socket Does anyone else have the same problem or is t ...Show All

  • Visual Basic How to edit a text file by searching and replacing a character within it?

    I want to edit a text file by searching and replacing all quotes " in the file with replacing them with pipes | The text file name is mbaddress.txt and it is located at c:\ I need to do this programatically in vb.net. I already know how to open the file in a text editor and manually search and replace them. I just need some general direction to what vb commands I need to look at to do this within a program. Thanks so much in advance, I appreciate any comments. Wow, that was a pretty fast response. I just tried it and it absolutely worked. Thank you very much for your quick and precise response, I really appreciate it. That really saved me allot of time and much less code then I thought. Thank you agai ...Show All

  • Visual C# Access to the registry key 'HKEY_CLASSES_ROOT\name of the class' is denied.

    Hello, I am getting this error when I am building my projectAddon on my computer but not on another computer. I do not have a clue what is going on it worked fine a week ago. Error 6 Cannot register assembly "name of the file.dll" - access denied. Access to the registry key 'HKEY_CLASSES_ROOT\name of the class' is denied. Palmi In addition to Ahmedilyas answer read the following article as well Surely its a priviledge issue http://support.microsoft.com/ kbid=327507 ...Show All

  • Visual Studio 2008 (Pre-release) WPF Text blurry

    Hi, I'm wondering if this is a known problem: I have a multi monitor setup and whenever I move a WPF window from one screen to the other the text becomes totally blurred. Also, moving the window across to the other screens is very slow. Sometimes, this blurry text effect also appears on the main monitor, for example when I expand a combo box, etc. Anybody knows what's going on there Thanks, Tom RE: performance of multi-adapter, multi-monitor system Tom and I followed up offline, I have been unable to repro the performance issue with a similar multi-monitor-multi-adapter-multi-IHV configuration. If other folks watching this thread have seen similar issues, please mail me. RE: WPF Text blurry Followup: ...Show All

  • Visual Basic i can not able to make setup

    hi , while i am trying to create setup file i had a error it can not able to inculde a dll file and tell me how to include that dll file the project works perfectly while we run the project i did not ask to add reference in the project but while making setup it show error msg that this dll can not be include for the setup that all ...Show All

  • .NET Development How to know what exceptions a method can throw?

    I was reading in some other posts that you only have to catch known exceptions. And that it is not allowed to catch Exception like this: private void CheckCancelEntryWeighingRecords() { try { mis.Transfer(data.CsvData); //Call to a third party dll } catch (Exception ex) { LogError("Error occured in CheckCancelEntryWeighingRecords", ex); } } How can I know what exceptions a method can throw So that i can decide on which situation i can recover and on which not I know that the Framework.NET has documented the most exceptions. But what about third party dll's with bad of no documentation I also know i could use reflector to look what the possible exceptions a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Transformations: howto?

    I've been playing around with XNA, but can't seem to figure out how to move, rotate and scale objects in 3D space. Can anyone point me in the right direction Thanks in advance. That's quite a bit to cover but I would start out by checking this tutorials thread. Probably would be the best place to suggest one too! http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=690814&SiteID=1 ...Show All

  • Visual C# Spawning a WMI Class Instance using C#

    Is there a code sample on spawning a WMI instance using C# I have found samples using VBScripting and C++ but I need C# info. right click on your project - go to add reference and select System.Management. Import the System.Management and System.Management.Instrumentation namespaces. I have also posted many examples on the forums to do some WMI stuff, perhaps this would be of some interest as a guide http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=913855&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=868096&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=839055&SiteID=1 ...Show All

  • Visual C# Shutdown.exe problems

    Process shutdown = new Process(); shutdown.StartInfo.FileName = "C:/WINDOWS/System32/Shutdown.exe"; shutdown.StartInfo.Arguments = "-s -f -t 20 -m \\deruu"; shutdown.Start(); I can get it to log me out using argument -l only, but with that I only get a "Frozen" cmd window titled "Shutdown.exe" and nothing happens. my apologies, seems to be a typo for GetFolder, it should be Environment.GetFolderPath. And again, my apologies, the Process class does not take the overload but it should have been the ProcessStartInfo class. So even doing it this way shouldnt make much difference: ProcessStartInfo thePSI = new ProcessStartInfo("shutdown.exe"); thePSI. ...Show All

  • SQL Server Insert Images in SQL 2005 express DB, using C# code for asp.net 2.0 (VS 2005)

    Help! I found about a dozen samples and articles in the net about inserting images in a sql database, but they were either using VB, or asp only or SQL 2000 and although I tried them all, none worked... Can you help me by posting some code on how to insert images in SQL 2005, using C# in Visual Studio 2005 (asp.net 2.0) Thanks. Got it (using Windows Authentication with SQL)! And here is the code for anyone trying to learn it out there: web.config: <connectionStrings> <add name="ContestConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\contest.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/> </con ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using vetex color

    I am drawing 3 lines that represent the 3 axis. The 3 axis are to be 3 different colors. Is there a way to draw using the vertex color using BasicEffect or will I have to write my own Right now I am just rendering the 3 lines seperately changing the diffuse color each time. using ( VertexDeclaration decl = new VertexDeclaration ( m_graphics, VertexPositionColor .VertexElements)) { m_graphics.VertexDeclaration = decl; m_graphics.Vertices[0].SetSource(m_vb, 0, VertexPositionColor .SizeInBytes); BasicEffect bEffect = new BasicEffect (m_graphics, null ); bEffect.Projection = Matrix .CreatePerspectiveFieldOfView(( float ) Math .PI / 4.0f, 400.0f / 400.0f, 1.0f, 1000f); bEffect.View = Matrix .CreateLookAt( ...Show All

  • SQL Server Invalid character in a report

    Hi! Trying to generate a report (using WebForm ReportViewer, from dynamically created RDL report and SQL Server 2005 OLAP cube), if a database field contains control characters (code < 0x20), Reporting Services generate following message: ' ', hexadecimal value 0x02, is an invalid character. Line 1, position 2376. Is it possible to ignore that I don't care if browser shows an octopus, the report must work. Thanks, Andrei. Lev, I've just emailed RDL and other details to you. I could reproduce the problem using sample AdventureWorksDW and OLAP (standard edition). Create an OLAP table report, put e.g. Model Name in one of columns. The report works fine. Now change e.g. ModelName ...Show All

  • Visual Studio 2008 (Pre-release) Work around for common install problem when moving to WinFX Beta 2 from WinFX February CTP

    There is a section in the release notes for the May 23 WinFX Beta 2 release that is worth calling out since many WinFX users may encounter the issue that it covers. See section 2.8 in   http://msdn.microsoft.com/windowsvista/support/relnotes/winfxbeta2/default.aspx . 2.8 WinFX Beta 2 installation fails on a system with WinFX Jan CTP or earlier previously installed WinFX installation fails with this error: ERROR_INSTALL_FAILURE 1603 Fatal error during installation And in one of the %temp%\dd_wcf_retCA*.txt log files, it shows the following: ServiceModelReg [15:48:08:041]: Installing: Microsoft Digital Identity Service (idsvc) ServiceModelReg [15:48:08:073]: Error: System.ComponentModel.Win32Exception: The name ...Show All

©2008 Software Development Network