Lenoire77's Q&A profile
Visual Basic VB.NET UserControl used in VB6 application
Hi. I build in VB Net 2005 an usercontrol that contains a toolstrip.On this toolstrip I add in runtime 9 toolstripbuttons.The code in which I add those buttons is: Public Sub AddButtonsOnToolbar(ByVal intNob As Integer) Dim tsButtons(8) As ToolStripButton For i = 0 To 8 tsButtons(i) = New ToolStripButton tsButtons(i).Tag = i tsButtons(i).Image = System.Drawing.Image.FromFile("D:\Work\Controale_Espot\Pictures\01.gif") tsButtons(i).AutoSize = False tsButtons(i).Size = New Size(48, 48) tsButtons(i).ImageScaling = ToolStripItemImageScaling.SizeToFit If i = 0 Then tsButtons(i).Margin = New Padding(80, 5, 0, 2) Else tsButtons(i).Margin = New Padding(10, 5, 0, 2) ...Show All
SQL Server Problems Accessing SQL after going from SQL 2000 to Mgmt Studio SQL 2005
I installed Mgmt Studio and SQL 2005 on a new server - I imported my complete old SQL 2000 databases - then shut down my Original SQL 2000 server and used that Idenitical IP as the Mgmt Studio SQL 2005's IP I am using Linux Jakarta Tomcat v5.0.27 and all SQL references are referring only to the IP number of ther server and not using DNS - Originally I was getting an error when my system tried to access the SQL stating that it was an untrusted connection - I then realized that the IP number referred to was not the primary IP and I changed that so the it was. Both the Linux and SQL 2005 are now using network IPs and then I got a message that the password that I was using was not strong enough so I changed that as well - then all my ...Show All
Visual Basic Poor Performance in Visual Studio
Hi, I am an experienced VB6 programmer, but just a new starter in Visual Studio 2005. I have found Visual Studio 2005 to be very slow. I set up 3 simple tests with the following results:- 1. Scanning 20,000 directory entries and retrieving date/time and size info VB6 3 Secs Visual Studio (Debug) 13 secs Visual Studio (exe) 3 Secs 2. loading 100,000 Nodes into a treeview VB6 2 secs Visual Studio (Debug) 320 secs Visual Studio (exe) 140 secs 3. loading 100,000 Items into a Listview VB6 2 secs 11 secs Visual Studio (Debug) 270 Secs ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to randomly generate one of four letters
Randomize() lblassign2.Text = Int((10 - 1 + 1) * Rnd() + 1) How can I change this so It will generate one of 4 words. The words are Hearts, Clubs, Spades and Diamonds Also these four words should be capitalized. Since you're probably going to use the suit names elsewhere: public enum Suit { Hearts, Clubs, Spades, Diamonds } public string GetRandomSuit() { Random rnd = new Random ( DateTime .Now.TimeOfDay.Milliseconds); return Enum .GetNames( typeof ( Suit ))[rnd.Next(4)]; } ...Show All
SQL Server Permissions to Reporting Services
I have been looking at forums trying to resolve my problem and now my brain hurts. I really need help with this and no one seems to have a definitive answer. When launch Reporting Services, the page is blank and the settings options are missing. Even though I am logged on to the server with a local admin account. I have tried taking off annonymous access but when I do this I just get the page can not be displayed. Also when connecting to ReportingServices through the Management Studio I get the following message: The permissions granted to user 'servername\username' are insufficient for performing this operation. (rsAccessDenied) (Report Services SOAP Proxy Source) The permissions granted to user 'Servername\username' ar ...Show All
.NET Development Moving a Program
I have written a huge program in C#. The program connects to a database using a connection string. I was writing the program on my own personal machine and then when it was time to deploy it to the client, I changed the line of code that contains the name of my server and database and replaced it with the clients server and database. The program as many of you may have guessed didn't work. I do realize that i would have to redo all the work to modify the links from the server I have on my machine to the other server. Is there a way to do this without having to duplicate the work and redo everything please help Also, I was wondering if it was possible to do the link to a SQL Server dynamically. Meaning allow the user to pick a SQL server ...Show All
SQL Server Access/Server
How do you change the connection string of a DataSet We have been using MSAccess for our database, but have recently upgraded to SQLServer Express. I was able to successfully upsize the Access database and now all information resides on the server. In my VisualBasic program, the dataset itself has around 200 queries total spread out on multiple table adapters. The problem now is that none of these queries work because the dataset is bound to the Access table. I have changed connection string through code and am able to display the information, but am unable to interact with it until i get the dataset connection changed. I would rather just change the connection of the dataset somehow rather than build a new dataset, reconnect all form ...Show All
.NET Development Email Reports
How do I go about emailing Access reports, via Outlook Please stick to one topic for this discussion......(in the other thread you have replied to) yes, COM interop and different than directly invoking the default email client. As they say, there is always more than 1 solution to a problem in most cases ...Show All
Software Development for Windows Vista Cannot uninstall WinFX Beta2 (April) error 1603
Greetings. I have problem uninstalling the WinFX 3.0 Beta2. This is the latest beta before the current (June CTP) so I think it is Beta2 April CTP. I try to uninstall from Control Panel, and get this error: [06/26/06,09:50:58] Windows Communication Foundation Beta 2: [2] Error: Installation failed for component Windows Communication Foundation Beta 2. MSI returned error code 1603 [06/26/06,09:51:22] WapUI: [2] DepCheck indicates Windows Communication Foundation Beta 2 is not installed. [06/26/06,09:51:22] WapUI: [2] DepCheck indicates WinFX Runtime Components 3.0 - Beta 2 was not attempted to be installed. Ok, so it seems that I didn't have WCF installed , therefore I cannot uninstall WinFX So, I try to fnid the WCF Beta2 ...Show All
Windows Forms How to make windows wait for the cancel command when catching the windows shutdown event
Hi I am writing a small application that sits in the system tray and displays a message to the screen when a user tries to shutdown the system. The message will give them a warning about the dangers of shutting off their server and ask them if they want to continue. The code below seems to work if the user is quick enough. ie when the user hits shutdown the message appears, if the user then clicks 'No' the system will stop the shutdown. If they click 'Yes' it will continue with the shutdown. The one snag with this code is that if you take your time reading the message, windows brings up a window saying that the application is waiting to be closed and do you want to end it now. the problem here is that the ...Show All
SharePoint Products and Technologies RSSAggregator and RSSViewer problems
On our default MOSS 2007 sites I have an out-of-the-box RSSAggregator connected to a text filter. The RSSAggregator fails with a "empty uri error". Here's the log entry: RssWebPart: Exception handed to HandleRuntimeException.HandleException System.UriFormatException: Invalid URI: The URI is empty. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.Net.WebRequest.Create(String requestUriString) at Microsoft.SharePoint.WebControls.XmlUrlDataSource.FetchData(String requestUrl) at Microsoft.SharePoint.WebControls.BaseXmlDataSource.Execute(String request) at Microsoft.Shar ...Show All
Visual Studio Express Editions Need help please
Hi im new here and in need of some help. i had downloaded Visual Basic 2005 Express edition, and used it for a couple of months, i need it for a college unit i was compleating. but its been ages since i use dit again. now it asks me for a registration key!!!! how and where do i get this registration key i have checked all my e-mail and have recieved nothing, and now im stuck, i have no idea on what to do, because i now want to remove the program from my computer because its taking up 588mb and i dont even use VB anymore. but it wont remove, could this be because of the registration key you see VB does not even open, as soon as i try and open it a message box appears asking for the registration ...Show All
Visual Studio 2008 (Pre-release) Healthcare demo like 3D rotating user interface
Has anyone got any pointers or sample code on how to start creating a Healthcare demo like 3D rotating user interface and flip pages. thanks for any help I haven’t downloaded the example, but this seems to demonstrate something similar: http://blogs.msdn.com/mgrayson/archive/2006/06/01/612728.aspx Note that the trick is that the 3d is only a brush with a user interface painted on it. Best regards, Thomas Andersen ...Show All
Visual Studio Express Editions Converting a ListBox to a TextBox
I believe this is probably pretty simple.... I am creating a program to create a text file. The program is very simple. Upon load, you choose an active directory. The program then searches the active directory for a file type (in my case *.wma files) and returns the foundFiles into a ListBox (ListBox1). I have all of that figured out and working nicely. I believe what I need to do now is copy the contents of the ListBox into a TextBox so that I can export (even copy and paste would be nice, which I can't do with a ListBox) the files into a Text File. If I can just get the contents of the ListBox into a TextBox, I should be fine. How do I do that Why you ask I am archiving my music library onto CD and I want to be able to put the b ...Show All
Visual C# Invalid length for a Base-64 char array
Hi... I have sample code below Code for encryption and saving to database //empName until empAddress is a string variable //txtName until txtAddress is a Textfield empName = txtName.Text; empPhone = txtPhone.Text; empSalary = txtSalary.Text; empAddress = txtAddress.Text; UTF32Encoding ue = new UTF32Encoding (); CspParameters cs = new CspParameters (); cs.KeyContainerName = "The Fox" ; RSACryptoServiceProvider rsCrypto = new RSACryptoServiceProvider (cs); byte [] bEmpName = ue.GetBytes(empName.Trim()); byte [] bEmpAddress = ue.GetBytes(empAddress.Trim()); byte [] bEmpPhone = ue.GetBytes(empPhone.Trim()); byte [] bEmpSalary = ue.GetBytes(empSalary.Trim()); byte [] cry ...Show All
