Software Development Network Logo
  • Audio and Video
  • Visual FoxPro
  • IE Development
  • Windows Vista
  • Visual Studio
  • VS Team System
  • Windows Forms
  • Visual C++
  • Visual Basic
  • Visual C#
  • SharePoint Products
  • Smart Devicet
  • Game Technologies
  • SQL Server
  • .NET Development

Software Development Network >> koosha's Q&A profile

koosha

Member List

sjm8
shmulik_segal
bxchan
Sjas
ronks
EmekaAwagu
MasterJ
Steven Rosenthal
Arunkjose
Vishnuprasadh
QWERTYtech
Chuck Cobb
SalmanSheikh
kbromer
kesim
TMSA
n3zdh
James M. King
David Pallmann
Rajib.Bahar
Only Title

koosha's Q&A profile

  • Visual C# shutting down remote computer using wmi

    Hi, I need to be able to shutdown a remote machine using WMI. It sounds fairly starighforward, but nothing I have come across seems to work. any help out there Thanls. Hi, nimo These resources may helpful to you: http://www.csharpfriends.com/Forums/ShowPost.aspx PostID=36953 http://www.thescripts.com/forum/thread254652.html Hope you can get the answer. Thank you ...Show All

  • SQL Server Dropping scripts into sql 2005

    Something that really irritates me with sql2005 is when I try to drag and drop a script into sql2005 I have to relog basically. Say I'm dropping in 20 different scripts, I have to relog and select the database every time for each script. Sql2000 did not do this, I drag and drop in scripts and whatever database I was currently in, it would use. Is this just a setting that I need to change or is it a horrible "enhancement" Thanks for your help. Hi, no I think currently this is not possible, one query windows per query will be opened and prompt you for the information where to connect to. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Adding a .x Model to the Pipeline by hand

    Hey all, I was just curious if there's any way to add a Model from a .x file to the project by code (ie- without using the GSE's asset creation functionality). I've disected my .csproj file, and I got something like the following, but I don't really know how to translate this to code. Beautiful. That was exactly what I was looking for. It's still not working correctly, content.Load<Model>("house") is returning False, but I think that might be an issue with Python's support (lack of ) for templating/generics. When I get home from work, I'm going to try building a C# library with an overloaded (and renamed) version of ContentManager.Load() that always returns a model, just to simplify things on the python end. That should probably ...Show All

  • Visual Studio 2008 (Pre-release) Demo IV: Offline Application – Conflict Handling

    Hi all, I just posted the forth demo in the series. This demo extends the previous demos and adds conflict handling logic. Conflicts are fact of life in occasionally connected synchronization scenarios. As a sync developer, you need to find a way to deal with this type of changes that if applied without too much thought will lead to data loss and unhappy customers. Synchronization Services for ADO.NET provides the necessary infrastructure to enable you to detect, surface and resolve conflicts. In this demo, I show you how to register to receive conflict events, dissect the information in SyncConflict object and surface it to the user, and the different options to resolve each conflict. I encourage you to read the full description of ...Show All

  • Visual Studio 2008 (Pre-release) load xaml dynamically in to a parent object

    let me explain my scenario. 1) i will have an xbap with Grid as child. What i need to do is pick up xaml files from another folder and display it in the Grid. For this purpose i use xamlReader to parse the objects of the stream. Further more i can load the xaml file if the file is present in the bin\debug folder if i try the same to pickup xaml files from some other folder i get SecurityPermission Exception. 2) I am migrating an existing aspx application to xbap. i need to know whether i will be possible to access URL query strings to be passed between xaml pages. 3) Can i use atlas along with WPF. You can load the xaml file and then create the xaml objects with XamlReader.Load and th ...Show All

  • SQL Server 2005 Management Studio Slow to start in some cases (have disabled certificate check)

    If I open SSMS from the start menu it opens instantly. If I double click on a sql file in explorer it takes about 10 seconds for it to open (either in the existing instance, or a new one if one is not opened already) . If I try and open it by double clicking on a sql when visual studio is stopped at a break point, it takes about 20 seconds. How can I speed it up Check what is the path defined on Query Analyzer to open and write the results, if that is based on a network drive then it will take a while to open the program. I have had the same problem and corrected by defining the path to local drive. ...Show All

  • Windows Forms FormClosing Issue in VS2005

    In VS2005 VB.Net, it appears that the Me.Closed and Me.Closing events have been replaced with Me.FormClosed and Me.FormClosing events. The problem I'm having is that the Me.FormClosing event only takes a System.EventArgs as the parameter. This does not proved any way to Cancel the form closing event if needed. Actually I just found this issue. If you select the Events from the event dropdown for the Form you are created under you get the following: Private Sub frmCurveAnal_FormClosing( ByVal Sender As Object , ByVal e As System.EventArgs ) Handles Me .FormClosing But if you change the "Me" to "MyBase" you can then change it to a FormClosingEventArgs. Private Sub frmCurveAnal_FormClos ...Show All

  • Visual Studio Express Editions Debug problem: program wont stop a break points.

    I have taken a program that i got from a tutorial that was written for visual c++ 6.0 I think. I clicked on the project and it imported it into 2005. I have tried to put break points in places in the program I know it hits but they don't stop the program. I also hover over these points and says program can reach them. Also when I recompile (clean then rebuild all) I see in the out put window No symbols loaded. which I think maybe the problem. I read in another post that someone had which they didn't get any symbols loaded and I checked the areas mentioned ther which were correct. Also, in borland c++ I was able to put in a statement (which I don't recall what the name of it was. that would print to the output window for the compiler. ...Show All

  • SQL Server BLOB Merge Replication

    Hi, I have setup a Merge Replication between a SQL Server 2005 and a SQL Server Mobile using native C++ code in Windows CE 5. Replication of normal data types (nvarchar, ints etc) works great, but when I try to replicate a blob about 1.5 MB the performance is awful. The download phase seems to be quick while the applytime (printed in debugger) when the database on my CE device is updated is about 3 minutes for 1.5MB binary data which is unacceptable since the database gets locked up during the applytime. The BLOB column is defined as image data type which shall hold up to 1GB data. I have tried to disable compression during replication, but it doesnt matter. Does anyone have some experience of using merge replication with blobs in SQL S ...Show All

  • Windows Forms A date Question

    Hello. I need your help with dates. I have 2 dates and i want to know the mathematical difference between them, for example: variable = Date1 - Date2 Thanks Merovingio you can use a timespan to find the difference. Dim theDiff as TimeSpan = Date2 - Date1 MessageBox.Show(theDiff.ToString()) 'or maybe theDiff.Duration.ToString() you can also get the ticks of difference via the Ticks property ...Show All

  • Visual Studio Express Editions Can't run source code from VB textbooks

    I own several VB 2005 texts with source code downloaded from the publishers' websites. Unfortunately, about 80% of the time, I can't run the code in VB2005 Express. There are no build errors, but when I attempt to run the project in the debugger, I get the following exception message: "Could not load file or assembly 'Microsoft.VisualBasic, Version=2.0.0.1, Culture=neutral, PublicKeyToken=6315780d5082271f' or one of its dependencies. The system cannot find the file specified." Is there any way to overcome this problem Sounds like VBE isn't properly installed. I'm surprised it works 20% of the time. Not good... ...Show All

  • Visual Studio Express Editions making it count

    hi trying to make a label count upwards. what have I forgot Dim tries As Integer = +1 Label10.Text = tries.ToString Hi. Something like this should solve your problem. Dim counter As Integer = 0 While counter <= 10 msgbox(counter) counter += 1 End While Best regards. dp ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 3d multiple model help

    i have 2 models in my game loaded. where one of the models is a gokart and camera follows it from behind. the second model is the track. when i controll the kart the kart moves but the track model stays still. how do i overcome this. this is the code for drawing the track model.(just the track model not the kart) private void DrawModel( Model m) { Matrix [] transforms = new Matrix [m.Bones.Count]; float aspectRatio = graphics.GraphicsDevice.Viewport.Width / graphics.GraphicsDevice.Viewport.Height; m.CopyAbsoluteBoneTransformsTo(transforms); Matrix projection = Matrix .CreatePerspectiveFieldOfView( MathHelper .ToRadians(45.0f), aspectRatio, 1.0f, 10000.0f); Matrix view = Matrix .CreateLookAt( new V ...Show All

  • Visual Basic Picturebox format conversion?

    I'm running into a minor snag. I load a bitmap into the clipboard using the Ctrl+C command. The program I wrote, then copies the clipboard into a Bitmap object. Next the program assigns this as the Image of a Picturebox object. So far so good... This is where the problem pops up. The Image displayed in the picture box is a dithered image. A nice solid brown patch becomes a dithered patch of color. It shouldn't be system display settings, since the original image displays properly. It isn't the copy operation, since I can set the clipboard object to the bitmap I just loaded, paste it into a graphics program, and the dithering is not there. It appears to be a function of the picturebox assignment. Sample code: Private ...Show All

  • Windows Forms ClickOnce and XCopy

    We have an 3 environment, Development, Testing, production. I publish the app to Development box and perform the test. Once the test is successful, we do XCopy and put it in Test for testing team to do testing and then do XCopy to copy all the files to production servers. It seems, XCopy process doesn't work since the .application has code base association with the server where it is published. Is it possible to over come this I would like to publish once and then from there I want to copy them over from server to server without publishing. Thanks. ...Show All

©2008 Software Development Network