lfx's Q&A profile
Windows Forms RichTextBox keyboard shortcuts
Hi, I'm adding some formatting buttons to a RichTextBox, as well as some keyboard shortcuts. The menu buttons work fine, but I'm having issues with the keyboard shortcuts. I got Ctrl-B to trigger my Bold() function from the KeyDown event with: if (e.KeyCode == Keys .B && e.Modifiers == Keys .Control) { Bold(); } However, when I did the same thing for Ctrl-I and my Italic() function, I found that Ctrl-I is adding a tab to the text as well. Why on earth is it doing that According to the documentation for TextBoxBase.ShortcutsEnabled only the following shortcuts are enabled: CTRL+Z CTRL+E CTRL+C ...Show All
Software Development for Windows Vista VB.net implementaion does not return Instnceid
I ran Asp.net implementaion of Hello World in VB. Protected Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim workflowRuntime As WorkflowRuntime = WorkflowWebRequestContext.Current.WorkflowRuntime Dim scheduler As ManualWorkflowSchedulerService = workflowRuntime.GetService( Of ManualWorkflowSchedulerService)() Dim workflowType As System.Type AddHandler workflowRuntime.WorkflowCompleted, AddressOf WorkflowRuntime_WorkflowCompleted ' Load the workflow type workflowType = GetTy ...Show All
Windows Forms Print File in ListView
Hi all, I have a listview which contains list application files and folders same window explorer. I want to have option to print selection file (Ex: right click on that seletion file and choose option to print), this selection file is opened by local application accordingly and printed. This function is supported in Window Explorer, I think VS.Net 2005 will support that function. Therefore, somebody had done it before. Please give me your ideas. Thanks for your help ! Steven. ...Show All
Visual Studio Tools for Office multiple windows again and again
So, I get this strange error once again. Please give some directions what is the cause of it and how it can be circumvented. I create Word project drag some bookmark controls from my data source and then I create an Actions pane with Binding navigator control in it. The Binding navigator controls is bound to the binding source of the bookmark controls in Word document. Just for the sake of concept proof I make my dataset to be Cached and public also. I build the project and close VS.NET IDE. Then I open the Word document from bin folder load the dataset from database, save the document and close MS Word. After that I stop the ...Show All
Visual Studio 2008 (Pre-release) WinFX For Visual Studio RTM
I have readed about the Visual Studio 2005 RTM is planned to be released today on msdn, is planned to be released also a recompiled version of WinFX runtimes and SDK for RTM soon Sebastian We're working to get a WinFX build that works on the RTM of Whidbey out as soon as possible. Still don't have a date for you. Thanx, Arik Cohen Program Manager - Windows Presentation Foundation ...Show All
.NET Development Serializing a custom struct
I build the follow type: public struct UID { string _uid; bool _initialized; public static readonly UID Empty; public UID(string uid) { _uid = uid; _initialized = true; } public override string ToString() { return _uid; } } When i try to serialize this type using XmlSerializer, the value contained in my type is not serialized like the type System.DateTime of .NET Framework. I want that my type behave like the System.DateTime (<DateTime>2006-05-29 ...</DateTime>) and not like is: <UID xmlns="..."></UID> (without the value like innerText). Anybody have idea in how i solve this ...Show All
Visual Studio Express Editions VWD create users problems
Hello, hope i can find an answer here ive been trying to solve this for a while n couldnt find anything anywhere.. it's a simple thing, when i go to 'Administer Website', going to the Security tab.. i click on the 'create new user', knowing that am running on an sqlserver2000 -as it was installed already' but did run the aspnet_regsql.exe file-, the following error message keeps appearing saying "Password length minimum: 7. Non-alphanumeric characters required: 1" hmm, i have tried every thing in the password field, but it's obviously a database problem that it cannot create the user.. is a problem with the sql server thing ...Show All
.NET Development use c# class as com object
i created a class library and add a class . then i created a type library with tblexp and i registered the dll using regasm. now i want to use that class from vb6, so i opened a new project, add a reference to the type library i created and wrote- dim x as nameSpace.ClassName but i cant get to the methods in the class. what am i missing thanks in advanced. Hi, There is nothing wrong in what you have done. Its just the intellisense which is not working,. Just type the method and parameters even if they dont dropdown and run the application, it should work. For a more step-by-step guidance read this: http://bui ...Show All
Visual Studio Team System unhandled exception on install!!!
yeah someth totally new now...( great cause always the same errors r really boring :-)) all services runnin perfect! see my event log entrys >>>> http://foundation:8080/Currituck/SyncAclService.asmx System.Net.WebException: The request failed with HTTP status 503: Service Unavailable. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.VisualStudio.Bis. ...Show All
Visual Basic showing a new form in vb .net
okay, this is going to sound really stupid, but i can't figure out how to open another form in vb.net. in vb6, you could just say: Private Sub command1_Click() form2.Visible= true End Sub or: form2.Show but it isn't so easy in vb.net. i've figured out that to change most of the properties of a form in vb.net, you have to use MyBase , but that doesn't work well if you want to open a different form. please help. sonny jim Sonny, Try this code Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Glob ...Show All
SQL Server ODBC Destination in SSIS
Hi! I have a problem that stops me from using Integration Services as THE ETL tool. My goal is to load a data warehouse type of a database. The database is MaxDB (former SAP DB), but this is not the point. Let's take ANY ODBC compliant DB and assume all I have is ODBC driver - no OLE DB driver. I figured out how to read from ODBC source (using Data Reader and ADO.NET provider for ODBC). Now my question is how do I output/write my data into ODBC source When I try to use OLE DB Destination it does not give me an option to use .Net Provide for ODBC. I tried other "destinations" with no luck. I use this version of SQL Server 2005: (Mi ...Show All
Windows Forms toolStripComboBox to fill the toolsstrip
Trying to make toolbar like the Address for IE, I have a t oolStripComboBox that does the AutoComplete etc, but the problem is I cant get it to strech/auto size to entire toolbar. Any ideas on how to make tool bars similar to ones in IE TIA Thank you Josh Didnt realise that feature, Actually both answers are correct, Erics answer includes some good code thats quite handy. ...Show All
Windows Forms Deployment ? for the gurrus :)
Ok on my work Pc I have a test page with links to a number of smartclient exe's. With some security mods the rest of the PCs in work can load page and launch the apps no problems. Works real nice infact. Bosses love it. Heres my problem, we have a VPN setup for a number of people, VIPs, When they use this to log into the networ ...Show All
Windows Forms property best way
what is the right way to get a value in the following case >>> class NameBuilder Private _name As String sub new(byval initName as string) Name = initName end sub Public Property Name() As String Get Return _name End Get Set(ByVal Value As String) _name = Value End Set End Property End class now if I Set the property >&g ...Show All
Visual Studio 2008 (Pre-release) Product feedback center category?
Will there be a new category within the Product Feedback center like there is for Avalon, Indigo, Acrylic and VS 2005 or should we make suggestions in the .NET Framework ...Show All
