Franz P.'s Q&A profile
.NET Development Key management - Cryptography Application Block
Hi, I am using CAB for our encryption needs, code works well, but I have a question: how to store/backup the encryption key If someone can point me to a web site talking about best-practice etc, I would highly appreciate. Thanks! While I don't know of a specific website off hand (although MSDN has a wealth of articles on storing keys), I would definitely recommend Michael Howard's Writing Secure Code [Second Edition]. http://www.microsoft.com/mspress/books/toc/5957.asp Virtually every developer and tester at Microsoft has a copy of this book, and we use it for code reviews, security audits, ...Show All
Windows Forms Help me designer has Bugs bugs bugs
For some reason whenever I use certain controls in Visual Studio 2005 the designer will not reload the form and I get Initialization errors in the designer. Ive downloaded the TaskVision app to see if it was something that I was doing, but I am unable to view any complex forms in that project either.. One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The designer cannot process the code at line 58, please see the Task List for details. The code within the method 'InitializeCompone ...Show All
SQL Server Problems with ODBC
Some combination of installing Visual Studio Team Architect and/or SQL 2005 Online books and tools. I can no longer link to tables in a SQL server from Access becuase the ODBC datasource will not come up. Where can I ask this question to get some help Thanx, Robert, You posted twice so I moved your other posting (same questions) to the SQL Data Access forum. They should be able to help you over there. Cheers, Dan ...Show All
Windows Forms Writting a small HTML-Editor (WYSIWYG)
Hi, I want to write a small HTML-Editor, like this one here on the page used by Microsoft. Has anyone of you done this before and give me some tips and hints, on how to do it fast and easylie There is a sample available (with source code I think) here: http://www.windowsforms.net/Default.aspx tabindex=4&tabid=49 ...Show All
Windows Forms Still Can not find Microsoft Communications Control?
I am using Visual Studio.NET 2003. I am trying to add the Microsoft Communications Control to my toolbox. I have the "Customize Toolbox" window open, but I do not see an option for Microsoft Communications Control. Please advise what I should do. Thanks. mturnage is correct. Check out this KB article for details. http://support.microsoft.com/default.aspx scid=kb;en-us;318597 ...Show All
Visual Studio Team System Team Explorer - red cross on "documents"-folder
Since installation of TFS I am unable to see the content of the documents-folder (teamexplorer) on a client-machine. There is always a red cross on the folder! If I start the team explorer on the server the documents folder is shown correctly. I tried to copy the http-url ( http://[servername]/sites/[Project ]) to an IE on a client and there the sharepoint site is shown without any problems. I did the changes required after installation of Sharepoint Portal Services SP2 ( http://blogs.msdn.com/robcaron/archive/2005/10/07/478336.aspx ). I think I also configured the users like mentioned in the install guide (TFSInstall-v50926.chm - Manag ...Show All
Visual C# socket exception
ok made a very very good class server it can handle to 3879 clients but when it reach 3880 it throwes an exception like that says that it cant perform operation on a system socket because the socket`s quenque is full hi, you can ask this question in .net networking forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=40&SiteID=1 ...Show All
SQL Server Using Current User Name in Report Builder Filter
If I create a report in Report Builder that shows some data connected with usernames (e.g. work items assigned to my team members), how can I filter the report data by the current user In Team Queries I do this by specifying @me but it seems it does not work with Reporting Services ... In Report Builder, GETUSERID() will return the current user. Bob Meyers has a new blog entry with all sorts of good stuff around these sorts of questions: http://blogs.msdn.com/bobmeyers/articles/Implementing_Data_Security_in_a_Report_Model.aspx ...Show All
Visual Basic Truncate Arrays
I was wondering if anyone knows a way to truncate the initial part of an integers array. I can do that with a for loop that fills a shorter array starting from a specified index of the source array, but it takes ages so there must be another way... Thanks Leo Leo13 wrote: I was wondering if anyone knows a way to truncate the initial part of an integers array. I can do that with a for loop that fills a shorter array starting from a specified index of the source array, but it takes ages so there must be another way... Thanks Leo Problem solved using ...Show All
Visual Studio Express Editions socket programming... linker error
Hi All, I am writing a Win32 Client program which is giving me linker errors which are listed below. I found in some post that ws2_32.lib and winsock32.lib files are required. these both files are available in the librarries but still i am getting linker error please help me. I am using winsock.h header file . if i use winsock2.h then i get multiple declaration error. Please help me. The linker eroors are listed here: VcJavaConnect fatal error LNK1120: 7 unresolved externals VcJavaConnect error LNK2019: unresolved external symbol _closesocket@4 referenced in function "public: void __thiscall Client::sendData(char *)" ...Show All
.NET Development Checking internet connection
I want to check if internet is available on Lan or not how can i achieve this functionality Hello. What version of Visual Studio are you using If you're using VS 2005 you would really just need to iterate through all the System.Net.NetworkInformation.NetworkInterface objects. This is available from System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces. For each NetworkInterface you can just query its OperationalStatus property to see whether or not it is connected. You can also check speed characteristics, etc. Hope this helps. ...Show All
SQL Server Getting field value in Select Statement
I have problem getting the value of a field in a select statement to be stored in a variable when the select statement is stored in variable and executed thru exec sp_executeSQL. ex. Declare @Count as int, @SQL as varchar(500), @DynamicWhereClause as varchar(100) /* here i set the value of my dynamic WHERE clause. */ set @SQL = 'Select count(*) from table1 ' + @DynamicWhereClause exec sp_executesql @SQL I want to store the the value for Count(*) to @Count. Thanks, Lou Belaro You need to parameterize the SELECT statement and use it in the sp_e ...Show All
Visual Basic Build Error...need help with it please
HELP!!!!...Where do I put the integers so that the bottom buttons can use them this is the exact code...I need it so that Button1,Button2, and BtnProduct can use the integers so they can do the math....Please help me!!!!! Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing ...Show All
Windows Forms How to write a scheduler for Windows (newbie)
Hi - I have a web application, which I want to use to send me email reminders of events. To have this send the emails each day about the events of that day, I need to write a windows application/service, which will query my database and loop until all of the events of that day have had an email sent for them. I've only ever written in asp/asp.net - and have access to write .net 1.1 or .net2 on my server - I've never written windows programs. I have visual studio.net 2003 and visual studio 2005 professional. Can anyone please offer any guidance on where to start - if I write a windows app with a timer, will this tie up my processor o ...Show All
.NET Development C# 2003 or 2005 - Icons Created from code are bad quality
Hi There I have tried the following code in .NET 2003 and 2005, and in both cases it produces poor quality icons. Could anyone please explain how I can fix this TIA Bill //****************** [ DllImport ( "Shell32" , CharSet = CharSet .Auto)] private static extern int ExtractIconEx( string lpszFile, int nIconIndex, IntPtr [] phIconLarge, IntPtr [] phIconSmall, int nIcons); //****************** int readIconCount = 0; IntPtr [] hDummy = new IntPtr [9999]; IntPtr [] hIconEx = new IntPtr [9999]; InitializeComponent(); readIconCount = ExtractIconEx( @"C:\WINDOWS\SYSTEM32\SH ...Show All
