Basquiat's Q&A profile
Visual Studio Express Editions programmitically turning a monitor on/off
I've recently learned through these forums about something called P/Invoke which I deduce is basically using available Window's DLL's in order to do some more advanced stuff which isn't built right into Visual Basic. At the moment, I'm hoping to be able to turn off my computer's monitor when a timer control expires, but I'm thinking this is one of those times when I will need to use P/Invoke, so I guess my question is: Is there a resource available that will let you know the different functionalities that all the Windows DLL's provide -thanks :) Pinvoke is referring to calling the unmanaged API functions which exist outside of the Managed Code World or the .NET framework. Using unmanaged code has so ...Show All
Visual FoxPro foxpro for windows
Hai, I hope i am not troubling you all. i have installed foxpro for windows 2.6a on win 2000 server. but when i am trying to run that i get a error divide by zero or over flow error. how can i run foxpro for windows. please help me. There's a patch for this at http://support.microsoft.com/kb/240982 ...Show All
Visual Studio Add Reference Dialog does not show all assemblies of the GAC
Hi! I have installed .NET Framework 3.0 Redistributable Package. The framework installed successfully and I am able to see the assemblies (e.g. PresentationCore) in the GAC. Visual Studio 2005 Professional does not show the new installed assemblies in the "Add Reference" dialog. What do I have to do that I am able to use the new assemblies thx, Juergen P.S. I thought the "Add Reference" dialog should show all assemblies of the GAC. juergen.b wrote: P.S. I thought the "Add Reference" dialog should show all assemblies of the GAC. A common misconception. See http://support.microsoft.com/kb/306149 ...Show All
SQL Server Auto URL Redirect
Hi,Does anyone know how to redirect the report to another URL automatically conditionally based on some checking, without user interaction with the report I am trying to perform validity checking on user's input value and redirect user to a centralise error page if the input value is invalid.Thanks,J Lim You can't do this using the standard parameter toolbar. You will need to code your own textbox for accepting user input for the parameter value and pass that to the report if is valid and redirect to the error page if not valid. ...Show All
.NET Development The first argument of DirectoryEntry.Invoke()
Hi every body.... this link shows the list of functions that can we use as the first argument of the directoryEntry.Invoke methode. http://msdn.microsoft.com/library/default.asp url=/library/en-us/adsi/adsi/iadsuser.asp My question is : "when i use some of that methodes such as "SetPassword" or "ChangePassword" they work correctly but some of them such as "put_AccountDisabled"and "get_AccountDisabled" throw an exeption while debugging what's the reason and how can i use such methodes thanks...... bye Sorry but I was in error. You should use the Properties property to get access to the entry properties. InvokeGet and I ...Show All
Visual Studio Team System CTP5 - Refacoring schema
Hi Refactoring a schema doesn't work as one would expect or wish. I tried "Refactor/Rename" on a schema object in schema view. All it did was change the script for creation of the schema itself. All dependant objects were left untouched. Furthermore I would expect it to do a rename of the file that contains the schema creation details. It did not. The file was just checked out and the content changed. The schema object I tried to refactor was not renamed in schema view either, even after a refresh of the view. I guess it was named after the containing file The old schema is still in the design database. A refresh in the solution explorer (refreshes the design-DB) removed the old schema and left me with a lot of errors. Not so surp ...Show All
Visual Studio Express Editions Refresh Calculated TextBoxes on a Form?
I'm not sure if my Subject line properly describes my problem, but here it goes. I have a form with several textboxes that are used to enter data. One of the textboxes is bound to a table field that performs a calculation based on the data entered to other textboxes. For example: Textbox1 - The user enters the value '1' Textbox2 - The user enters the value '2' Textbox3 has the formula: Textbox1 + Textbox2 On my form, when the user enters '1' in the first textbox, then '2' in the second textbox, nothing appears in the third textbox. What code can I use so that when the user either enters data in the second textbox, or gives focus to the third textbox, or whatever, that runs the calculation and gives the result, in this case, '3' ...Show All
SQL Server Peer-to-Peer Transactional Replication and deadlock
Hi all, I have implemented Peer-to-Peer Transactional Replication only for two servers.Everything works fine but in highlevel of concurrency some updates are rolled back due to deadelocks(Never comes without replication).Is there any type of document which can guide me to avoid deadlocks (under Peer-to-Peer Transactional Replication env). Replication in general does nothing more than inserts, updates and deletes. Updates and deletes are qualified with primary key lookup, this is as simple as it can get. Without knowing exactly what your SELECT query looks like, or what the exact plan looks like, I can guess that you would get deadlocks whether it was replication or some other application doing the ins/upd/del. If you ...Show All
Visual Studio Team System Move TFS project from one server to another.
We have a situation where we want two TFS servers at our site: one for internal developers and the other for a remote outsourcing vendor. (They will access it by means of a VPN-connected TFS proxy at their own site). This way we don't risk exposing our internal source code to an external party. If we need to move a code project from one server to the other, how do we do it A restore based move would wipe out the content of the target server (yikes!). If we do a straight file copy and then check in the files on the other server, we would lose all of the history. Is there a solution As far as I know and read, it is not possible to move TFS projects between servers in this version. I believe that is under con ...Show All
SQL Server sql job
I need to create a job that running once per sec (around the clock)...checking/update status tables. Can I do this inside sql 2000 server other than using external means(e.g. NT Service) Thanks all! Sorry I checked but we have only minutes and hours in the @freq_subday_type 0X1(Time specified) 0X4(Minutes) 0X8(Hours) I am also thinking how it can be done.Let me know if u get anything. ...Show All
Windows Forms ConnectionString problem
hi, i have a litle problem with connectinstring. i use an access database and i have manualy added a table to my database. when i try to refrsh my dataset i receve next msg: " Unable to find connection 'db1ConnectionString (MySettings) 1 ' for object 'MySettings'. The connection string could not be found in application settings, or the data provider associated with the connection string could not be loaded. " and stop here. i cant refresh my data set i dont know from where come " 1 " where should i look for it can anyone help me pls I have found these types of problems previously but now I have a new one. After converting to Visual Studio 2008 (an unrelated incident I think), I wanted to configure the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GMAX for XNA???
I found some special versions of GMAX at the Microsoft site like the one for FlightSim. Now I want to know if MS has plans to release a GMAX version with FBX import/export capabilities. I found some modelers that support the FBX format but none with support for bones and animation. The only free software with FBX import/export seems to be Maya Personal Learning Edition but there they speak of "import/export to MotionBuilder". ...Show All
SQL Server Detecting local Sql instances
I would like to find out what instances of sql are installed on any given machine. For instance, if a machine has SQL Server 2005, SQL Express 2005 and MSDE 2000 installed. I would like to be able to know the versions of each, and ultimately choose the one which is the best for the user to use. For example, I would like to rank the instances, 1. SQL Server 2005 2. SQL server 2000, 3. Sql express, 4. MSDE So I would basically like to default to the best choice available locally for the user. Is there any way to do this using SMO Thanks... Hi Johnny, Yes, you could: DataTable dt; dt = SmoApplication.EnumAvailableSqlServers("JohnnysServer"); for (int i = 0; i < dt.Rows.Count; i+ ...Show All
Visual Basic Anyone find a solution to documentcompleted event?
hi, It's a little emergency. I have a window form project that the window form embeded a web browser object-AxSHDocVw. When the program finish navigation the URL and show the web page in the web browser object, the program go to parse the DOM tree. I write the parsing program into the docuemtcomplete handle. Sometime the system trigger the documentcomplete handle, but the web browser was not really download complete the whole html document. It will cause the DOM tree parsing error. How can I avoid this situation And let me ensure that the navigation is really finished completely! Thanks a lot! Y. J. Sample program: Private Sub wb_DocumentComplete(ByVal sender As System.Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteE ...Show All
Visual Studio VS 2005 acting-up baaaaadddddly
I am building an .exe using VS2005 with SP1 on XP-64. First it was working fine, then the debugger starting acting up and refusing to stop at breakpoints, I was able to fix that by changing the debugger type from Auto to Native code. Then VS refused to work all together asking me to reinstall the application. Did that about 4 times to no avail, then decided to remove all needed files and download new ones, Platform SDK and .NET Framework and such, from the website and reinstall everything. Tha made the compiler work again and the Debugger did stop at the breakpoints, however it won't go into the functions where it stopped, F11, and would crash. I noticed that since it crashed at a very low address it must be crashing in one of the ...Show All
