bryanedds's Q&A profile
Visual C# how to convert string to char or vice versa
Hi expert, what c# code that i can use to convert char to string or vice versa thanks in advance. Alternatively you can do: char myChar = 'X'; string myString = new string(myChar,1); or string myString = myChar.ToString() and char myChar = myString[0]; (If you convert a string to a char, you have to choose one of its characters to convert, via array indexing. Using Convert.ToChar(string) always uses the first char in the string.) ...Show All
Microsoft ISV Community Center Forums automatically saving word doc versions every 5mins
Hi - I'm new to VBA and have no idea how to go about this. I can get as far as writing a macro that creates a Version of a specific Word document on command - but I also want it to automatically do this when the document is opened and then every 5 minutes until it is closed. Thanks for any help! Hello, Use the Application.OnTime method to schedule when your code should run. Here's the example from the help, runs Macro1 in 15 seconds time. Application. OnTime When:=Now + TimeValue("00:00:15"), _ Name:="Project1.Module1.Macro1" if you want to continuely run your macro every 5 minutes you call the macro containing the OnTime from the OnTime method. I haven't explained that well ...Show All
SQL Server System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Dat
I have created a windows library control that accesses a local sql database I tried the following strings for connecting Dim connectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=TimeSheet;Trusted_Connection = true" Dim connectionString As String = "Data Source=localhost\SQLEXPRESS;Initial Catalog=TimeSheet;Integrated Security=SSPI" I am not running the webpage in a virtual directory but in C:\Inetpub\wwwroot\usercontrol and I have a simple index.html that tries to read from an sql db but throws the error System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, ...Show All
SQL Server Backup Slow Throughput
Hi Team, I have a SQL 2000 instance with 46 Databases (all databases put together will be 15 GB in size). I am running a SQL Backup using a third party software. My full backup of the SQL instance which backs up 15 GB of data finishes within 30-45 minutes. But, my differential backup of the same instance which backs up only 150 -250 MB of data takes 12 hours to backup. I found a knowledge article from MS Support site which says, differntial backup would take more time than full in few scenarios. http://support.microsoft.com/default.aspx scid=kb;en-us;196658 But the above document is for SQL 7.0. Will it be the same for SQL 2000 and 2005 too If yes, can you please tell if I can increase the speed of differential backup in my ...Show All
.NET Development Quick Start Sample MultipleSchemas
I am developing a Validation Schema for a few large applications. We want to be able to share the portions of this schema that are appropriate between applications. We decided to do this by using multiple schemas. In my research I stumbled across the quick start example in: Microsoft Visual Studio 8\SDK\v2.0\QuickStart\howto\samples\xml\MultipleSchemas\cs\MultipleSchemas This sample uses two different schema files to completely define the type book. This looks like exactly what we need however the sample doesn't work properly. For example there is an entry in books.xml that is as follows: <book genre="novel" publicationdate="1967" ISBN="0-201-63361-2"> <title>The Confidence Man</title> ...Show All
SQL Server Data Access Application Block for SQLClient
I download the DAAB CF version. However, most of them use SQLCEClient to connect to the database. Is there any DAAB that use SQLClient One workaround that I made is I replaced all SQLCEClient objects with the SQLClient objects. I only test one method "ExecuteDataset" and it works so far. However, my question is "does my workaround a good solution " Thanks, Hendra You might want to explore the new Mobile Client Software Factory. I believe it has data access blocks for both SQL CE/Mobile and SqlClient contained in the framework. http://msdn.microsoft.com/mobility/default.aspx pull=/library/en-us/dnpag2/html/mcsflp.asp Darren ...Show All
Visual Studio Express Editions Making Drawing.Color by seting RGB values
Hello, I'd like to know how to configure new System.Drawing.Color by seting RGB values. I need to make color from 3 ASCII converted chars. Following: sam = 115, 97, 109 to clolor is color.r=115 color.g=97 color.b=109 then I can set to the bitmap pixel with color made that way Now the only problem is, that r,g,b parameters are only readable :/. Is there any way to SET values of color.r, g & b You should try to get R, G and B values in a different way. All colors have those values so you can get them by doing this: txttext.Text = System.Drawing.Color.Black.R In the same whay you can get G, B values. Instead of R there must be G or B. There's also A which means Alpha, but it's no ...Show All
SQL Server Database creation from inside of Visual C#
When I create a database from inside of Visual C# Express, why can't I view it with the manager from the SQL Server Express Edition I mean, it does not appear at all. Is there any problem Check out the FAQ at the top of this forum, you will find instructions on connecting Management Studio to a User Instance. Enabling remote connections is not required, particularly since User Instances only support local connections. If you bravely read through the entire error you got, you'll see that the problem you're having is a timeout. This is a particularly bad error message that gets throwen for basically every connection problem (hey, I wasn't here when they wrote it). The important bit is usually at the end ...Show All
Visual Basic Adding an inherited form failed by Assembly Load Error
I would like to add an inherited form to my VB.NET project under a solution that contains assemblies written in various .NET languages. Whenever I confirmed to add an inherited form, an "Assembly Load Error" error dialog box popped up. The dialog box said that "Unable to load assembly 'VCS.NET.dll'. Ensure that the file is a valid .Net framework assembly.". My VB.NET project did not refer to the 'VCS.NET.dll' assembly directly or indirectly. It still prompted me such an error dialog. I am a little bit confused. Could somebody advise on this matter Jeremy "VCS.NET.dll" is my own .NET module written with C# and I am using VS2005 standard edition + VS2005 professional edition t ...Show All
Software Development for Windows Vista How to change my theme to default in vista...
Hi, before I reinstalled vista, I had a theme like this, http://www.flexbeta.net/images/vista_build_5342/7.JPG Now, it seems that my taskbar is no longer transparent, and the close, maximize, and minimize are not..."Glowing" when I roll over them. Yes, I have tried to change my theme, but the other one is not listed, all I see is Windows Classic and Windows Vista. Thank you very much --Jonny It depends on what build you are running, how much system and video memory you have, and what video card you have, and what video driver. Take a look at my reply in this thread, which also details a workaround to get Aero back: http://shellrevealed.com/forums/thread/3896.aspx . ...Show All
SQL Server Management Studion Express alongside full-blown Management Studio?
Is it possible to run both Sql Server Management Studio: Express and full blown side by side I am developing with the full blown product but would like to test Management Studio Express on the same box. Is this possible Thanks Eric Hi ! For a full and realistic test, I would put them not on the same machine, as you can’t be sure in which way the big brother will interfer with the deployed assemblies. Just deploy it on a dedicated test machine to do your tests. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms Context Menu Strip
Hey, by the way my richtextbox is set up I can not set the contextmenustrip I want to use diectly on the control. I have to use the Form1_MouseClick event. So how would I make it so that it only does somthing if the mouse left button is pressed I tryed: private void Form1_MouseClick( object sender, MouseEventArgs e) { if ( MouseButtons .Left) { } } but that does not work... Thanks :) Set the contextmenustrip directly and it didn't work this .richTextBox1.ContextMenuStrip = this .contextMenuStrip1; ...Show All
Visual Studio Team System FXCop 1.35 release notes, Readme, documenation?
Is there any documenation on FXCop 1.35 Specifically I'm working on updating an older rule to run with 1.35. I'm overriding the following check methed and having trouble switching to the new return type: public override ProblemCollection Check( Module theAssembly) does anyone know of an example that uses this method Try the following: public override ProblemCollection Check(Module module) { base .Problems.Add( new Problem([...])); return base .Problems; } ...Show All
Visual Studio 2008 (Pre-release) Sorting treeview
I am trying to sort my treeview, Following is the XAML: <DockPanel Name="dockPanelTree"> <DockPanel.Resources> <ObjectDataProvider x:Key="MyList" ObjectType="{x:Type src:NodeList}"/> <CollectionViewSource x:Key="TreeViewSource" Source="{Binding Source={StaticResource MyList}}"> <CollectionViewSource.SortDescriptions> <scm:SortDescription PropertyName="Name" /> </CollectionViewSource.SortDescriptions> </CollectionViewSource> <HierarchicalDataTemplate DataType = "{x:Type src:Node}" ItemsSource = "{Binding Path=SubNodes}"> <TextBlock Text="{Bin ...Show All
Visual Studio Tools for Office Remove Applications Distributed with Access 2003 Developer Extensions (Lost CD)
I have developed an application in access for one of my clients. I used the Access 2003 Developer Extensions to package and distribute a runtime version. He lost his install cd and now he can not uninstall the application. When he tries to go through the control panel it is asking him for the cd. I tried sending him a new cd but that did not work. Is there a clean way for him to uninstall Thanks in advance for your help. I'm afraid that this is the wrong forum for this type of question. The Visual Studio Tools for Office forum is for the discussion of issues involving custom solutions for Word and Excel created using Visual Studio. For Access questions, you will want to post your question to the Office discussion groups found ...Show All
