alien-'s Q&A profile
Visual C# Before we proceed I really need some protection!
If I were to make a C# program that contained a sensitive algorithm, how could I protect it I know that C# generates MSIL (this is what has me the most concerned), is there any way to get the compiler to scramble it or some thing The last thing I want is my code decompiled. I probally should have made a native C++ project, but it is so hard to motivate your self to do so when C# is sitting right in front of you. When the compiler declares variables in MSIL does it name them what you call them in C#, or does it assign them more machine like names Any suggestions would be helpful. Not exactly, but the logic will be there, only the names as i write will be crypted. So the name of class-s will be a, b, c, d ...Show All
Windows Forms how to void the TabIndex property so labels cannot be tabbed through?
Is there a way to void the use of the TabIndex property I have a form with textboxes and labels, but I don't want the labels to be included in the list of controls that you "tab through". I want to be able to tab through just the text boxes, and then when finished going through all of them, it should go back to the first textbox, rather than having to go through each label before doing that. Thanks! Ok, that is good to know. After I read this, I removed my code that I had just previously added to set the TabStop = false for my labels, now that I know that this property is false by default. It seems to be working now, without me having to set TabStop = false. I'm not sure why it wasn't working before. Before, i would tab th ...Show All
.NET Development soap response processing.......
Hi, I need to connect to a webservice and post soap request via http and should get response back and then need to process it, I am getting soap response back. now I need to process it and display in a grid, which would be the best way to process it, if I convert it to xml it would be easy for the dispaly, is anyway we can do it, pleaseeeeeeeeee advise. thanks Do you mind sending the VB 6.0 project to this address , so I have a look ...Show All
Visual Studio Tools for Office Excel XML Auto Column Width
Hi, I've been trying to figure out how to get excel to automatically set the width of the columns for XML spreadsheets that I am generating. I know this is possible for HTML excel spreadsheets (because I currently do this in some of my other programs), but it doesn't seem possible in XML. Does anyone know if there is a way to do this Thanks EDIT: I apologize if this is not the right forum for this question, but I didn't see a closer matching forum. I would recommend trying The Office Development news groups http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/008/topic.xml ...Show All
Windows Forms Building a Form Manager
Hey All, I have seen numerous posts where people mention building a form manager to keep track of open forms and other settings. Can anyone point me to an example of such an animal I want to build a manager that when a new form is opened, it is stored in the central location. I also want to be able to go to a central location to check the "Current User" as this is an application class, and is easily and frequently switched on the fly by the user. Basically a central location to go to that is up to date with the current environment. However, I am not quite sure where to start, and an example of one would be nice. Thanks, Hammy OK. I have already been looping through open for ...Show All
.NET Development Some how the update command is not working.
Hi, im using Web Forms Im trying to update the database but the query is executed correctly and th database is not updated but the returned message is 1, I really dont know whats causing this here is my code. private void UpdatetheDatabase( string connection) { SqlConnection connect = new SqlConnection (connection); SqlCommand update_customer_details = new SqlCommand ( "UPDATE [app_CustomerDetails] " + " SET [Name]=@Name,[City]=@City, " + " WHERE [ID]=@ID" , connect); update_customer_details.Parameters.Add( "@Name" , SqlDbType .NVarChar, 50).Value = txtCustomerName.Text; update_customer_details.Parameters.Add( "@City" , SqlDbType .NVarChar, 50).Value = txtCi ...Show All
Windows Forms Drawing focus rectangle on the Image combobox
Hi, I am working in vs 2005. I designed a custom image combobox control with ownerdrawnmode. I am overriding the protected method DrawItem as follows. Protected Overloads Overrides Sub OnDrawItem( ByVal e As DrawItemEventArgs) e.DrawBackground() e.DrawFocusRectangle() If e.Index < 0 Then e.Graphics.DrawString( Me .Text, e.Font, New SolidBrush(e.ForeColor), e.Bounds.Left + imgs.ImageSize.Width, e.Bounds.Top) Else If Me .Items(e.Index).GetType Is GetType (ImageComboItem) Then Dim item As ImageComboItem = CType ( Me .Items(e.Index), ImageComboItem) Dim forecolor As Color = Microsoft.VisualBasic.IIf(( Not (item.ForeColor = Color.FromKnownColor(KnownColor.Transparent)) ...Show All
Windows Live Developer Forums Windows Media Player and Messenger
Where do I find the plug-in for Windows Media Player that lets me show contacts what music I'm listening to on Windows Live Messenger i have a windows live messenger and and new windows media player but on the plug in's section there isno msn messenger plug in where can i find it i have looked for it but can't find it! what do I do ...Show All
SQL Server Problem while deploying Report on server
Deploying to http://localhost/ReportServer Deploying data source '/Report Project1/cnt_SDS_REQUEST'. The Report Server Web Service is unable to access secure information in the report server. Please verify that the WebServiceAccount is specified correctly in the report server config file. I found the issue(s) First off, there were 2 application pools created by our Network Admin that were both configured for the same virtual Directory. This was causing me issues with the deploying issue. Second, They were both configured for either LocalSystem or NetworkService which would always tell me that I didn't have access to execute them. Once I stopped one of the 2 application pools and ensured that the Web service Identity matched the ap ...Show All
Visual Studio Express Editions reverting to default radiobutton checkstates
I have a dialog with some radiobuttons on it. I want to 'get' the .check value from each when it(the dialog box) loads-before any changes are made. Then when the OK button is pressed, the boolean values are renewed with the new values that the user clicked, but if the Cancel button is pressed, then no matter what changes were made, everything is put 'where it was', so to speak. The best way to do this is to first of all put the radiobuttons in a class. When you come into your dialogue clone that class in memory. When there are changes and the ok button is pressed, save the changes. If cancel is pressed - current class = saved class and everything should be restored. ...Show All
Visual Studio Express Editions Visual Basic 2005 Express Edition hangs if I clic on any option in Help Menu
Hi, I finally installed VB 2005 Express. I had to temporarely stop my Panda antivirus software to be able to install first the .NET Framework 2.0 and later VB manually. When I first run VB, I got the message: "Visual Studio 2005 is configuring the environment for first time use. This might take a few minutes." After 3 hours , I stopped VB and other two processes on Tas Mgr. I started VB again and it appeared aparently right. But then, I started investigating the help menu and then my computer hangs. I have to stop the process on Task Mgr. and close VB. I have XP SP2 with 1Gb RAM and a Toshiba Satellite laptop. Thanks for any help Ignacio I'd probably take a few steps to try ...Show All
SQL Server Error on Attaching Database
When attaching a database that was detached from another SQL Server instance. I got the error message below: Error 602: Could not find row in sysindexes for database ID 25, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes. i am using SQL Server 2000 Thanks and Regards reason 1 because the host provider has stated there is a problem with your database. You do not have a local copy. They take you off line and tell you to fix it and send you a 2005 mbf file.....You only have sql 2003 ...Show All
SQL Server Asymmetry in "Execute SQL Task"?
Anyone know why the Execute SQL Task is only available under Control flow and not Data flow (At times it's a useful data manipuation task and I wish was available as a Data flow task as well.) Barkingdog ssis provides the ole db command data flow transformation component for sql-based data manipulation: http://msdn2.microsoft.com/en-us/library/ms141138.aspx ...Show All
SQL Server SQLEXPRESS Database Issue - Cannot open database ASPNETDB.MDF requested by the login, login failed
Hello Guys This is my connection string <add name ="ASPNETDBConnectionString1" connectionString ="Data Source= .\SQLEXPRESS; Integrated Security = True; DataBase = ASPNETDB.MDF; User ID = MyWindowsUserName; Password = MyWindowsPassword; User Instance = False; Connect Timeout = 30" providerName ="System.Data.SqlClient"/> I tried to research on the internet and i got a solution on changing the permissions for this database to enable user SystemName/ASPNET, but iam not able to access this ASPNETDB.MDF from SqlServer and if i go to server explorer in vs2005, i dint know where to chage the permissions. Can anyone help me on this. Thanks a lot The ASPNET account needs to have access bo ...Show All
Visual Studio Express Editions If Windowkey pressed then startmenu hide
hello, how can I do this If e.keycode = keys.lwin or keys.rwin then 'make the start menu hide End If thanks! ...Show All
