crash33's Q&A profile
Software Development for Windows Vista Why I got “HTTP/1.1 500 Internal Server Error” after install CMS server part?
After install MCMS 2002 Developer Edition with SP1a, I got “HTTP/1.1 500 Internal Server Error”, when I was trying to create a .net web project on visual studio 2003. I could create .NET web project very well before install MCMS. Can anyone help me to solve this problem My working environment is: Windows 2003 Standard Edition wt. service pack 1a IIS6 Visual Studio 2003 Developer Edition MCMS 2002 Enterprise Edition with SP1a Thanks, ...Show All
SQL Server Hide database structure from users and competitors
Hi, Is there any way to hide the database structure in SQL Server 2000, diagrams etc from my customers and potential competitors Regards Yes, this problem was discussed on this forum before. See, for example: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=52094&SiteID=1 . Thanks Laurentiu ...Show All
Visual Basic Exceptioon error when trying to set ComboBox.SelectedIndex
Hello All, First, just so you know, I am not a real programmer and have never programmed in visual anything before and am playing with VB 2005 Express Edition. In the Sub below I am simply trying to change PtComboBox.SelectedIndex when the RunComboBox selection is changed, but am getting the exception error shown in the comments in the sub. In the Form1_Load event handler I have this line. PtComboBox.SelectedIndex = My .Settings.PreTrig and it seems to work fine. I can change the value of My.settings.PreTrig and the box is set properly. There are 4 items in PtComboBox and there are only 2 items in RunComboBox. I sure hope someone can show me what I'm missing here because this makes no sense. Private Sub RunC ...Show All
Visual Studio Express Editions save as Excel file how?
hi there i have a problem regaring to my database and MS excel... how can i save my items which you can see in datagrid into excel file I dont believe there is any default method to export the data from a datagridview control into excel. You would need to write your own process to achieve that. This would work if Excel was installed on the same machine as your application. A Simple example of writing Excel data from Vb.net. This is simply writing some values and looping using the section marked in bold. You of course will be selecting the values from either you datagridview by iterating through the rows and columns. Something like the following should work for you in writing the datagridview contents to a excel worksheet. ...Show All
Windows Forms Cannot add record in VB 2005 Express Edition
I am just getting started with VB 2005 and built a data application following the example in the video "Absolute Beginners video" and have never been able to add or change a record using the update method. I even downloaded the project and still could not add or modify a record. Is there a reference I need to set or possibly an update I need I have Windows xp home SP2 Look in the solution explorer at the databases properties. Make sure its Copy to output property is set to only if newer. Sometimes you are updating the database but when you start the program the old version of the database is copied over the newer one. http://www.onteorasoftware.com/blog.aspx BlogID=61 ...Show All
Visual Basic LinkLabel Issue
I have a LinkLabel that dynamically adds multiple links to one LinkLabel. Getting the links to have different effects on where you click works great but when then LinkLabel extends out of the bounds of the form and a scrollbar appears (because I have AutoScroll set to True), when I click on the LinkLabel it centers it in the window and then I have to click again or scroll back up to the top/bottom to get the right link. So basically when the LinkLabel gets activated it centers it in the form. Is there a way to stop the LinkLabel from centering itself when activated in the form Thanks for the help! I'm not sure you can prevent the control scrolling into view, but you can give the control fo ...Show All
Visual Basic force menu dropdown
Hello, Can someone tell me how to programaticaly (wow) force a top level menu item to drop down For example: Like when you click the standard 'File' menu and you get the lower menu items to drop down. I need to be able to do that by code. Thanks ahead, Aaron Oh I see, the solution I gave was for VB 2005. If you're using VB6 you'll either have to use a Windows API call, or use SendKeys to send Alt+<accelerator key letter> to the menu to drop it down. ...Show All
Visual Studio Passing parameters to Templates when programmatically generating code
Hi, I am generating code within a GAT project using T4 and a DSL. Since I need a fine level of control, I have implemented an Action that takes care of the code generation programmatically. I am wondering how I can pass a parameter to a T4 template in this case Here is a snippet of my Action so you can get an idea of how I'm achieving this so far. Thanks, Scott. public override void Execute() { MyModeller.ModelRoot root; string template; string templateOutput; string dslLocation; // // Get a reference to the T4 Templating engine // ITextTemplating templateGen = (ITextTemplating) Package.GetGlobalService( typeof (STextTemplating)); dslLocation = <dsl_location> ...Show All
Windows Forms Getting Text Extents
I have an array of key/value pairs that I want to show to the user in a RichTextBox Control with proper formatting. Specifically, the keys are in bold, while values are in regular font. Also, the length of different keys varies, so I use Tabs to properly indent values in a column. I have written a procedure that calculates the number of tabs to be inserted after a key depending upon its length. I noticed that the number of tabs depend on the font. Isn't there a function available that returns the horizontal extent of a string based on its font (like there is CDC:GetTextExtent() in MFC) MeasureString will give you the height and width of a string in a specified font. http://msdn2.microsoft.com/en-us/libr ...Show All
Windows Forms How to: Webbrowser NewWindow and Navigating equivalent to axWebbrowser
At first, I enjoyed the new webbrowser control but then I noticed that the args provided by the events NewWindow3 and BeforeNavigate of the axWebBrowser had not been implemented in the new control. Arg. Good news, the guys from Microsoft gave us the a workaround recently in C# and said they will publish a sample soon on MSDN. In the mean time, here is some VB.net code inspired from Microsoft's C# that will give you 2 new events and the args people like me were crying for. NavigatingExtended gives you the following args: - Url as string - Frame as string - Headers as string - Postdata as string - PostdataByte () as byte - Cancel as boolean (to cancel navigation) NewWindowExtended gives you the following args: - Url as s ...Show All
Visual Studio 2008 (Pre-release) LINQ to SQL projection bugs
If you project into a custom type that happens to have an indexer, LINQ to SQL throws a TargetInvocationException. For example, take a simple Customer class as follows: class Customer { public string Name; } You can project into it without error as follows: var q = from c in dataContext.Contacts select new Customer() { c.Name }; But if you now add an indexer to Customer (or its base class, as it happens), eg: class Customer { public string Name; public int this[int index] { get { return 1; } } } then the identical query throws a TargetInvocationException. The exception is thrown from UnmappedDataMember.CreateAccessor, although I think the bug is actually in UnmappedType.InitDataMembers. Where it enumerates over properties, ...Show All
SQL Server Count Children
Hi I have a time dimension, that has an hierarchy with three levels, Year, Half Year and Month. Is it possible to count how many days there are in each level Regards If you return a "day" member, then you will have to create the member on your time hierarchy. Try the following: MEMBER [Tiempo].[Fecha].[First Day] AS Head({Existing [Tiempo].[Fecha]. DefaultMember.Children },1)(0) MEMBER [Tiempo].[Fecha].[Last Day] AS Tail({Existing [Tiempo].[Fecha]. DefaultMember.Children },1)(0) HTH, Steve ...Show All
Windows Forms Can anyone tell me what logic can i apply in the following situation? (Parsing)
In file there is a lots of row like this..... "REM16703","PSO","AR","xxxxxxxxx","1417510002","304851","Buy","2000",".111","314","00232223" "REM16703","PTC","462","xxxxxxxxx","1415080002","304451","Buy","10000",".0158","42.7","00231826" "REM16704","MCB","844","xxxxxxxxx","1439270002","306066","Sell","600",".0703","192.25","00233332" "REM16704","MCB","844","xxxxxxxxx","1 ...Show All
Visual Studio Team System Limit to amount of characters that FxCopCmd will take as arguments?
Hi, I'm running FxCop 1.35 from VS2003, and if my argument list gets too long, FxCopCmd throws an error. In the output window I can see that after a certain amount of characters, my argument line gets chopped, causing the error. As soon as I shorten the argument line (by moving my rules to a different location, like d:\rules) everything works fine. Not sure if this is a VS problem or an FxCopCmd problem. Anyone else experienced anything like this Incidentally, I could shorten my arguments if I could figure out some way to combine something like $(ProjectDir) and "\bin\Debug". Anyone know the syntax for this Much Thanks, Henri This is likely a limitation of Visual Studio. FxCopCmd ...Show All
Community Chat Why the ASP.NET Pages are slow ???
What's the reason of ASP.NET pages being slow, as compared to page when developed in PHP depending on the exact nature of your task, and your choice of implementation, PHP OR ASP.NET can be faster. as has been mentioned, you need to employ appropriate better/best practices in either environment in order to achieve the best results. I think a search is a bad example, as this typically relies on the DBMS behind the search as much as, or more than, the coding language employed. If you're in an enterprise environment, ASP.NET has the advantage -- it can make use of remoting services, which I believe has no analog in PHP. If you're trying to parse a string, I believe PHP is faster than C#, even with recent string handling improvements in ...Show All
