radek_m's Q&A profile
Windows Forms VS2005 CryptographicException when adding SqlDataAdapter
I have VS 2005 SP1, and when I try to add a SqlDataAdapter to a Form, or try to add a new Data Source, I get the following exception: Failed to create component 'SqlDataAdapter'. The error message follows: 'System.Security.Cryptography.CryptographicException: Key not valid for use in specified state. at Microsoft.VisualStudio.Data.DataProtection.DecryptString(String s) at Microsoft.VSDesigner.Data.VS.DbSourceWizardUtil.GetSEConnections(IServiceProvider serviceProvider) at Microsoft.VSDesigner.Data.VS.DataAdapterWizard.GetConnections() at Microsoft.VSDesigner.Data.VS.ConnectionPage.RefreshConnectionList(Boolean allowChangeSelection) at Microsoft.VSDesigner.Data.VS.ConnectionPage.OnInitializePage(EventArgs e) at Microsoft.VSWizards.WizardPa ...Show All
Visual Basic Select Case statement being evil
The select case statement is out to get me! Has anyone else run into the trouble of having a Select Case statement and one of the case statements has hit if you look at the data, but refuses to hit anyway That probably doesn't make sense... Put it this way... I have, say, a ListBox control that has three IP addresses in it. For argument's sake we'll say the three items are: 192.168.0.1 192.168.0.2 192.168.0.3 These items have the indices 0, 1 and 2 respectively. Now, inside a function that receives a string of data (T) from a network user I have code that's something like this: Dim X As Integer For X = 0 To (ListBox1.Items.Count - 1) Select Case ListBox1.Items(X) Case T 'Code segment 1 Case Else 'Code ...Show All
Visual Studio Setting the 'Support Version' in Add/Remove programs with MSBuild Publish target
Hi, We are using one click publishing and publish our application using MSBuild as below:- < msbuild project = " ${CCNetWorkingDirectory}\Programmer\Programmer.csproj " verbosity = " Normal " target = " Publish " > < property name = " Configuration " value = " ${project.config} " /> < property name = " PublishDir " value = " ${project.publish}\ " /> <!-- <property name="AssemblyOriginatorKeyFile" value="WindowsApplication3.snk" /> --> < property name = " PublishUrl " value = http://somewhere /> <!-- The IDE publishes to this location. It is inserted into the ClickOnce application manifest if neither the InstallUrl or UpdateUrl property is spec ...Show All
Visual Studio Express Editions Parsing Text files
Hi, I have created a vb application that loads the contents of a comma delimited text file to a textBox1. I now want to change the format of the data held in textBox1.text and have the changes shown in textBox2.text, as shown below: textBox1.text = 55, Smith, Fred, Actor, Retired textBox2.text = Fred, Smith, Retired, Actor, 55 Any help with the method to use to re-arrange the textBox1. text string to textBox2.text string would be much appreciated. Jason Dave, can you tell me how I would need to modify the code to deal with a textBox that had multiple lines of data as shown below 55, Smith, Fred, Actor, Retired 45, Jones, Chris, Actor, Retired 23, Clarke, Andy, Acto ...Show All
.NET Development new hardware .net runtime optimization service
What hardware Help me be rid of this Hi Steve, do you happen to have Visual Studio installed on this box If so, check out the following link to resolve this: http://blogs.msdn.com/astebner/archive/2005/11/03/488892.aspx Cheers, JJustice [MSFT] ...Show All
SQL Server Installing SQL Server 2005 on Windows VISTA ULTIMATE
Hi, Trying to install SQL Server 2005 on Windows VISTA Ultimate, received following error: - SQL Server Edition Operating System Compatibility (Warning) Messages SQL Server Edition Operating System Compatibility Some components of this edition of SQL Server are not supported on this operating system. For details, see 'Hardware and Software Requirements for Installing SQL Server 2005' in Microsoft SQL Server Books Online. Please help. I had IIS 7 installed. The first time was a clean install of vista with iis 7. I tried IIS running without IIS 6 compatibility and with it. During the setup of db services it fails to find the user. I am using the local system account option to install. I confirmed IIS was ...Show All
Visual C# C# Question
Hello, From a C# program, how do I display a form that was previously created in Access Thanks. private void CloseBtn_Click( object sender, EventArgs e) { string database = "Test.mdb" ; string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + database; // Prepare the connection System.Data.OleDb. OleDbConnection conn = new System.Data.OleDb. OleDbConnection (connectionString); try { conn.Open(); // Insert code to process data. //frmMainMenu.Show(); // Opens the Access Main Menu form } catch ( Exception ex) { MessageBox .Show( "Failed to connect to data source" ); } finally { conn.Close(); } ...Show All
Visual Studio Express Editions how to check...
how to check if you are connected to Internet I assume you were asking for programmatically way to check for internet connection. If so, I'd recommend you to use Ping class in .NET Class Library, for more information regard to this class, look at: http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx If there is any question or the issue is not resolved, please feel free to mark the thread as not resolved and we will look into it again. thanks rico ...Show All
Visual Studio Express Editions weird problem
Hi, the enqueue function does not work. It creates a weird exception. How can I fix it void Queue::enqueue(string newItem){ QueueNode *newptr = new QueueNode; newptr->item = newItem; if(isEmpty()){ back = newptr; back->next = newptr; } else{ newptr->next = back->next; back->next = newptr; back = newptr; } } int main() { Queue e; e.enqueue("m"); return 0; } In which line is the exception generated What exception is thrown -- SvenC ...Show All
Visual Studio Express Editions storing a date
i am trying to aquire the system date and time from a click event. i can get the date and time...how do i store that time for later...if i use the date.now.date it will run everytime and i will never reach the end date...i am using this for a trial period trigger and need to be able to reach that end date. anyone have any ideas on how it can be done. Just create another form on your project, and have it show itself. Put your information for purchasing on it. If Time > Time2 Then MsgBox( "Trial period over!" ) 'Do if Trial Period is Over Form2.Show() End If Then when Form2 loads have it delete the file and its directory. My .Computer.FileSystem.DeleteFile( "C ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I’m in desperate need of direction...
I know you guys are probably overrun with these kinds of threads, and I apologize for making another one. I did my best to look around and get as much info from the other threads as I could, but really I need a personalized response to figure out what I should do. I’m 17 and am currently replying in the process of applying to my local college (game design and development), but stupid me forgot that they want a portfolio for classes like this (windows applications, small games, ect ect). And I have about 2 or 3 months to figure this all out before my portfolio is due. So far I’ve downloaded XNA game studio express, Microsoft Visual C# 2005 express, and the 30 day trial for the Torque game builder. I’m completely new to this and totally lost ...Show All
Windows Forms Version Number of ClickOnce application
I want to display the version number of a Click Once application in my About box. Any ideas on the easiest way to get this It appears to be in the MyApp.exe.manifest file, but I'm wondering if there is a better/easier way I'm guessing there's nothing directly in the framework, as the app doesn't know how it's deployed, but I could be wrong. TIA, Bill What I usually do is show Application.ProductVersion in the "else" part [when not ClickOnce deployed]. This way, the "debug" version can be different than the "published" version [if you don't keep those synchronized], but in both cases, you'll see the version displayed. Andrej ...Show All
Visual C++ About DLLs adres space(wrong information in MSDN?)
Hi Please look at this MSDN page http://msdn2.microsoft.com/en-us/library/d1587c1h.aspx here it writes: "An application can have multiple instances of itself running in the system simultaneously, whereas a DLL can have only one instance." But here http://www.windowsitlibrary.com/Content/356/03/1.html#3 it writes: "Under Windows 95/98, the operating system DLLs, such as KERNEL32, USER32, and GDI32, reside in the shared address space, whereas in Windows NT these DLLs are loaded in the process’s private address space. Hence, under Windows 95/98, it is possible for one application to interfere with the working of another application." So in winnt systems a DLL can have multiple instances.Right If true so is MSDN information page wrong Which on ...Show All
SQL Server Error 952 Database is in Transition
One of our SQL 2005 database started to give us "Database is in transition...Error 952". We were trying to Take the DB offline when this problem occurred. Restarting SQL service did not help us. We were unable to do anything with this database as we were unable to obtain any locks. What resolved the problem Re-starting manamgement studio on client machine. Go Figure! SJ100, Thanks for posting this. It saved my customer at 5am this morning... I will be opening a case with MS to see if this is a known bug, or "by design" behavior. Kevin3NF http://kevin3nf.blogspot.com ...Show All
Windows Forms add xp style to my windows application
hi there, I`m working on that vb.net 2005 windows application and I want add xp style on my controls and forms so that it works not only when the app is setup on xp OS but also when the app is installed on other OS PLEEEEEEEEEEESE HELP ...Show All
