nitesh_garg's Q&A profile
Visual Studio Toolbox Missing Controls
I was working in Visual Studio 2005 on Vista with SP1 and the Update for Vista installed. I had been working with a Visual Basic / Smart Device / Windows CE 5.0 project. After testing on Windows Mobile 5.0 Pocket PC Emulator and returning to modify the form, I found the Toolbox went into "Initializing Toolbox" before displaying and when it did finally display, I'm left with the following controls: All Device Controls Pointer BindingSource Common Device Controls Pointer Button #13119 I've reinstalled SP1 and the Update for Vista but still not controls. Anyone with ideas before I uninstall/reinstall What if you add a new winform or aspx page to one of the existing pr ...Show All
SQL Server SCD question
Hi All, I am new to SSIS and have one question about SCD and its limitations. I am trying to update / insert a table based on 2 other external columns. I have done my lookups to transform and grab the necessary columns and have a final dataset ready for insertion/updates. So at this point I was hoping to use SCD to do my updates/inserts based on the criteria that I was given but the only problem is that 2 columns that are necessary to determine if the row should be updated or inserted do not exist in the target table. Is there a way around this or can someone show me another method to achieve my goal Thanks, Cheston You might want to make your own "SCD" by using a conditional split transformatio ...Show All
Windows Forms webbrowser control, DocumentText and relative css paths
I am using a webbrowser control in a c# forms app. I use the DocumentText property to set the html. Things work fine. however if the html has relative css links like in the below example webBrowser1.DocumentText = @" <html><head> <link rel=""stylesheet"" type=""text/css"" href=""ex1.css"" /> </head> <body> <p>This paragraph has a left margin of 50 pixels</p> </body></html>"; Its not able to load the css as the url is relative and it simply does not know the base. is there any way I can tell the webbrowser control to attach some base url to the relative ones This is not specific to css uri but just any relative uri (images/scripts/links). Also can anyone point me to any docs on usin ...Show All
.NET Development SslStream.Read() - Returns invalid data
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made the client application establish a connection, and send data, which appears in plain, de-crypted text on the server - this works. However, I am 'polling' the socket to see if data is available to read. Here is some code which is appropriate: ---- public void Process(int threadId) { int BytesRead = 0; try { Master.Log("BEGIN READ"); sslStream.ReadTimeout = 5000; BytesRead = sslStream.Read(bytes, 0, bytes.Length); Master.Log("READ " + BytesRead + " bytes"); if ( BytesRea ...Show All
Visual Studio 2008 (Pre-release) Text Box instantly updating?
Hi, Just a quick question. I'm trying to create a TextBox that automatically changes the case of text to "SentenceCase" as it's typed in. I've written a simple converter like so: public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return ConvertBack(value, targetType, parameter, culture); } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { String stringValue = value as String; return culture.TextInfo.ToTitleCase(stringValue); } Now this works with my databound TextBox inasmuch as, if the dataprovider contains "hello world", then, when the TextBox loads, it is displayed as "Hello World" via the &quo ...Show All
Windows Forms VB background image properties
Hi, A real beginner's question I'm afraid. I've been working my way through the Learn Visual Basic lessons (via the link on the front page of Visual Studio) and am at the Images/Picturebox lesson. At the end of the lesson, it gives you some code to paste to change the background image property when you click on the background (note that in the sample below I have changed this to clicking on a button as a test to see if it made any difference). Anyway, nothing happens. I have checked and double checked that I did everything right - all the rest of the lesson works but my background image property does not change. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clic ...Show All
Visual Studio 2008 (Pre-release) Security Pain (Vista basicHttpbinding)
I am struggling to get my server running with the basicHttp binding over https on Vista (it is a self hosted server). The server starts up and doesn't complain but the client exceptions when I try to start it up: "An error occurred while making the HTTP request to https://192.168.1.64:8081/Server/G2SServer . This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server." My first question is whether configuring http.sys is required for an application running with the basicHttp binding (this help page implies it is only necessary for WSHttpBinding ms-help://MS.MSSDK.1033/MS.NE ...Show All
Visual Studio Express Editions why have this error during installation?
see image: http://www.mytempdir.com/784864 sal21! i checked the image, it seems that this is just a connection problem. to solve the problem check your proxy settings, if your proxy server is asking for a username and password for authentication, just remove it and it will work. good luck mario ...Show All
Visual Studio Express Editions register
I do not know how to get to the help file in visual 2005 so I can Register. How do I get it started and what do I click on In order to register you need to start the Express edition of Visual Studio that you have, click on "Help" in the toolbar, and then click "Register Product". Let me know if you need additional help! ...Show All
Windows Forms Grouping radio buttons
I'm stuck on radio buttons in C# alas. I can group them by putting then in a Group box, that falls into place. But I want to treat them in code as a group too. I want to be able in one line of code to get the button which is selected, not have to scan through them all one by one. Can this be done Is the group of radio buttons itself available as an object that can be queried with regards to the status of the current seelction in that group I'm afraid you can't unless you write addtional code to find the one selected. because the groupbox control doesn't prohibit you from putting totally unrelated control into the box. ...Show All
Visual Studio Matrix Sum doesn't handle multiple rows of same value??
Using this table: ID Date Prod F1 F2 F3 __ ____ ___ __ __ __ 1 2007-02-15 11:13:09.890 ABC 5 10 20 2 2007-02-15 11:26:28.873 ABC 8 5 66 3 2007-02-15 11:34:00.967 DEF 88 5 3 4 2007-02-15 11:39:56.577 GHI 7 6 5 5 2007-02-15 11:46:14.217 JKL 4 3 2 I attempted a matrix report whose rows are grouped by Date (just the the date part 2007-02-15). The I wanted to Sum up each field(F...) for each Prod. I ended up with this matrix report: ------------------------------------------------------- |=Fields!Prod.Value ------------------------------------------------------- [Gruop On] | =FormatDateTime |F1|=Sum(Fields!F1.Value)| -------------------------- ...Show All
.NET Development web service string as a web browser object
Hi guys, using asp.net and visual studio 2003 i've invoked a simple web service that returns the current weather as a string in xml form. I've placed the string in a text box, but what I would like to do is have the xml string displayed as a web browser object without saving the xml string as an xml file and then refering to it. this is my current code: private void btnGetWeather_Click( object sender, System.EventArgs e) { net.webservicex.www1.GlobalWeather aw = new net.webservicex.www1.GlobalWeather(); string s = aw.GetWeather(txtCity.Text, txtCountryName.Text); txtResults.Text = s; } instead of placing the string (s) in a text box, how can I make string "s" be displayed as a web b ...Show All
Visual C# AutoDelete encryption
Hello all, I was wondering if it was at all possible to create an app (windows service maybe) to encrypt files. If the file was double clicked a password prompt would pop up if the user entered the correct password (given when encrypting the file) it would be unlocked and the user could go about as normal, but if they gave an incorrect password x number of times the file would be deleted and or rendered unretrievable Is this possible or have I been watching to much TV Thanks Tom Too much TV :} A windows service won't help you here. I assume that you want to do this through explorer. In that case you're going to have to write a shell extension which is well beyond this post. You'll need to refer to MSDN ...Show All
.NET Development TransactionCompleted + Sql conn + promoted transaction
(I posted this accidentally also in the Vista Transactionanl Programming part, but it is more a general issue wit SQL connections, transactions and promoted transactions, so I hope I can get some help here...) This is an example of a problematic behavior that we encountered during trying to trigger an action after a successful database commit. It took a while to find characterize the behavior and to bring it down to an example like this. I am pretty sure it is a bug! Just to outline the global scenario: The application has several objects which may open a database connection and select or manipulate data. As some of the calls are expensive the data should be cached in a cache. On database updates the cache should of course be synchro ...Show All
Smart Device Development HOWTO: Resolve Windows Mobile 5 Sync Issues on Vista
Hopefully this is posting will make it visible for people having this issue, even though it is probably the wrong forum... First, assure "Windows Mobile Device Center" is installed - Currently Beta 3 is what is available. Versions older or newer than this may not apply. Symptoms: 1) Can sync with PPC 2003 devices. 2) Can't sync with a WM5 device - driver installs but device shows disconnected status in "Windows Mobile Device Center" and/or it does not appear in "My Computer" as a connected device. Possible Issue: 1) You have a firewall enabled that is blocking ports required for the non-ActiveSync ActiveSync to work. From: http://www.microsoft.com/windowsmobile/help/activesync/default.mspx &q ...Show All
