|
Check out Sandcastle[^], it generates a MSDN-style documentation from the XML-comments in your sourcecode
I are Troll
|
|
|
|
|
Hey,
I just recently went from VB to C#, and I must admit a lot of things are better. But the thing I miss most are the void dividers (grey bar) between the voids in Code View, which VB had. Is there a way to get these back?
Thanks in advance,
Zaegra
Motivation is the key to software development.
|
|
|
|
|
I'm not really sure what these void dividers are, but I think you could ask about this in the Visual Studio forum (presuming you use VS). Good luck!
|
|
|
|
|
|
Please do not post the same question in multiple forums, read the guidelines[^].
|
|
|
|
|
hello
I want to ask a question,,
I add a tab and i want to show some of it's tabpages and to disappear the other, the tabpages has no such property as visible or enable. how i can do it?
Thaer
|
|
|
|
|
Initially I thought that the Show and Hide methods of TabPage would do the trick, but it doesn't seem that way.
You could probably achieve what you want to do by first creating your TabPage objects and then call TabControl.Add and TabControl.Remove to add/remove (show/hide, enable/disable) the tab pages you want.
This is not the most elegant solution though, but it will solve your problem
Good luck!
|
|
|
|
|
Interesting. Do you mean you don't need so many tabs? Cuz, first, when one tab is showing, the others are hiding; second, tab pages can be removed if not needed.
|
|
|
|
|
I have developed a windows service in C#, however, when I start the service. I get the error detailed below. Can anyone help solve this problem?
Could not load file or assembly 'MySql.Data, Version=1.0.7.30072' or one of its dependencies. The system cannot find the file specified.
|
|
|
|
|
Hi,
I guess you implemented something with MySql. The service needs the assembly "MySql.Data.dll" within the GAC. Try to register the assembly there and your service will start (hopefully).
Regards
Sebastian
|
|
|
|
|
Thanks for ur reply.
How do I Install MySql.Data.dll in gac.
When I tried using gacutil -i MySql.Data.dll, got an error "Attempt to install an assembly without a strong name"
|
|
|
|
|
Maybe this is what you're looking for?
|
|
|
|
|
sup brahs, I'm new here, I just wanted to ask you guys if you have a sample source code for Point of Sales (POS) system in C#? it doesn't have to be really good or something.. really basic would do it for me. for a sample food chain if possible.. cos it's the simplest one. Gui based with any kind of design pattern. I really need help with it. Thank you so much and will appreciate the replies.
|
|
|
|
|
bump. really need help with this.
|
|
|
|
|
realbadwolf wrote: bump. really need help with this.
You sure do, as you seem incapable of using your own abilities.
|
|
|
|
|
Wrong site. Try rentacoder.com, they do your work for you. The idea of CP is to answer specific problems, not provide free code for people to pass off as their own work, either for college or when they have assured a client they can do it but haven't got a clue.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
- Dont put "Urgent Help Required" or somesuch. It's in the FAQs/ How to post a question sticky at the top of the board
- Don't expect us to supply you with source code. Describe your problem and what you have tried. It's in the FAQs/ How to post a question sticky at the top of the board
- You can't really expect anyone to provide an entire system for you? If this is a college project, we should get the credit (and qualifications) for our work, not you, also if you don't do it yourself you won't learn anything. Assuming it isn't a college project this is, after all what you are getting paid for , so anyone writing the system has a reasonable expectation for the same
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
realbadwolf wrote: sup brahs
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
I have create one file in c drive which and write in it and try to read from window service . Account:Local System, but it Cann't get any thing
Protected Overrides Sub OnStart(ByVal args() As String)
If Not File.Exists("C:\DevLog.txt") Then
EventLog1.WriteEntry("File Not Exist")
Else
Dim sr As StreamReader = New StreamReader("C:\DevLog.txt")
Dim tempstr As String = sr.ReadToEnd
If tempstr = "" Then
Else
EventLog1.WriteEntry("Get File Name")
st = tempstr
End If
sr.Close()
End If
End sub
Thanks in Advance.
|
|
|
|
|
Hi,
so do you get an error message? Does the file contain something?
Btw. this is an C# forum, and you posted some VB code. Also try to not double post.
Regards
Sebastian
|
|
|
|
|
I have created one text file in File Contain -> "abc or some value"
Account :LocaSystem
protected override void OnStart(string[] args)
{
if (!File.Exists("C:\\DevLog.txt")) {
EventLog1.WriteEntry("File Not Exist"); 5. }
else {
StreamReader sr = new StreamReader("C:\\DevLog.txt");
string tempstr = sr.ReadToEnd;
if (string.IsNullOrEmpty(tempstr)) {
}
else {
EventLog1.WriteEntry("Get File Name");
st = tempstr;
}
sr.Close();
}
}
the error msg is:---Service cannot be started. System.IO.FileNotFoundException: File not found.
I think you get clear idea about problem ...
Thank for reply
|
|
|
|
|
sunstate wrote: the error msg is:---Service cannot be started.
So its not necessarily that it can't read your file. Comment out all your code to do with the file and just write a message to the eventlog to show your sevice is working. Then you will make some progress.
There should be no problem reading a file, many services are file watchers, waiting for files to process.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Without File handling code it will working properly and also get proper eventlog up to the File.Exist()
Thanks for reply
|
|
|
|
|
So now try just checking for file.exists and logging a message. Put it in a try ctach so you can log the full exception details and that should give you some pointers.
Really, this is a basic programming technique for trapping/tracing errors so you should be able to properly identify where it goes wrong and also get the full error message as to why.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I can´t see any creation of "c:\devlog.txt". Are you shure, you create this file?
|
|
|
|