ninam's Q&A profile
.NET Development MSHTML problems.
I wrote a program that crawls a particular webpage using mshtml.dll and interop.shdocvw.dll. It creates a web browser object and then navigates through a couple pages. It works on my computer and most other newer computers that I try it on, but on some computers it crashes near where it uses the web browser object. It crashes on a computer that is running XP, .NET 2.0, and IE 6.029. All of those specs are the same as on my dev computer (which it works on). I also include the shdocvw.dll with the program when I give it to people to try. Does anyone have any idea what is missing which is causing it to crash Copy the mshtml.dll in same location where exe resides. In your machine the dll is GAC, but not in al ...Show All
Visual Studio Express Editions How to setup the String type property for component on design mode using MulitLine.
How to setup the String type property for component on design mode using MulitLine. for exsample:the Text property for Textbox ...Show All
Visual Basic Saving Decimal Values from Text Boxes
I would like to 'save' a decimal value, entered by the user in a text box, to a field in the binary file. So I thought that's easy, just enter an statement like the following: Prod.W_Condition = CDec (Condition.Text.ToString) And that should do the trick. But apparently nothing is straight forward in Visual Basic. When entering a value such as 1234.56 in the text box, I have the value 123456 (without the decimal notation) being saved in W_Condition structure element. I tried a variety of type convertion such as declaring W_Condition as double and then using Cdbl as convertion function or using Parse.Decimal instead of CDec, but the program just seems to ignore the decimal point in the textbox (e.g Condition.Text) and I end u ...Show All
Visual Studio Team System Goal based testing for generic target machine
I just recently noticed that using goal based testing in a load tests creates a test that is not very portable. Specifically the counter that is stored in the loadtest file is the computername %proc. However the computername is specific, are there some alias/macros available without VS that could represent the local machine so that these tests are a bit more portable Dan Danaucpe ... What is Your Website Do You have Some Demos out there for the XNA "Third Person" Collision Work You have Done Sepcifically XNA GSE for 360. ...Show All
SQL Server SQL server Groups
Is it possible that i can create a SQL Server Group in sql 2005. Eg. in 2K when u right click (in Enterprise manager) on Microsoft Sql servers you can see "New Sql server Group". I am talking about this group. I have many servers in NYC and Dallas and in VA. I want to group them in the group names NYC DAL VA. is it possible. I have sql server 2005 client tools with server on sql server 2000. now i can form groups in 2000 but i cant see them grouped in 2005. i just see the servers registered in 05. i cant see them as i can in 2000. if u still have problems then i will send u the screen shot. ...Show All
Visual Studio Team System FxCop confusion
Hi, I'm a bit confused between FxCop 1.35 and and the "managed code analysis" : 1. Do I need VSTS for Software Developers for the VS code analysis to work 2. If not then how do I enable the built-in code analysis I noticed I've got the fxcop folder and rules under "C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools" - does this help me 3. Will the SuppressMessage attribute only work with VSTS for developers I can't get it to work with fxcopcmd thanks Av Hi, Thanks for the reply. 1 & 2 : Turns out I've got Team Edition for Architects installed. Looks like it installs the fxcop stuff but doesn't give me the Code Analysis tab o ...Show All
Windows Forms exception during axhost.dispose
when I create an activeX control at runtime which in fact is a .net control exposed as a com object, the hosting axhost class gets the following exception during its dispose: The object's type must be __ComObject or derived from __ComObject. Parameter name: o When the activeX control is created by other means (e.g. visual basic 6.0) the dispose works fine. The control is created by calling new AxHost(CLSID_OF_THE_CONTROL) Is the .net control missing any necessary interface implementation to work with axhost That would explain it. Make a wrapper: Project + Add Reference, COM tab, select your component. That will automatically create two wrappers for the component, one of which is an AxH ...Show All
Internet Explorer Development Reinstall IE7 in Vista
Is there a way to uninstall and reinstall IE7 from within Vista Home Premium I know I could do this with previous versions of IE in XP, but I can't seem to figure out how to do it in Vista. IE7 keeps crashing and I want to just try a reinstall of IE7 rather than do a complete reinstall of Vista! Hey Sam.. thank you very much yaar.. i had thiss problem for almost a month.. u gave a good solution to it.. ...Show All
SQL Server Cannot open database "aspnetdb.mdf" requested by the login. The login failed.
Hello Guys This is my connection string <add name ="ASPNETDBConnectionString1" connectionString ="Data Source= .\SQLEXPRESS; Integrated Security = True; DataBase = ASPNETDB.MDF; User ID = MyWindowsUserName; Password = MyWindowsPassword; User Instance = False; Connect Timeout = 30" providerName ="System.Data.SqlClient"/> I tried to research on the internet and i got a solution on changing the permissions for this database to enable user SystemName/ASPNET, but iam not able to access this ASPNETDB.MDF from SqlServer and if i go to server explorer in vs2005, i dint know where to chage the permissions. Can anyone help me on this. Thanks a lot Hello Ranga, Thanks a lot yar. ...Show All
Visual Basic How. to handle multiple pages of graphics in VS2005.
Hi, I'm working on a graphics program which permits the user to select a drawing from a table, add required dimensions and other information, save the data in Sql tables, then produce a PDF file, and/or print out the page. Usually only one page is required with each page having a max of 6 drawings, however, on occasions there may be more than six, so a number of pages would be needed. So far I have reached the point where I am satisfied with the result, if drawings are <= 6, however, I am completely at a loss as to how to handle multiple pages. At present I am using the Paint Event to allow the user to see the result prior to saving or printing. However the print out takes about 15 seconds. Using Print Page Event, I believe ...Show All
Windows Forms consuming .net 2.0 dll from .net 1.1 using VS2003
Is it possible to consume .net 2.0 dll from .net 1.1 using VS2003 .net 2.0 dll might or might not be using 2.0 specific features, please let me know if its possible in either case. Thanks, if the dlls are compiled in native C++ compiler using VS2005, even then they cant be referenced in apps built in other frameworks If a C++ app is built using VS 2001 (using native C++ compiller) for instance then will this app be able to reference C++ dlls compiled in native C++ compiler but written using VS2005 Thanks, ...Show All
.NET Development Connecting a FTP with Ethernet Cable
I want to use my computer as FTP with using IIS..But I dont know how to do this.. I can download a data from a server with using FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://www.contoso.com/test.htm"); But there is URL for my computer's FTP..And i dont want to use DNS.. I want to connect directly.. Any idea ...Show All
Software Development for Windows Vista hang up without answering
Hi !!! I'm trying to develop an application which should hang-up some calls before answering them. My PBX is a Panasonic KX-TDA100. I've tried with some test programs made with TeleTools or Atapi (that are the tecnologhies that I'm using) and none worked. I'm becomming crazy 'cause I don't really know what's the real reason why my program does not work. is it my PBX fault Is it an incompatible tapi option Thanks a lot !!! Carlos Garcia Hello dear I am sorry i cant help you for your question but if you can help and find any informations aboute CDR records for Panasonic PBX KX-TDA600 thank you ...Show All
Visual Studio Team System Values supplied by the database lost on a new post
Hello - Please forgive the lack of experience with .NET and HTTP but here is my question. I have an web application that does use Javascript and have been able to successfully get and post and bind data after a single get and then post. However, if I try to add to web test by adding more gets and posts, I seem to lose data. The web test looks something like this: Register.webtest https:///......Default.aspx (get) i.e. Login Page Extraction Rules Extract Hidden Fields https://...../Register/Default.aspx (post)...ie. Register Page Form Post Parameters txtUsername="frank" txtEmail="welcome" _VIEWSTATE = {{HIDDEN1.__VIEWSTATE}} __EVENTTARGET=cmdRegister https://.....Default.aspx (get ...Show All
SQL Server T-SQL Trigger challenge
I have a customer table that contains ID (string), Company (string) that are set to NOT Nulls However , when inserting empty string '' into the table, the NOT Nulls accept it because it is an empty string. So, I want to create a trigger to check if ID or Company contain zero length value (empty string), then raise error "Sorry please enter ID" and do not execute insert As I am new to T-SQL , I am unable to "get the paramenter out of the INSERT query passed into SQL Server from my application" Be plain: 1. In my application , I execute "Insert into customer (ID, Company) Values ('VarID','varCompay')" 2.In the SQL Express, there is a trigger that listen on Customer table for Insert action. ...Show All
