Fipil's Q&A profile
Windows Forms OnPropertyChanged databinding issue.
We have a binding setup from a TextBox to our business object, the binding DataSourceUpdateMode is set to OnPropertyChanged and the field we've bound to is a String type. Our object formats the string to be all UPPER case; if we type in an upper case character everything works as expected, however, if we type in a lower case character the cursor position in the TextBox goes back to 0. Is this working properly or is this a bug; and do you have any recommended ways for getting around this Thank you, Phil Our design is we assume the set will succeed or throw an exception. If it is successful (doesn ...Show All
SQL Server Database List Hardcoded into SQL Server Management
Hi, i'm working on the rtm version of mssql 2005 and i'm wondering to find that the database list are hard coded into SQL Server Management. I need to hide databases list for (newbie) users on EM 2000 i can hide this list using this kb http://support.microsoft.com/ id=889696 but on the new SQLSM The database list is hard coded into this batch query SELECT dtb . name AS [Database_Name] , 'Server[@Name=' + quotename ( CAST ( serverproperty ( N'Servername' ) AS sysname ), '''' ) + ']' + '/Database[@Name=' + quotename ( dtb . name , '''' ) + ']' AS [Database_Urn] , case -- if all these are fal ...Show All
Visual Basic Set mousepointer
Hello, How can I set the mousepointer on a place by fill in the x- and y- coordinates in a textbox Take a look at cursor.position ...Show All
Visual C# Showing a Form
How would I go about showing a form FormName .Show() doesn't work, and I don't know what will. See, I have two forms (Form1 and Form2). When an item from a treeview control that is on Form1 is clicked, I want Form2 to show. I already have the function that runs when the treeview control is clicked (private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)), but I don't know how to display Form2. When I try Form2.Show(), I get the following error: Error 1 An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.C ...Show All
SQL Server Running Create Replication Script
I am about to replace a SQL Server which is replicated to about 25 computers. The replacement PC (and SQL Server) will have the same name. I intend to generate a Create Replication Script before shutting down the old PC and to run it on the new one. Should I also create and use a Remove Replication script and run it on the old PC before shutting it down I am thinking that I might need to do this to remove Replication infromation from the subcribers before running the Create script. In other words, is it OK (or not OK) to run the Create script with the subcribers already in existence Is there possibly a way to run the Create script on t ...Show All
Windows Forms Best fit all column for a listview
Hello. I noticed that when you double click at the end of a column in a listview (details style) the column changes the width so that all the text should fit. Is there any way I can do this at runtime So I would like to do something like BestFitAllColumns() for a list view. Thanks for your future help (I hope ). Hahaaaah I've found a solution! [DllImport( "User32.dll" )] public extern static int SendMessage( IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam ); private void button1_Click( object sender, System.EventArgs e) { SendMessage( listView1.Handle, 0x101e, new IntPt ...Show All
.NET Development Video/Audio streaming in .NET C#/C++/VB possibility?
Hi there, I was googling, however unfortunatelly could not find anything useful in terms of Video/Audio Streaming (webcam to webcam) using .NET C++/C# or VB. I need to develop an application that will allow for cam-to-cam video/audio streaming, if possible any links or hints will be great. Thank you There is nothing inherently built into any concept of streaming. When a producer produces content, a subscriber consumes the content without having to wait until all the data is transfered. What .NET /C# gives you is the ability to transfer data to and from. I am not sure why you want to tranfer video from ...Show All
Windows Forms Masked Text Box
Hi, I'm using a masked text box. I'm allowing only a two digit number. The thing is the cursor doesn't automatically align it's self to the left when it's put unto the text box. I think I tried every property available. Is there something I'm missing Thanks in advance...Eric I've found it's better to do it myself for that sort of stuff. I just handle the KeyPressed event and set Handled to true if Char.IsDigit(e.KeyChar) and Char.IsControl(e.KeyChar) are both false. In your case, you'd also set it to true if the text of the control was 2 charaters long. ...Show All
Visual Studio Reading Strings for MSBuild
hey all, I have a task parameter that needs a string as an input. But I want to be able to use strings from a text file instead. For example, if I want the "Hello MSBuild" to be a string from a file, how do I do that Do I need to write a task for that Or there's one written somewhere Many thanks. < Target Name = " Hello " > < Message Text = " Hello MSBuild " Importance = " high " /> </ Target > You can use the "ReadLinesFromFile" task. For example: <Project DefaultTargets="Build" xmlns="h ...Show All
Visual Studio Express Editions Checking if application is already running
I have added a context menu item to my application. The problem is that, if it is already running and I right click a file, another instance of the program opens up. How can I check if the program is already running, and if it is, how can I pass control to the existing instance Thanks in advance. Thanks to everybody who replied. I now have a lot to read, but I'm sure I will find answers there/ ...Show All
Visual Basic Share Folders
I am interested in how to create a share folder structure ie. multiple folder level, in vb code that does not involve windows authorizaton and security for access. Here is my problem. In a company network environment I wish to run client vb software that accesses a puclic share folder on a server for data. I wish the client software to handle all sucurity with regard to folder access and totally disingage Windows Authorization of the individual user on whose computer the application is running. In short, I don't want a share folder to care what computer is trying to access it. How would I go about creati ...Show All
Smart Device Development Launch the dll at install time
Hi developers, How can i launch the dll at install time. Now i know there is a parameter in .inf file [CESetupDLL= setup_DLL ] where i give the dll file name . But how do i invoke the entry point function in the dll. Regards, Parag Hello Developers, Thanks luis for the reply . I am giveing below a snippet of code , I guess something is wrong with it which I can't figure out . I have a dialog that should pop up in the dll at install time. Can I debug the dll , if yes how // This is the CPP codeINSTALL_INIT Install_Init( HWND hwndParent, &n ...Show All
Visual C++ how to convert an int to LPCSTR
Hi..I was wondering how to convert an int to an LPCSTR for use with a textout function..thanks in advance..code samples would be awesome! You can use _itoa_s (or itoa if you are not using the Secure CRT). Note that the C means const, meaning that TextOut won't modify it. But your code needs to provide a pointer (LP) to a char string (STR). See http://msdn2.microsoft.com/en-us/library/0we9x30h for documentation and code samples. ...Show All
Visual Studio 2008 (Pre-release) ObjectDataProvider problems
I'm experiencing a problem between Sept and Dec CTP. When declaring an ObjectDataProvider: < ObjectDataProvider x:Key = " NoteCategories " ObjectType = " {x:Type model:MyCategories} " /> if the ObjectType specified is defined in a dependent project, the application will fail to find the specified type at runtime. However if the type is defined in the same project, it will find the type. The Sept CTP was able to find the type even if was defined in a dependent project. What changed I guess I should heed some of the Cider warnings, I ...Show All
Visual C# about vs2005 ! give me a hand! waiting on line!
vs2005 help!!!! a textbox ,a button , a sqldatasource ,a dataview when click the button execute sql: select * from authors where name=‘+textbox.text+’ the dataset returned list in dataview , just like c/s 。 I feel it very hard to contral sqldatasource, code is holpful 2! HI Thank you very much ! I solve it by myself ! that is very simple query interface , ...Show All
