ackermsb's Q&A profile
Visual Studio Express Editions variables in seperate forms
I have 1 form and a console module/ thingy going on right now and I need to be able to acces the variable i save in the form in the console window. Lets say its called happy: dim happy as new string Happy = textbox1.text Then when I go over to the module thing I want to be able to acces it.... you would think it would be something logical like form1.happy = whutever Any ideas , any even if they just help....thanks average joe not recommended though. you should have a true/clean instance/reference of the parent/object in question otherwise you will face problems in the future - try a search and hopefully you will see some of the problems, such as "hmm its not retrieving that value, bu ...Show All
Software Development for Windows Vista how to do rubber banding on Vista
I need help with getting rubber band lines to work on Vista. I've tried using DrawReversibleLine which works on windows XP, but this no longer works on Vista. I'm tring to draw "preview" lines and boxes, for expanding a graph, which move as the mouse is moved. This is similar to tools used to capture an area of screen, or select a region in the paint program. Basically, as the mouse moves, the previous line needs to disappear, and a new line is drawn to the new cursor position. In older development tools this was done using XOR plotting, but this is also no longer available. I've seen a number of frustrating articles on "Why you should not write to the screen" and "how this spoils the graphics pipeline" which leads me to unders ...Show All
.NET Development ProcessStartInfo to execute vb script with certain user
I tried to use ProcessStartInfo to execute a vb script with certain user name. My Code: --------- ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = fileName; psi.UserName = userName; psi.Password = password; psi.Domain = domain; psi.UseShellExecute = true; Process.Start(psi); The Problem: ---------------- When I set UseShellExecute to true --> the error is "The Process object must have the UseShellExecute property set to false in order to start a process as a user." When I set UseShellExecute to false --> the error is "The specified executable is not a valid Win32 application." Any Help please Bishoy You need to set UseShellExecute to false, ...Show All
SQL Server How to write backup code for sql server 2000
hi Experts, any one tell me that how to write code to take back up of sql server database Refer to the following url: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=613700&SiteID=1 ...Show All
SQL Server Web part report explorer/viewer
Why is it that when i install the webparts,it cannot be seen from a certain site but visible from some others I found that the one which is visible is found in the server gallery and the other which is not visible is not in the server gallery...I thought a one time installation should make all visible Regards Alu ...Show All
Architecture Server getting intimation of disconnection while file is downloaded from client side
I have a problem, There is a file being transferred to an .Net application via HTTP protocol by a J2EE web application. Now I want to trap the client disconnection event at Server Side if Download fails from client side. I have thought some approaches but not fully satisfied with those: 1. Just open a separate thread from client that will tell the server periodically that client is alive, till file gets transferred. 2. Server should ping the client periodically, if client is available, but this would be a violation of HTTP protocol. In case 1 , I would have to make a service or exceutable on client side which i would like to attempt as the last case. I would like client to be just using webbrowser. Please comment on my ideas ...Show All
Internet Explorer Development Alternatives to IELaunchURL: use CoCreateInstance to create a WebBrowser object running in Protected Mode?
Originally posted in this thread , but got no response after 5 days. Sorry for the long-windedness, but I'm getting desperate for some answers. I'm revising an existing application for Vista-compatibility. This application makes extensive use of the IWebBrowser2 interface and IE to display web pages, primarily from the company's own site (like an about page), but it could potentially navigate anywhere. The app is written in C++ and runs at medium integrity level (medium IL is required for most of what this app does). The problem occurs when the app navigates to a URL in a zone that requires IE Protected Mode. Because my app runs at medium IL, the WebBrowser object I obtain via CoCreateInstance is in an instance of IExplore.exe runnin ...Show All
SQL Server SSIS Package Execution Failed within ASP.NET Web Application
Hello All, I have a SSIS package which run well when stand-alone. However it was failed when executed from .NET web application. It just simply return Failure. Code snip below: Dim packagekgResults As DTSExecResult ......... packagekgResults = package.Execute() Environment: Windows 2003 Shared Server, IIS 6.0 Any idea Thanks in advance! Tina Jenny_99 wrote: Same here I have an asp.net web application and a web service (both of them are created in VS 2005 - asp.net 2.0). They are located on the same web server. In both web.config files, I have set < authentication mode = " Windows " /> and < identity impersonate = " true " /> . A ...Show All
.NET Development Strong names for assemblies
Hello, I'm a new developer (in several senses of the word "new") and I am working on a large-scale internal project requiring testing of code written before I got here. I have already used the CLR profiler successfully on a production release of the product. However, the CLR Profiler is not giving me the information I really need (how long a process takes in real time); so I've written a short assembly that I've attached to certain methods in the project that writes out to an external file with a trace and other information. The problem that has arisen is, in one specific class, this assembly causes a build error, because it is not a "strongly named assembly." How exactly does one name an assembly strongly BTW. ...Show All
.NET Development Microsoft .NET Framework 2.0 Configuration (on a Win 98 box)
I am getting a security violation runing an app from the file server. I have solved the problem on a 2000 or XP box; but, I am forced to try to run this on a Windows 98 box. I have done the same setup setup except for the .NET 2.0 configuration. I can not find it. It make sense that I can not find it. There is no MMC in Windows 98. I found the MMC 1.2 download for Windows 98. I can not find how to get the MMC "Microsoft .NET Framework 2.0 Configuration" snap-in installed. One article said that, for 2.0, it is installed with the Framework SDK. I downloaded the SDK, but it will not install. Does anyone know where the 2.0 Framework Configuration MMC (Mscorcfg.msc) is hiding in Windows 98 after installing the .NET 2.0 frame ...Show All
Visual Studio Tools for Office Change format of excluded parts of a protected document
Hi, I apply protection to my Word document programmatically. To allow the user to edit only specific content I then exclude specific parts. Unfortunalty Word formats the excluded parts by opening a bracket in front and a closing bracket at the end of the editable range. In addition, it colors the background yellow-gray. How can I get rid of this ugly formatting Thanks, Claudia Hi Claudia Mmmm. Which kind of protection are we discussing, here There are at least four variations possible - I want to be sure we're talking about the same thing. And is this Word 2003 or 2007 ...Show All
.NET Development prompt for PostgreSQL user and password
I am connecting to PostgreSQL database using C# and i would like to know how can i prompt the user to enter the PostgreSQL user ID and password for verification.. right now I am must just hardcoding it.. Then in that case you should be able to design a dialog form to take ther user name and password and then pass that to the connection string that you are using... You may have to build the connection string in code. ...Show All
Software Development for Windows Vista SNMP pdu agent address is 0.0.0.0 when trap sent from Vista
When I generate a trap from a Vista machine using the WinSNMP APIs the agent address is 0.0.0.0 instead of the IPv4 address of the machine. If I run the same code on an XP SP2 machine the agent address is as expected. The code I am using to generate the trap is below. I am new to SNMP and the WinSNMP API so it is possible I am omitting some important step, such as explicitly setting the agent address. I have searched the WinSNMP documentation and googled for inspiration but I have not found a way to set the agent address. Where am I going wrong I am sure I am not the only one to suffer from this problem. Any software that expects to see the agent address in the SNMP trap PDU will also display 0.0.0.0. In fact it was because a third-party ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Orienting 3D objects along a velocity vector
I'm working on a bullet/missile class for my 3D game and I'm struggling with trying to figure out how to construct the rotation matrix to have my mesh oriented with the direction of my velocity vector (a Vector3). It seems like it should involve two rotations (since one axis will be the up-vector) and probably a little bit of Math.atan2 magic. Can anyone help me out thanks for the input everyone. I seem to have gotten part of the way there with Gerix's explanation. This is how my code goes at the moment: Matrix world = Matrix.Identity; // create an identity matrix to start with Vector3 v1 = new Vector3(0, 1, 0); // the model's natural direction Vector3 v2 = bullet.velocity; // the bullet's vel ...Show All
SQL Server db_owner role
I am getting this error message when disabling a job. The user is not a SA. TITLE: Microsoft.SqlServer.Smo ------------------------------ Alter failed for Job 'XYZ'. ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ EXECUTE permission denied on object 'sp_help_operator', database 'msdb', owner 'dbo'. (Microsoft SQL Server, Error: 229) The user can diasble the job if i give db_owner permission on msdb. Is there a way i can do this without making the user db_owner Thanks for any help ...Show All
