Rajivgovind's Q&A profile
Visual Studio 2008 (Pre-release) What difference between RC1 and BETA 2
I Wonder that What difference between RC1 and BETA 2 What is improved and limitation in RC1 Any article about that , please help Thanks Nghia Nguyen hi Ashish Shetty - MSFT thanks for your quick reply. another question that where can i find the product roadmap also list of fixed bugs, stabilization/performance improvements Nghia Nguyen ...Show All
Visual C# How to invoke command line from C#?
Hi, I wish to know is there anyway to invoke command line from C# programatically Regards, Leo I got this problem when I use standard output. Ok I got this batch file with the content identify -format "%%w|%%h" %1 And it is use to identify the width and height of an image And when I use fileSize = System.Diagnostics. Process .Start(proc2); System.IO. StreamReader processOutput = fileSize.StandardOutput; fileSize.WaitForExit(20000); if (fileSize.HasExited) { result.exitStatus = processOutput.ReadToEnd(); } I got this identify -format "%w%h" test.jpg 160|120 All I want in fact is just the width and height of the image "160|12 ...Show All
Visual Basic Command line not shell
Hi, How can I execute a command like executing it from the command prompt through VB. I try "Shell" but it doesn't work. You can Shell with Visual Basic.NET, you can access it by : Microsoft.VisualBasic.Interaction.Shell() And there is also Process.Start() , it can be a good choice too. ...Show All
.NET Development adding Window Media Player into IE Toolbar
Hello: I am facing a problem in adding a Window Media Player Control into IE ToolBar. I found a project written in C# on Code Project site that can add a text into IE toolBar. But I can't add the window Media Player into IE. The Project I found constitutes of 2 projects BandOjLib and SampleBars window Application C sharp where the development is happening in it. So what you do in SampleBars project will be embedded into BandObj Project after compilation and start without debugging both BandObj and SampleBars respectively. When I am adding the Window Media Player into TOOLBOX, then to drag it into window Form => it gives me this error: Assembly generation failed -- Referenced assembly 'AxInterop.WMPLib' does not hav ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft's future policy for redistributing Xbox 360 games?
Before I commit serious time and effort to the XNA framework, I'm wondering if anyone knows Microsoft plans for allowing us to redistribute our games for Xbox360. I'm an academic. Let's say I want to make some educational/simulation games that my students can use on the Xbox 360. Will I be able to provide them with a CD or download link in XBox live As far as I can tell so far, the only games I can write are for myself. It would be nice to be able to publish the game to see a limited number of User IDs that are not in the creators club (say 10 or so) as a start to testing wider use. I was thinking of this if I were to try and get my nephews into computer programming it would be nice to publish some gam ...Show All
.NET Development How to convert string to expression
I am having an string "3<2", I would like to use it in a if statement as if(3<2). How to convert this string into an boolean expression. Can we convert a string like "a<b" into a boolean expression. You could use CodeDom - which is used to dynamically build up code (using code) to execute... have a look at the System.CodeDom namespace, in particular the CodeExpressionStatement class. If you have a look through the documentation (and on the internet for examples) you should be able to put something together. Hope that helps. Simon ...Show All
Visual Basic My.Computer.FileSystem object ???????
I am trying to use the following expresience in VB .Net 2003: My.Computer.FileSystem.RenameDirectory("C:MyDocuments\Test", "SecondTest") But I am getting the following error: Name 'My' is not declared. eventhough I did include: Microsoft.VisualBasic namespace in the import option of the project properties. Any Idea, Thanks. Hi Fares, the ' My ' feature is new to Visual Basic 2005 and is not available in VB.Net 2003. Andrej ...Show All
.NET Development Dinamically adding columns
I'm having trouble finding a suitable example for my problem. I have a table (MS Acces Database) which I would like to load whatever structure (fields, no data) I have on it into memory. Once the structure is in memory, I want to check which fields are available and if I need to add new fields, I would like to add them to the table. Finally, I want to save these changes (eg. when I open the Access file, the table's structure has been updated with these new fields). Is this way too complicated, or is it doable I myself (beginner/intermediate-level programmer) cannot figure out how to save changes to the table's structure. I could use some help from the DB gurus. Hi, That task is easy in a DataTable, ...Show All
Windows Forms Where can Custom Designer catches the Exception of Control
Hi, I'm developing custom designer like below http://msdn.microsoft.com/msdnmag/issues/06/03/DesignerHosting/default.aspx and a custom control. this custom control has only specific controls as child. the related code is below [Designer(typeof(CanParentExDesigner))] public class CanParentEx : Panel { protected override void OnControlAdded(ControlEventArgs e) { if (!e.Control.GetType().Equals(typeof(Button))) { throw new InvalidOperationException(e.Control.Name); } else { base.OnControlAdded(e); } } } public class CanParentExDesigner : System.Windows.Forms.Design.ParentControlDesigner { public override bool CanParent(Control control) ...Show All
.NET Development SSL and asyncron server
Hi, I currently try to get a sample client with asyncron message transfer and ssl to run. I try it with TcpClient and TcpListener from the .net Framework.For SSL I used SslStream. The problem is that the callback method - in my case OnSSLConnectionEstablished- is not on client side invoked. sslStream.BeginAuthenticateAsClient(machineName, OnSSLConnectionEstablished, client); Here the important server parts: public void createSSLConnection(TcpClient tcpclient) { if (tcpclient.Connected) { SslStream sslStream = new SslStream( tcpclient.GetStream(), true); try { sslStream.BeginAuthenticateAsServer(serverCertificate, OnSSLConnectionEstablished, sslStream); }...... Th ...Show All
Microsoft ISV Community Center Forums Adding a command button to the toolbar or menu bar in Excel?
Hi I'm wondering is it possible to add a command button to the toolbar or menu bar in Excel using VBA I came across an excel file before in work that somebody had setup this way but not sure how to go about it! I basically have two buttons that I would like to have added to the toolbar or menu to make the sheet tidier and enable the user to see all the data without having to move the buttons etc. http://i102.photobucket.com/albums/m82/sc0ttb_2006/excel_buttons.jpg Any ideas folks Thanks, Scott Hi Derek, thanks for the help again! Just need some clarification... You said when calling the sub that it needs to be public and in a module so I changed my code and added ...Show All
.NET Development sending dataset on sockets
Hi, I am using framework 1.1 and VS 2003 I have a dataset that I want to pass over socket. How can I do this any sample Also, on the recieving end, how can I convert it back from binary to dataset. Thanks, Datasets are binarily serializable. If you are using a socket you can simply serialize the DataSet using the BinaryFormatter class. Once it is serialized to a binary stream, you can send the stream accross the wire via your socket, and then deserialize on the other side back to a DataSet. ...Show All
.NET Development Connecting vb.net to Access form
I want to be able to connect vb.net to an access db I have variables with values from vb.net that I need to use I created a form in access of textboxes, all individually labeled. is there a way I can connect to Access and be able to fill this form's fields and "hit" the submit button to populate this DB Thanks in advance!! Not sure exactly what you're trying to do. Do you just want to open up the database in Microsoft Access from Visual Basic.NET and then enter all the data through the Access Form Or are you expecting the Visual Basic app to enter all the information in the Microsoft Access Form and then save the data ...Show All
Visual Studio Team System XML Schema definition
I have tried to access the XML schema definiton so I can make changes to my template and I am getting a "not found" error for http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef What's up Hi mariso, The url that you are trying to get is just the NAMESPACE of the xml schema...not the REAL URL page where you can see the valid content....else...u can try the recommended url from Subodh Sohoni Thanks, Kathir ...Show All
Visual C# Form Designer - multiple controls inside one single source file
Is it possible to use the form designer with controls that exist in the same source file Or is the <ControlName>.cs + <ControlName>.Designer.cs mechanism strictly neccessary No, <ControlName>.cs + <ControlName>.Designer.cs is not necessary but just a good habbit to seperate codes accrding to behavior, this is new feature in C# 2.0 and is called partial types. using this you have a single class on multiple files. Its just the idea of isolation of presentation and behaviors. You can put all the code into a single file or even you can have 10 controls in a single file. Best Regards, ...Show All
