paopaop's Q&A profile
Visual C# Conditional not working, C# Express beta 2
This code example from help doesnt work; Msg is called every time. AND, the web page editor to post this code also fails, with this messagebox: Line 188 Char 1 Error: '_ctl0_Maincontent__ctl0_PostForm_PostBodyRichText_Toolba...' is undefined Code 0 Url .../AddPost.aspx ForumID=59 // cs_attribute_conditional.cs using System; using System.Diagnostics; public class Trace { [ Conditional ( "DEBUG" )] public static void Msg( string msg) { Console .WriteLine(msg); } } class Test { static void A( ) { Trace .Msg( "Now in A." ); B( ); } static void B( ) { Trace .Msg( "Now in B." ); ...Show All
Windows Forms Text box text format checking
I have some text box which allow the user to key in integer and decimal. How do i do a checking on the text enter in the text box that it is integer ot decimal E.g. Throw a error msg to the user when the user enter letters in the text box where the user is suppose to enter integer or decimal. As soon as ...Show All
Visual Basic How do???
How do Dynamic Web Pages work in the IDE Hi, I think you'd like more information on how to get started with the Web features of Visual Studio, Visual Basic, or Visual Web developer If so, please start by running the guided tour: http://lab.msdn.microsoft.com/express/vwd/default.aspx Also, please check out the learning articles and headlines on this page: http://lab.msdn.microsoft.com/express/vwd/default.aspx Hope this helps. Best, Paul Yuknewicz ...Show All
Windows Forms DataAdapter.Delete for table with no Primary Key
I'm trying to use a DataGridView with an unbound DataSet in order to maintain the sort order myself. All was working well until I realized the wizard will not create a Delete command unless a primary key is set in the table. So, I set a primary key and I'm back where I started. The system auto sorts the table by the primary key. Is there a way to inhibit auto sorting on the primary key Or is there a way to create my own Delete command using the unbound table I don't like playing in the Designer code if I don't have to. Hi! Have you tried with DataTable.DefaultView and then the DataView.Sort property Have y ...Show All
.NET Development How to UNlock a file
Hi, how can i unlock a file, so i can change, move or delete it It doesn't matter, because i run through a list of files and want to delete them all. At the moment i catch exceptions and don't delete files if they are locked in any way (maybe by another application) cause i don't know how to unlock them. ...Show All
Visual Studio Express Editions Connecting to access mdb file problem.
I am having some trouble connecting to my Access Database from Visual Studio Express 2005. I can add a connection if it is a sql database, but when i change the Datasource to the access option and hit ok i get a window that allows me to change my Connection string, and thats it. If i cancel it exits the wizard. Also the only data provider i have is .net framework provider for ole db. Should i have a second provider The other software i have installed is access 97,and access 2003 both with their corresponding developer software. I also have an educational version of visual studio .net 2003 and i can connect to the db using . ...Show All
SQL Server About Login Account
Hi everyone, I have a simple question for you which is too important for me. My question is about logins in my own(local) server. I know that my local server(my computer's server) has to default login account which are called sa and BUILTIN/ADMINISTRATOR. While I am using my own server, I do not know which default login account is used by my Server since I use windows authentication while connecting to the Server. Another question is that while adding new login account for my own Server, I noticed that there is a choice which is comprised of Grant and Deny for the Security. What is the meaning and usage of this Thanks and Regards ...Show All
SQL Server SQL Server 2005 Management Studio can't be found
Sorry if someone already covered this, but I can't find anything about it. I just installed (3 hours ago actually) SQL2005 Standard Edition (from the Launch event) on my machine, and i don't seem to have a shortcut to the SQL Server 2005 Management Studio anywhere. I looked for a likely executable, but couldn't find it anywhere. This wouldn't bother me as much if I could use Enterprise Manager from 2K, but SQL2005 will not allow it to register. How do I get this going There are people here that want to inspect it's features, etc. I haven't got anything to show them. I d ...Show All
Visual Studio Express Editions Display a variable in a TextBox - Simple task if I new how
In the absence of reference materials which are still somewhere over the Pacific, I'm trying to teach myself how to implement the simplest tasks without much luck. I have created a form and on that form have placed a TextBox. Now I go to the underlying code for this control and want to display a type LONG variable in the TextBox. Two issues here: the TextBox will not display a Long variable; this I have apparently overcome using ToString. But how do I get the resultant variable text data into the TextBox control on the form No, I don't want to use MsgBox! Like that other large Corporation (whose name will not be mentioned), you will ...Show All
Visual Basic Reading characters from a line
I was wondering (DESPERATELY) how to read only certain characters from a line of text and how to define where the code will start reading and how far into the line the code will read. and lastly - is it possible to store these specified characters in a variable I've been messing around with "Mid()" but its not doing exactly what I need it to. THANX Mid is going to strip your string, but you can also look into using regular expressions to look for patterns in a string, and return them. ...Show All
Visual Studio Express Editions displaying complete text in a dropdownlist control in
hi i am populating a dropdownlist from database. the query is working fine. problem is the full text is not appearing in dropdownlist. e.g if it is "expenses-legder full details" in database. in dropdownlist its showing only "expenses-ledger " and omitting rest of the characters. is there any property of dropdownlist i can set to get this work. thanks CS When you display the list you are most likely seeing it only be as wide as the instance of the DropDownList itself, this indicates that your instance is not wide enough to display such a long string and given that it doesn’t have an AutoSize property the way many ot ...Show All
Visual C# trouble using delegate in WndProc
when i use delegate like this: ----------------- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { delegate_ReplyFromDataProcess = new PrepareDelegate_ReplyFromDataProcess(ReplyFromDataProcess); delegate_ReplyFromDataProcess.BeginInvoke(m, null, null); } delegate void PrepareDelegate_ReplyFromDataProcess(Message m); private void ReplyFromDataProcess(Message m) { IntPtr pnt = dp.OnReply(UInt32.Parse(m.WParam.ToString()), Int32.Parse(m.LParam.ToString())); } ----------------- i met the error: * ...Show All
Visual Studio VSS & VS very very slow compiling
I'm using Visual Studio .NET 2003 and Visual Source Safe 6.0d. When my computer is connected to the network the compilation of any projects takes a lot of time (but my CPU peaks at 10 maximum) VS screen is white during the process. If i disable my network connection the compilation is fast. The guy close to me is using the same network, the same VSS,VS and the same project but he doesn't have any speed problem. I'm using Windows XP SP1 (i installed SP2 but I removed it to see if it was not the problem). Any one could have any idea Are you using by any chance an antivirus with real-time monitoring In the pa ...Show All
Windows Forms Hitting breakpoint in thread causes thread to exit
If I create a standard C# Forms app, add a button, and inside the buttons onClick handler I put the following code: ... { // workerThread is a member of the form workerThread = new Thread(new ThreadStart( DoWork ) ); workerThread.Start(); } ... void DoWork() { while(true) { Debug.WriteLine("Hello"); // <-- put breakpoint here. It gets hit but VS hangs then thread exits. Form keeps running fine. Thread.Sleep(50); } } So long as I do not put a breakpoint in the DoWork it runs fine. If I put a breakpoint once it gets hit VS hangs for a couple of seconds then when it resumes it reports the thread has exited and the DoWo ...Show All
Visual C# Automatic logging in to websites via WebBrowser
Let's say I want to automate some repetitive tasks done to various websites. Specficially, these tasks involve: Logging onto website with user id and password Filling out form with certain information Submit form for processing Parse web page output and capture relevant information User id's and passwords are stored in a file encrypted by a master key which I have to type in. My questions are: How do I use .NET 2.0 WebBrowser control to do (1) & (2) automatically Moving beyond C# (if that is too difficult), what are other ways to do this. I am thinking of some kind of IE automation All thoughts and su ...Show All
