Dacota's Q&A profile
Software Development for Windows Vista an old dos Program cann't show Chinese characters in windows xp
excuse me, I have an an old dos Program that can show Chinese characters well in windows98, while it cann't show Chinese characters correctly in windows xp.why thanks a lot ...Show All
Visual Basic Identifier
Public Sub () RaiseEvent Button2.Click(TextBox2.Text & TextBox3.Text) End Sub It says i need a identifier before () on Public Sub (), but im not sure wut i need to do. Can someone post the correct code What is you sub called. What its telling you is that you need to give your sub a name. You cant just leave it blank. How would you then be able to refer to this sub Example Public Sub XYZ() RaiseEvent Button2.Click(TextBox2.Text & TextBox3.Text) End Sub ...Show All
Visual C# Default Text property in User Control
I've created new User Control inherited from Button and i set Text property value to " ", but when I place my control on a form it has Text equal to control name. How can I prevent changing Text property of my control Try this- public class ButtonEx : Button { string m_text; public string Text { get { return m_text; } set { m_text = value ; } } public ButtonEx() { base .Text = " " ; } } Hope this helps ...Show All
Visual C# Why are the properties in an auto-generated resource file wrapper always "internal"?
Hi! When I add a resource file to my project the IDE automatically generates a class wrapper. However, all properties are "internal", so there is no way to access the resources from outside the assembly. Is there a way to change the modifiers to "public" The idea is to create a seperate library that contains images for all our projects. How can I achieve this Thanks for your help. Jurgen Jurgen, Check out this post for a discussion about sharing settings http://forums.microsoft.com/msdn/ShowPost.aspx PostID=117187 . Thanks, Anson Horton [ansonh@microsoft.com] Visual C# IDE PM ...Show All
Visual FoxPro Obtaining a web page's title
I'd like to get the titles of web pages, and would prefer not to do this by loading all the web pages into a webbrowser, because that seems a bit heavy handed. In VB6 I used some APIs to achieve this, but I'm not having any luck in getting it to work in .net. Here's the code I'm trying: Module Module2 Private Const INTERNET_FLAG_RELOAD = &H80000000 Private Declare Auto Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" ( ByVal hInternetSession As Integer , ByVal lpszUrl As String , ByVal lpszHeaders As String , ByVal dwHeadersLength As Integer , ByVal dwFlags As ...Show All
Visual Studio 2008 (Pre-release) How to determine which part of a FlowDocument is visible in a FlowDocumentReader?
I can't find any way to determine which part of a FlowDocument is currently visible in a FlowDocumentReader. Any ideas You cant do this for a FlowDocumentReader but if you host your content in a FlowDocumentPageViewer then this is possible. bool TryToFindDocumentPosition(FlowDocumentPageViewer fdpv, out TextPointer currentlyVisiblePosition) { ReadOnlyCollection<DocumentPageView> pageViews = fdpv.PageViews; //collection of visible pages in viewer if(pageViews != null && pageViews.Count > 0) { //there may be no visible pages i.e. no layout may have occured DocumentPageView currentVisiblePageView = pag ...Show All
Smart Device Development Deploying PPC2003 project (coverted to VS2005) in WinCe5.0 device
My application was developed in vs2003 C# CF1.0 and Sql Server Ce with SQL Server 2000 for synchronization for PPC2003 devices. I am trying to convert that project to VS2005 sothat I can deploy it on Windows Ce5.0 device. The conversion wizard didn't successfully convert the project, it kept throwing the error Compact Framework 1.0 is not installed on the computer even though I had it and I can compile the project in Vs2003. So I installed VS2005 on other computer and successfully converted the project. But still it didn't give me the option to connect to Ce5.0 device. So I created new Vs2005 project for Ce5.0 devices an ...Show All
Software Development for Windows Vista How can i get refference of Workflow Runtime in workflow
hi need a refference to a service for which in need the refference of the runtime. How can i get the reffernence to current runtime OR whats the equivalent code for WorkflowRuntime wr = WorkflowWebRequestContext.Current.WorkflowRuntime ......... in WF Also is there any way to set a state dynamically I tried SetState ss = new SetState("StateName") ss.TargetState = "ExistingStateName" but it doesnot work. do you mean how do you get a reference if it's not hosted in asp.net eg if it's hosted in a console app In that case, there won't be an extant runtime so you would do th ...Show All
Windows Forms showing different text in a pannel at runtime
Hi ! I am new with Windows Forms. I want to make an application interface with different panels. In one panel I just want display different information along the time, showing what the application is doing (keep changing the information according to what happens in the application). How can I do that (I don't want to use the status bar). Can ...Show All
Visual C# Passing reference params as a (sub-type) cast
Hi All, Why can'y you pass a sub-type cast to a method that accepts the param by ref For example: class Animal {...} class Human : Animal {...} class SomeThing{ public void DoSomething(ref Animal a) ...} Is there a way to accomplish the below (which fails with a "output must be a reference type") : Human h = new Human() DoSomething( ref (Animal)h ) Thanks Rob you shouldnt have to cast it as humans are animals: DoSomething( ref h ) should work. Now, why are you passing it as a ref Remember, just because you are passing it by val, doesnt mean you ...Show All
Visual Basic filter on bindingnavigotor textbox from a custom class
revising the post a little, putting in all that I've tried in hopes of someone giving a helping hand. I'm uisng a custom class to fuel my datasouce. I've draged the datasource over in detail view and put in the Me .CampersBindingSource.DataSource = oCampers the data appears fine. now what I'm trying to figure out is how to wire the textbox in the binding navigor toolstrip so that when I type something in, i can get it to search through a "column" in my dataset and bring up that info. can i have it search several columns Per Bart's suggestion.. i'm using this in my cam ...Show All
.NET Development One-bit-alteration problem in the using of serial port
Hi Im using the serial port in my application through the SerialPort class and everything goes fine apparently. I open the serial port in one computer and this computer send an array of 26 bytes whose last 2 bytes are: 0x5E and 0xF9. Ok when the other computer receives the data it receives all of the bytes ok except the last one which,instead of having the 0xF9 value ,has the 0x79 value and i dont know why is this happening. I have realised that 0xf9 is in binary 11111001 and 0x79 is 01111001 (the same with the exception of the first bit) Im using a port with a configuration of one stop bit and without parity and 7 data bits. ...Show All
Windows Forms Composite Control Child Docking
Hi! I have a composite control which inherits from System.Windows.Forms.UserControl and uses ParentControlDesigner so I can use it as a container. At the top of my control I have a panel which acts as a "header" of sorts. Below the header is just client area to hold the child controls. It seems to work just fine with one exception.&n ...Show All
Windows Forms Adding a shortcut to text file on Start Menu with ClickOnce
Does anyone know how to add a shortcut to a text file on the Start Menu along with the shortcut to the application I'd like to include a simple help file (Help.txt) but I don't know how to get the shortcut created . Use Project -> Properties -> Publish -> Options to specify a support URL. A link to this URL will be put on Start Menu alongside shortcut to app. Regards, Sameer ...Show All
Visual Studio Express Editions Cannot use some keys when open external programs ...
I got a problem with Visual Studio 2005 - VB Express Beta 2, when I open my VB project, then I open an external program (like wordpad), when I come back to the project those keys does'nt seems to respond : "space", "Delete", "Enter", "Tab" and "Backspace". If I Close the project and start it back afterward, it work well again ... until I open up another external program. Tanks for your feedback, J-F I finnaly found out how to fix the problem. To fix this problem you must "Activate" one of your windows in the menu "Windows" click on "Windows ..." and ...Show All
