Nicolas SC's Q&A profile
.NET Development "Strange" behaviour with TransformBlock and RijndaelManaged
I am currently developing a system which involves a client and server app, which communicate over the net via TCP (nothing too unusual). I want to secure the connection between the client and server, as moderately sensitive data will flow through the connection. I was pleased to find using the .Net framework I managed to get key generation and exchange using RSA working without too much hassle. Next I wanted to use the generated keys to encrypt the data using RijndaelManaged, using the CryptoStream. Problem is that each packet doesn't cleanly end in 128bit intervals, so it waits until it has filled a block before sending the data. Call ...Show All
Visual Studio Express Editions problem with partial class
I have a partial class implemented in two different files. The problem I am facing is that, while I am debugging, the control goes into the other class but it does not execute rest of the code in it. Both these implementations are part of same dll and they are with in same namespace. Any help will be highly appreciated Thanks raindrops123 I have a file say file one which has code something like this public sealed partial class TestPartialClass : TestClass { // member vaariables private long itemId = 0; private string itemPathName = null; public long ItemId { ...Show All
Windows Forms 2 Bounds DataGridViewComboBoxColumn - Select value from the first should filter the second !
Hi All, I saw that a some members ask the same question and no one get an answare until now. I have a simple situation , One column is bounded to the "countries" table (country,description) , and the ather is bounded to the "cities" table (country,city,description). All I want is : when the user will select a country from the first column he will see just the relevant cities in the second column. The problem become when eatch row have different country . Please send me a code sample. Best Regards Boaz Shalev. Check out this post: http://forums.microsoft.com/MSDN/ ...Show All
Visual C++ Non standart shape of a form
How can i create a form with a shape of a circle or other nonstandart shape (with mask or w/o it). And not only a form - Buttons and another controls too. Alexxey wrote: How can i create a form with a shape of a circle or other nonstandart shape (with mask or w/o it). And not only a form - Buttons and another controls too. See http://www.codeproject.com/dialog/SimpleIrregular.asp ...Show All
SQL Server Unique Integer IDs
Hello, I wanted to hear from you - if you've used any unique integer generation technique in the context of a disconnected smart client/local data store and have been successful with it. Any ideas/suggestions will be great. Thanks, Avinash We are using unique integer ID generation for our document ISNs. It works perfectly. You just need a good distribution if you have any concurrent processes generating IDs. I can provide further details if you wish. ...Show All
Visual C# Move textbox around on my form in run-time
Hey howzit I would like to beable to move a textbox that is on my form with my cursor to anywhere on the form in run-time Is this possible, could you perhaps give me a code snippet I am very new to C#! Thanks! Textbox has Left and Top properties, you can move the textbox by reassigning values from these properties. textbox1.Left = < new value>; textbox1.Top = < new value>; Regards, -chris ...Show All
Windows Forms Moving controls to a panel results in losing it's events!
Hi! (I use:VB.NETV2005Beta2,WindowApplication, SQL-database) I have made a large Form with a lot of controls on it, (approx. 200!). NOW, I come to the conclusion that most of them have to move, from the windows form to (several) Panels. Problem: After moving controls to a panel, VB renames all the controls, and place a '_1' after the names of the controls: for instance, MyButton_ClickEvent changes to MyButton_ 1 _ClickEvent. With this, all of the events are lost. Ofcourse this can be solved with Contr_C & Control_V, but for 200 controls, this would be 5 hours work! Question: Does somebody have a ...Show All
Windows Forms How to manually copy ClickOnce projects to a publish web site?
I am developing a project using VS.NET Beta2. However, our publish web site is a IIS running .NET Framework 1.1 and we cannot upgrade it to 2.0 at this time. Can I manually copy project files to that web site and configure it to let our customer download and auto-update our project executables Thanks! You don't need .Net 2.0 on the server. You can publish your ClickOnce deployment to IIS using VS 2005. As long as you have the MIME type correctly configured as below you can publish to IIS. .application -> application/x-ms-application .manifest -> application/x-ms-application .deploy -> application/octet-stream You can a ...Show All
SQL Server CSV Exports are not as expected, columns are missing
I use SQL2005. I have a hard time understanding the reason why the CSV exports are not exporting the report with all the columns. Only the first column of data is exported. example, I have report like this Product Customer Jan Feb Mar Apr Jun p1 C1 12 3 13 7 20 After csv export, I get a bunch of label down the rows, then I see my Product and Customer columns but I can only see Jan. Feb Mar Apr and Jun are NOT exported. All these columns have exactly the same settings and the report is not a matrix report. When I export to Excel or HTML, the result is perfect. Any idea Thanks Philippe ...Show All
Visual Studio Team System Getting "Memory is Corrupt" errors when performing checkins.
I have seen this a few times now. When performing a checkin of several files into VSTS I get the following error, any ideas running Beta 3 Refresh with VS 2005 RTM. "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I looked through the bugs for anything about corruption in the title, and I found one fixed in January, but it wasn't quite the same scenario. Ben Ryan hunted around for something about this but didn't locate anything either. It's possible the issue is fixed in the RC. Would you try that and let us know whether it still happe ...Show All
Visual Studio 2008 (Pre-release) Model-View-ViewModel
Hello, I want to build a bigger application with WPF and it should have a structure like MVC. I heard about the Model-View-ViewModel Pattern but I have never seen an example of how a ViewModel looks like. I don't want to have all that event-code in my code-behind file and thats why I am thinking of the ViewModel Pattern. I want to be able to seperate my business logic from the ui. Any suggestions or hints Thanks I'm not absolutely sure what the scenario is still, so I'll proceed cautiously, and at least perhaps something I say will clarify something. Who is changing the Accounts list Is the datab ...Show All
SQL Server SQL Express Exceptional error
Hi, I have this exceptional error when I am accessing SQL Express using MS SQL Server Management Studio Express. Below are the versions I am using. Microsoft SQL Server Management Studio Express 9.00.1399.00 Microsoft Data Access Components (MDAC) 2000.085.1117.00 (xpsp_sp2_rtm.040803-2158) Microsoft MSXML 2.6 3.0 4.0 5.0 6.0 Microsoft Internet Explorer 6.0.2900.2180 Microsoft .NET Framework 2.0.50727.42 Operating System 5.1.2600 Below is the exceptional error message: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text * ...Show All
Visual Studio Express Editions fatal error C1083: Cannot open include file: 'randomcard.h': No such file or directory
Hi, I'm using Visual C++ 2005 Express, and I see that this type of error message has been giving a lot of people problems, but after trying a few of the fixes posted here, my project still gets the same error message. Here's a snippet of my .h file: //randomcard.h int randomcard( void ) { int randomnum; and here's the top part of my .cpp file: #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <string.h> #include <time.h> #include "randomcard.h" #include <iostream> ; Please let me know if you need anythi ...Show All
Visual C# Error 1 'Curso.DatosCs.DatosSQLServer.CadenaConexion.get': not all code paths return a value
I am new at C Sharp development. I am making an example from the Microsoft .Net University about .Net application development. I am developing in C Sharp 2005 and copying a method but when I compile I gets the next error message: Error 1 'Curso.DatosCs.DatosSQLServer.CadenaConexion.get': not all code paths return a value. The method I am using is this: public override string CadenaConexion { get { if ( this .mCadenaConexion.Length==0) { if ( this .mBase.Length!=0 && this .mServidor.Length!=0) { System.Text. StringBuilder sCadena= new System.Text. StringBuilder ( "" ); sCadena.Append( "dat ...Show All
Visual Studio Express Editions Exception error on all programs I build now...
I'm getting the following exception error on Windows 2000 machines now. I wasn't before, and I don't know what I changed. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle) at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Wind ...Show All
