Answer Questions
BrunoK Buttons Backcolor in C# 2.0
I recently started using C# 2.0 and put a button on a form, left the flatstyle as standard, then changed the backcolor. The button now has a square with the color I chose over the top of the button and the outline of the button still showing the standard style. Is there anyway to change the backcolor of the button in standard flatstyle without having a big colored square over the top of it Thanks in advanced Shane ...Show All
Carl B. How to make toolbar
i want to make google like toolbar in c#.net . please help me which way i start Amit Grover Hi Add toolSrip from toolbox properties System.ComponentModel. ComponentResourceManager resources = new System.ComponentModel. ComponentResourceManager ( typeof ( Form1 )); this .toolStrip1 = new System.Windows.Forms. ToolStrip (); this .toolStripButton1 = new System.Windows.Forms. ToolStripButton ...Show All
Phanindra Running as a service
Is it possible to have Windows Desktop Search index when the user is logged out ie. have it run as a service Will the desktop search be written to run as a service for XP at some time in the future, please Thank you, Jace 2.6 (aka 2.06) does not run as a service. I have WDS 2.06 and it is not installed as a service, Where are you getting your information ...Show All
Jumpercables Time-out difference between .NET 2.0 and 1.1
I have two client-server applications. The difference between the two is only the .NET 1.1 and 2.0 version. The apps simply access data from a remote SQL Server 2000(in mix authenication) using connection string. Some client PCs use .NET version 1.1 app and some use 2.0 app. The problem is that SOMETIME version 2.0 app get SQL Time-out error but version 1.1 app has no problem. Any idea Thanks. Yes, I changed the code but all is for .N ...Show All
Wyck Running programs from a windows service
Is is possible to start a program from a windows service so the user can interact with it I am working on a service that accepts commands over a socket, and one of the commands I want to implement is to start certain software in a user account. Is there any way to accomplish this Thank You, I haven't tried it; but the ServiceController class has a ServiceType property which can be set to ServiceType.InteractiveProcess. See the docs for ...Show All
JWK file.exists does not check file on a network
Hi friends am using VS2005 and C# .i have method which accepts a file path and if its valid it reads text from that file and display it in textbox (am doing this asp.net page). this works fine with files on my machine but when i pass a network drive file path File.exists always return .F. !!! why and how can i read files from a mapped drive Yes my user account has full rights read/write files from those mapped drives . Thanks for ur advice. ...Show All
tizzidale Permutation
Once again, I know this isnt a math class, and I completely understand if no one would like to help me but I still have questions. Basically, I already know how to make a program that lists all the different combinations of a set of numbers. You know, like if I have 6 numbers. the combinations would be as follows: 0, 1 2, 3, 4, 6, 5 0 2 3 1 5 6, 0 5 3 2 1 6 and so forth. Basically, I need to know how to is, say if I have 3 numbers, a ...Show All
VbNewbie12 c# a function if my service terminate by the task manager
hy there I have made a windows service in c# now you can not stop or pauze/resume the service but you can stop the service in the windows task manager. i want that if a user try to terminate my process(service) in the windows task manager that hi or she fill in a password end if its not good then that my service will continuo working or if its good then that my service will stop i cant figuring out wat i should do i'm sorry that my english ...Show All
debeerBiz Procedure or function has too many arguments specified
Hi everyone, I have a web application in C#. When i run the appl i get this error " Procedure or function xqxqxq has too many arguments specified", and I am passing just one parameter.. the only one the stored procedure needs. Pls help, I am stuck. Thank you. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it origin ...Show All
Jamie Fristrom boolean expression evaluation
Hi, is there any better way to determine whether the expression is true than putting it into the DataTable and perform Select Currently solving like this, but seems quite expensive to me: string var = "2" ; DataTable eval = new DataTable (); eval.Columns.Add( "var" , typeof ( string )); eval.Rows.Add( new object [1] {var}); string expr = ">1" ; return (eval.Select( "var" + expr).Length > 0) ...Show All
Peter Bromberg I Need to Search for specific word in file without load all the text in the file to memory
Hi I try to search for specific work in more then 50000 file and I want to know witch file that content that word … I use these lines of code to search for that word StreamReader sr = new StreamReader ("C:\File.txt", System.Text. Encoding .Default); int CharIndex = sr.ReadToEnd().IndexOf( "AnyWord" ); sr.Close(); if (CharIndex > -1) { Console .WriteLine( "The File content ...Show All
acs_atchyut DllImport - EntryPointNotFoundException
hello.. I tried to load a function from a dll file that has a function with specification as below: return type : int *pResult parameter 1 : BSTR string1 Parameter 2 : int integer1 Parameter 3 : VARIANT_BOOL bool1 and in my code, that's what it looks like, [DllImport("myDll.dll", EntryPoint="function_name")] public static extern intPtr function_name( [MarshalAs(Unman ...Show All
wanyong Dotnet 2.0 threading failed while it was fine with dotnet 1.0
Hi, I just found a problem with dotnet 2.0 thread programming. Hope someone can help me on this. My original threading code works fine with dotnet 1.0/vs2003. However, it fails with dotnet 2.0/vs2005. An example code is listed after my descriptions. The screen output of this code with dotnet 1.0/vs2003 and dotnet 2.0/vs2005 are also included. Basically, there are two threads in this program, one se ...Show All
ug751 Read multiple text files
I have an app that reads from one to 15 text files and appends the records into one text file. I've put a ListBox on the form thinking I could step thru the list and process the files but I am not sure how to proceed. As it stands now, the app reads the first file and stops and I am not sure how to proceed. Basically, I want the app to read all of the files automatically after the user clicks on the "Process Files" button. Original ...Show All
Sumo IDE Deletes my code
Hi, While using the Visual C# IDE to build a somewhat complex form (about 60-65 controls), I added a SplitContainer control to manage the layout of some of my controls. After a couple of minutes of playing around with the properties of the SplitContainer, the IDE deleted all of my code from the form - ALL of it ! Fortunately, I was able to pull a copy off a backup drive. I restarted the IDE and started making some ...Show All
