Basant Kumar's Q&A profile
.NET Development Erorr in using an object
Hello. I have a question for you. I created a COM object. Before I compiled it on my computer, I checked the option "Register for COM interop" to be "True". After the compilation I register the dll file using "regasm MyDll.dll" And now when I use it as a COM object in my computer, it works fine. But on the server it's not the same. I uploaded the dll and tlb files to the server. Then I executed the command "regasm MyDll.dll". Then I tried to use the object I got the error "error '80070002' ". It means that the file not found. I tried to copy the dll and tlb files to c:\windows\system32 and also to c:\windows , and it didn't solve the problem ...Show All
Smart Device Development How to update dialog title in mobile 5.0
Hi! all, We want to dynamical change dialog title in mobile 5.0. We use InvalidateRect() or UpdateWindows(), It seems doesn't work. Does anyone know how to dynamic change title. Please kindly help us. Thanks. Actually, we think the title has been update, but cannot be shown before we open other dialog. So we think our problem is cannot show the new dialog title immedialtly after we change data, not the dialog title cannot be changed. ...Show All
Visual FoxPro Working with field General!
Hi, all! Help me to update field type General: append object, edit, open,... in VFP from program control with bottom command. (use line command MODIFY GENERAL <field gen> don't open object) Thank! There is a simple solution to deal with General fields in VFP: Don't use them . General fields have lots of problems, mainly they grow in size to the point where they can easily go over the 2Gb file limit. They are unwieldy and should be avoided. Instead: - Use BLOB fields (VFP9) or - Use a text field to keep the path+filename and keep the original file on disk You'll be glad you ...Show All
Visual Studio 2008 (Pre-release) Getting the Avalon Viewer Sample up and running
Hey all, My first post here, happy to see im not the only one obsessed with gettin stuck into a bit of WPF! Apologies in advance if this problem has been posted already, I cant seem to find a thread relating to it.Last night I spent hours trying to get viewer sample up and running on my machine. Im running XP SP2 and im using Visual Studio 2005 Professional Edition... I've had no previous betas relating to Avalon installed on this machine. So far I've downloaded and installed: WinFX Runtime Components - BETA 2 Windows SDK (from this i've only installed from Developer Tools: "FxCop", "Windows Powershell", " ...Show All
Windows Forms If you can answer this Overrides Question... you're brilliant and probably way underpaid
I have a treeview control on a form. The TreeView control automatically as part of the .NET framework contains and uses a TreeNodeCollection, which of course you gain access to using objTreeView.Nodes I am able to override the TreeView control without breaking the tinyest of a sweat. Public Class MyOwnTreeView Inherits System.Windows.Forms.TreeView ... End Class Well here's the EEEnormously HUUUUUGE dilemma where MASSIVE brain power would be required to solve... Now that I have inherited the treeview control and overridden various methods/properties in it, I also want to override the TreeNodeCollection that the ...Show All
Software Development for Windows Vista save xoml file without build...
I have a workflow with two custom activities from an activities library. I run this workflow from another console app. From what i understood, if i change the order of the activities on th xoml file and save it, the change should take place without building. anyhow, it's not working for me. (I have code activity in the custom activities which print me the activity name so i can see if there is a change in the order. Any suggestions Hi Amit, Since you are using activities (Code Activity) that need code beside (compiled code) you need to do the following to get this thing working 1) Create your own type with derives ...Show All
Visual Studio Express Editions 'System.EventArgs' is a 'type' but is used like a 'variable'
Whats wrong with my code below Can you correct it private void txtusername_TextChanged( object sender, EventArgs e) { if (EventArgs (e) == Keys .Enter) this .txtpassword.Focus(); } } Try the KeyPressed Event and it will work fine. private void txtusername_KeyPress( object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == ( char )Keys.Enter) { Console.Write("a"); } } Let me know if this is helpful. ...Show All
SQL Server Package Execution with SQL Server Agent or DTEXEC
Hello, I want execute package with SQL Server Agent. I create a job and I try all the solutions : my job doesn't want to work. I success to launch the package but the execution failed. I try the same job launching from the server : it doesn't work either. So, I copy the command line (/FILE, /DTS or /SQL) and with DTEXEC utility it works when this command is executed on the server (on a client computer, the problem "the product level is insufficient" appears). Why is it working with this utility and not with a job I try to change every secured option (credential --> proxy --> Run as ; change the owner of ...Show All
Visual Basic how to sert scrollbars in picturebox in vb?
Hi, how to set scroll bors(HScrollBar asnd VScrollBar) in picture box in vb and one more query is Please help me with code(sample example) as soon as possible. with regards Chinna I have tried this in VB 2008 and I cannot get it to work. I have a picturebox on a panel. The Panel.AutoScroll is True. The PictureBox is Dock to Fill. Increasing the image size does not produce scroll bars. The Panel is anchored top left only. Panel Right to Left is not enabled and AutoSize is False. What could be wrong Thanks in advance for any help. ...Show All
SQL Server one stored proc for multiple datasets
hi all, i have a report which uses a few table layout. data for each table layout come from different datasets. table1 - dataset1 table2 - dataset2... for some reasons, i need to use stored proc. how can i put all the queries into 1 stored proc so that table1 will get data from dataset1 and so on please help. thanks! Hi, I don’t know if that works in 2005 now, but in 2000 only the first resultset was returned and was accessible. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Webservice: "The ASP.NET process identity does not have read permissions to the global assembly cache."
I'm uncertain what the best forum is for this - I also posted this in the ASP forum. I am developing a distributed application with a client-side java calling a webservice serving a static binary database. The application works well with the VS2005 Development server on XP Pro SP2. However when I publish it to an IIS v5 environment, it fails with these errors. 3.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly 2.) Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80131902 1.) Failed to initialize the AppDoma ...Show All
Visual Basic inheritance template missing in vb.net 2005 express
I'm trying to experiment with form inheritance and created a base form with a couple of buttons. I save and build this base form as a dll. Then I try to add another form which inherits the base form, but the project menu has no items to allow me to add an inherited form. I've also tried adding a reference to the project first, but it still doesn't work. What is wrong Actually, rather than add a class I simply added a windows form and changed the boiler plate code "inherits" statement and everything worked. I've been working with VB.NET 2003 and wasn't cognizant of the separate ...Show All
Windows Forms How can I create a function to return a dataset?
Greetings! How can I create a public function that returns a dataset So far this is what I have: ----------------------------------------------------------------- Public Function RetrieveDataSet(ByVal strSQL As String, ByVal strTableName As String) As DataTable Try Dim objConn As New SqlConnection(ConnectionString) Dim sdaProductData As DataSet Dim sdaProduct As New SqlDataAdapter(strSQL, objConn) sda ...Show All
SQL Server Will package work on different CTP version?
Hi There I have created a package in integration services using the June CTP (latest one), i was asked to deploy it on a sql server 2005 instance. On further investigation i realised that the 2005 installation was from the first CTP prior to the one i used to create the package. In configuration manager there is no SSIS it is called DTS server. My question is will my package work 100% if i deploy it to the earlier CTP version of sql server Thanx I don’t think anyone can guarantee there will be no problems going forward, but certainly I am not worrying about it for the reasons outlined above. ...Show All
SQL Server Putting Multiple Field data in a report table cell
I'm using report designer and Visual Studio .net 2003. I have a table in the report and would like to put multiple field values in a single cell. Something along the lines of this in the cell: =Fields!Phone.Value, Fields!.Fax.Value. I don't know how to seperate the values to get them to work in the same table cell. I've tried commas, semi colons, spaces, parens. How would I do this I couldn't use IsNull because it says it is not decleared. I can use IIF, so the correct code is =Fields!Phone.Value & IIF(Fields!Fax.Value=nothing,"",",") & Fields!F ...Show All
