Vaibhav_Patel's Q&A profile
.NET Development Is it possible to write to the desktop space from a .NET application?
I would like to be able to write directly to the XP/2003 desktop to provide various information, such as disk space, calendar, network information. I have tried using a dynamic web page and scripting, but I always get prompted to allow access of the ActiveX control to the local system (which is fair enough but a problem here). I have tried to look through the .net framework, but cannot see a way to write to the desktop area. The information would need to be set during login or dynamically there after. It is not a problem having an app that is running either from startup or as a service. Anything that is written to the desktop sho ...Show All
Visual J# ObjectInputStream - cast exception
Hi; I make the call: ObjectInputStream ois = new ObjectInputStream ( new FileInputStream (serFile)); Document correctDoc = ( Document ) ois.readObject(); And get the exception: 1) testTemplates(net.windward.format.wordml.test.TestWordMLParser)java.lang.ClassCastException: Unable to cast object of type 'System.Byte[]' to type 'System.Object[]'. at java.io.ObjectInputStream.fillArray(Object obj, Int32 len, Class elemType) at java.io.ObjectInputStream.readObject() at java.io.ObjectInputStream.fillArray(Object obj, Int32 len, Class elemType) at java.io.ObjectInputStream.readObject() ...Show All
Visual J# Access Database
Does any one have a sample code working with an MS Access Database LaurentLD do you get anywhere with the J# Access sample Do you understand it ...Show All
Visual Studio Express Editions casting help
i need help in casting some objects...in my program i have a treeview in which nodes(nodes are classes of various type...like organization(inherited from treenode)) has a context menu that could show a form...now..if i start a new project there is no problem in casting.....if i open a project when i try to show a form on a node there are casting problems...i posted some code...i hope someone will help me...i need to cast from TREENODE to ORGANIZATION..thanks all private void OrgProperties_OnClick(System. Object sender, System. EventArgs e){ Organization org; object objGeneral = treeView2.SelectedNode; <- type O ...Show All
Visual Studio Team System Checkout on large tree takes a long time
If I do a checkout (shared changes) on a large tree ($/Main), it takes a very long time. I'm using the B3 refresh. The Preparing to checkout stage takes several minutes. The underneath Main, there are over 100 projects with a total of a few thousand files. This needs to be made much faster; checking out a large tree shouldn't take 5-10 min as this is a common operation. Anyone else see this; has this issue been addressed in later builds Thanks, --Oren We have addressed at least a significant portion of the issue. A portion of the code that produces the "joe has a pe ...Show All
Visual Studio Express Editions Datagrid
I just converted a small database program from VS2003 to the VS2005 Express Edition. No problems at all, the program ran fine. Then I tried to created a newprogram from scratch in VS2005 Express. I copied and pasted some Datagrid code into my creation. I always get an error message pertaining to 3, that I know of, Datagrid properties stating that " TableStyles is not a member of Systems.Windows.Forms.DataGridView ". SetDataBinding and CaptionText are the other 2 properties that give me the same error. I create and map the Datagrid from the toolbox and nothing works. But, this same code when converted from VB2003 to VB2005 Express w ...Show All
.NET Development ASP .NET Web Service Error : URL:'http://localhost/WebService1. HTTP/1.1 302 Found"
Dear all, i'm using windows XP, IIS 5.1, Visual .NET 2003 and SQL Server 2000. When I open New Project - Visual C# Projects - ASP .NET Web Service - Location : http://localhost/WebService1 After that i click OK, then it returns error "The web server reported the following error when attempting to create or open the web project located at the following URL:'http://localhost/WebService1 . HTTP/1.1 302 Found" After that i try this : ======================= c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis -i but it returns same error. Does anybody encoun ...Show All
SQL Server Database Sort Order / Collation
I have an O2 Xda IIs Pocket PC running PPC 2003 SE, WWE (Worldwide English) edition. I want to create a database which contains all Chinese characters that have been mapped under the Unicode Standard. I already have a similar database on my desktop PC. On my desktop PC, I have used the collation Chinese_Hong_Kong_Stroke_90_CI_AS. However, on my Pocket PC, I do not see any Chinese or even Unicode sort orders. The best I get is "General". I want to use the Chinese sort order to govern the way the characters are sorted (ie., characters with fewer strokes appear first). How am I able to do this / Is there anything extra that I may ...Show All
Windows Forms assign values in datagrid
I have a column defined as the following: and in certain situations, I want to assign this cell a value of "1". With aCol3 .MappingName = dtproduct.Columns.Item("quantity").ColumnName .HeaderText = "Qty" .Width = 100 .Alignment = HorizontalAlignment.Left .NullText = String .Empty .TextBox.CharacterCasing = CharacterCasing.Upper .TextBox.Enabled = True .TextBox.TextAlign = HorizontalAlignment.Left .ReadOnly = False .TextBox.BackColor = System.Drawing.Color.White .TextBox.TabIndex = 23 With dgItemTableStyle.GridColumnStyles .Add(aCol1) .Add(aCol2) .Add(aCol3) .Add(aCol4) End With dgItemTableStyle.BackColor = ...Show All
Visual C++ How to Print in an ActiveX
Hello, I am working in VC++ 6.0 and Windows Xp Professional. I created an ActiveX control using MFC ActiveX ControlWizard and have drawn a circle on the control window using CDC (CViewClass). Now I want to print this DWG on the currently installed printer. I already added a method named "PrintCircle" to the control. I would like to call this method to do the printing. Now, my question is, how can I invoke the Printing functions Meantime I done the job with a SDI Application I try to do this way CMyCtrl CMyCtrl:: PrintCircle() { m_pView->MyPri ...Show All
Windows Forms Single Instance app, Activate
Using this in Main to enforce a single instance of the app: Dim firstInstance As Boolean Dim safeName As String = Application.UserAppDataPath.Replace("\", "_") Dim mtx As Mutex = New Mutex(True, safeName, firstInstance) If Not firstInstance Then Return End If Application.Run(New Form1) ... But instead of just returning if its not the first instance, I would like to Activate the existing instance's window. I guess the question is how can I get a reference to the form in the instance already running maybe you want to look here http://www.codeproject.com/dotnet/VB6andVBNETWindowMessages.asp i think if you sen ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help please!
I am having this problem when im installing DirectX 9.0c (tryed redistribution also) when it reachs 'Installing Components' I get an error saying ''A cabinet file necessary for installation cannot be trust'' please help http://msdn.microsoft.com/directx/sdk/readmepage/default.aspx Specifically.... "A cabinet file is necessary for installation and cannot be trusted." ERROR during installation. This problem happens in most cases due to system corruption or users disabling their cryptography services. Please try the following steps to see if it resolves the issue. Make sure your cryptography services a ...Show All
Visual C# Disable close box in Title Bar ?
have disable the close box in the the title bar, PInvoking the folowing EnableMenuItem ( GetSystemMenu ( this . Handle , false ), SC_CLOSE , MF_GRAYED ); where SC_CLOSE =0xF060 and MF_GRAYED = 0x1 BUT if I minimized the app and restore app will enable it again. Is there any other way to disable it using PInvoke. My app is C# applicaiton. any idea............. thanks in advance Hi there, Your form should has a "Paint" event. You can access this via the Form/GUI editor by doing the following: 1) Click on the form so that the form is selected 2) In the properties dialog, click ...Show All
Visual FoxPro Oleboundcontrol
Hi Everyone, This is my first time to post a question about VFP 6.0. I want to display a .JPG pict on the oleboundcontrol but everytime i try to retrieve a .JPG it displays only the icon and not the actual picture. It seems that it only supports the .BMP pictures, how can I get the .JPG and displays it. Thank you in advance. VFP avid fan Thanks for the response. I'm not sure if this is exactly what you meant but it works. I tried using the Image and created a table with a field type of Memo just like what you said and save the path and file name in that field. Below is the code, once the file name is saved I can n ...Show All
Windows Forms Clickonce error when installing
I have tried to use the clickonce and it works fine for me. I am running IIS on my machine and I get no problems. Neither do other people on my network. Other people outside the network get problems though. A message appears saying that the "application is improberly formatted". I published the application to a host outside of my network and now I also get the error. What is the problem and how can I solve it If you need the error file then I can upload it. Thanks Jon Did you change the installation URL on the project properties - Publish tab to http://www.mydomain.com/etc ... or is it ...Show All
