YellowShell's Q&A profile
SQL Server Sql 2000 setup and configuration
I am in charge of redoing a SQL 2000 box and was wondering what would be the best setup configuration Should it be setup like an Exchange server, where the log files are on one drive the database files another, and the OS another I have looked for some kind of documentation thought I had found one but can't find it again. Thanks in advance for your help. In my experience, you are best to keep the database on the same disk (as well as logs). The reason is for performance, reliability and stability. if you choose to store the database on a network drive - performance and reliability will be a factor which will have an impact. I hope it helps/gives you a starting point :-) ...Show All
Windows Forms Can I unsign a ClickOnce manifest
Without breaking the projects and having to reinstall the app. David, My certificate (VS test certificate) will expire soon and I am too looking to avoid uninstalling and reinstalling the application. When I update an application I simply replace a new *.exe for the old one. Will this cause the application to not run and do I have to create a new test certificate and re-install the whole application Will the application stop running after the certificate expires even if I don't do an update Thanks, Jerry ...Show All
Visual C++ CEdit Pagedown scroll problem
I've got a CEdit that is displaying a string of data that is going off the page. I do not want the edit to scroll when I press the page down button. I just want the CEdit to display my text and chop off the bottom of the text. Do I need to write my own CEdit I am handling VK_NEXT. The problem is that the CEdit is scrolling the window down to see the rest of the data in the window. I don't want this behaviour. I'd rather not have to parse the string before outputing the text. I'd like this application to run as fast as possible. I'm porting from a mac to a pc, so I'd like the pc to out perform the mac!!!! OOL CBrowseMissionDlg::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN) ...Show All
Visual Studio Express Editions Help! What Is An Interface?
I have been thinking about this for 2 days now..and still cant find any satisfactory answers. Anyways..... I know that an interface contains only the Signature/Defination of a Method but not its Implementation. eg. Interface IFace { Void someMethod(); } class SomeClass : IFace { void method() { //Method Defination } So Is this right What I could understand from all the Books that I have read is that By using Interface we have to Implement the Method. but this Code works too. class Program { static void Main( string [] args) { Hashtable ht= new Hashtable (); IDictionaryEnumerator Ide = ht.GetEnumerator(); while (Ide.MoveNext()) { //Some Method } } ...Show All
Visual Studio 2008 (Pre-release) FindResource from generic.xaml returns null, how to load resource from generic.xaml
I have custom control for which I have defined default style in generic.xaml. That works great and without any problems. I have however another style (x:Key is set to string name) defined in generic.xaml for the same control that I would like to assign to the control from code inside of the same control. FindResource(string name) is returning null. How can I load the resource from generic.xaml Like any xaml resource dictionary: ResourceDictionary resourceDictionary = new ResourceDictionary (); resourceDictionary.Source = new Uri ( @";component/themes/generic.xaml" , UriKind .Relative); Then you simply access your styles with their key using an indexer. resourceDictionary[myKey] ...Show All
Visual Studio Express Editions Browser Button
i need the Code For A Broweser button to browse files on someones computer (Mostly Music Files) and play the files in a Windows Media player on my application That worked but i need it to open in my Windows media which is located on my form. If i could get a code like that that would open on mine (which is called GameIdeaMediaPlayer) that would be great thanks ...Show All
Visual C# decrement and use in one go
I'm cutting a char out of a string so I have... str=str.Substring(0,x)+str.Substring(x+1,y-x-1); x--; y--; I thought I could combine these and decrement the second x and then use it and decrement the y after using it so I'd use... str=str.Substring(0,x)+str.Substring(x+1,y-----x); Or is this one of the C++ ideas that has not been carried into C# because it can be so hard to debug Yes that works in C# also with same logic, just with minor IDE change. IDE will argue if your statement is the one you wrote but on this one probably no: str = str.Substring(0, x) + str.Substring(x + 1, y-- - --x); Which means just split the statement with space. ...Show All
Visual Studio 2008 (Pre-release) IErrorHandler and FaultException<T>
I have a service using an IErrorHandler from which I'd like to return typed FaultExceptions. The ProvideFault implementation does something similar to the following: FaultException<GreetingFault> fe = new FaultException<GreetingFault>(new GreetingFault(error.Message)); MessageFault fault = fe.CreateMessageFault(); msg = Message.CreateMessage(version, fault, " http://microsoft.wcf.documentation/ISampleService/SampleMethodGreetingFaultFault "); The invoking operation contract is decorated with the fault contract attribute: [FaultContract(typeof(GreetingFault))] [OperationContract] void MyMethod(); The client application always receives an untyped FaultException, however, and not the FaultException ...Show All
Visual C# are there module files in Csharp projetcs like we have in VB projects
Thank you The closest equivalent is a static class (a class with only static members). You'll have to qualify the member calls with the class name (which you don't have to do with a VB module), but that's the only real practical difference. e.g., internal static class PseudoModule { public static void SomeMethod() { } etc. } David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Clear VB: Cleans up VB.NET code C# Code Metrics: Quick metrics for C# ...Show All
Visual Basic Why is this method invisible to Visual Basic
Hi, In a class written in C# I have the following method: public abstract void OnExit(ref object state, object instance, object[] arguments, Type[] genericTypeArguments, Type[] genericMethodArguments, TypedReference returnValue, Exception exception); I want to inherit this class in a VB project and to override this method: Public Overrides Sub OnExit(ByRef state As Object, ByVal instance As Object, ByVal parameters() As Object, ByVal genericTypeArguments() As Type, ByVal genericMethodArguments() As Type, ByVal returnValue As TypedReference, ByVal exception As Exception) However, the compiler complains and writes: error BC30284: sub 'OnExit' cannot be declared 'Overrides' because it does not override a sub in a base c ...Show All
SQL Server T-SQL Code help
Hi, When I execute the following procedure, SQL Server creates an error called 'must declare @table variable'. So I did not overcome this error. Would you please help me CREATE PROCEDURE erase @column nvarchar(25), @erasable nvarchar (25), @table nvarchar(25) AS delete from @table where @column=@erasable Hi again, I learned the answer. When we use exec statement for Strings, the batch in the String is also compiled and executed but this is only valid for Strings, is not it ...Show All
.NET Development Load relation to typed dataset from database
Hi, I create a typed dataset which has 2 tables Order and OrderDetail, I also build relation between Order and OrderDetail as nest which means one order row include multiple orderdetail rows. But when I load data from database to this typed dataset, it looks like Fill() method cannot load data like what I define in typed dataset. When I drill down order row, it doesn't include orderdetail rows. I list typed dataset xsd and the code I load from database. < xml version="1.0" encoding="utf-8" > <xs:schema id="TestDS" targetNamespace=" http://tempuri.org/TestDS.xsd " elementFormDefault="qualified" attributeFormDefault="qualified" xmlns=" http://tempuri.org/TestDS.x ...Show All
.NET Development .net Framework V1.1, sp1, and V2.0
I'm not sure if this is the right thread for this but my question is simple. Do I need to intall .net framework v1.1, sp1 for v1.1, and then v2.0, or can I get buy with just installing v2.0. Something to think about concerning .Net Compatibility For .Net versions, side-by-side and backwards compatiblity is assured. That rule may be trumped if there is a security issue, then it will be fixed in a newer version But since only you know how your system will be run...check out this http://msdn.microsoft.com/msdnmag/issues/06/03/CLRInsideOut/ http://msdn.microsoft.com/msdnmag/issues/06/03/CLRInsideOut/ article on compatibility of .Net versions before hacking away. ...Show All
Visual Studio Express Editions Change image in a Picture box with a combo
Argh! This sounds so easy! Where am I going wrong! ! I have a combo box with five options. When you select an option, say "Company One", how do I get it to change the image in a Picture box I.e. If cboDivision.Text = "Company One" Then Me.picLogo.Image = Image.FromFile("C:\FSSig\gfx\FG.gif") If you follow me There are four images (two of the companies share a logo). All I want is that when you select a company on the Form in the combo cboDivision , the logo in Picturebox picLogo changes. Can anyone help I'd store the images in an imagelist control. In the combox box when there is selectedindexchanged event, I'd get the selected index and Picturebox1.image = imagelist1.images(index) ...Show All
SQL Server Window Title in RS 2005
Hi, am calling MSSRS Reports from an asp.net application. the Reports are opened in a new browser window, In MSSSRS 2000, the new windows opened have the window Title equal to the report name. but in MSSSRS 2005 the window title justs shows "Report Viewer" as the window title for all the report.s Can anyone gimme a quick solution, so that the report name appears in the window title when i call the reports in MSSSRS 2005. Quick solution will be appreciated. Thanks. Hi thanks Kaisa, the solution works perfectly, but then i will have to change the Report.aspx file on the client(customer) side, i would appreciate if there is any other solution that could be sent with the report (rdl) file ...Show All
