|
nice to hear that!
happy coding!
|
|
|
|
|
is it possible to create a program which is able to ping an ip address?
|
|
|
|
|
Google[^] is your friend. There's LOTS of examples out there.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I rarely ever have problems like this. I've been developing a control which I've finally finished. I want to add this control to another Form in another Project. Both of these Projects reside in the same solution. However, the IDE has failed to provide a control Icon in the "My User Controls" Tab and instead I've had to reference the DLL and add the Items manually to my Toolbox.
Now for the kicker. When I drop my new Control onto the Form, it adds a reference to that Library, but no control displays nor does it throw an error, nor does the Form "look" Modified (Asterix next to the Form Title).
Does anyone know of anything I can do to get this working? This seems to be happing a lot more and I've been developing controls for the past 2 years!
|
|
|
|
|
Go in the code view and check whether the control is getting added on the form
Is the control visible after placing it on the form?
did u manually add the control in the toolbox?
Maybe u have forgot one of the above points
Thanks
Pramod
|
|
|
|
|
I finally got it to work. After manually adding the Control to the Toolbox, and dropping it on my Form, the Project created a reference to the DLL but it did not show on the Form nor did it create variables in the Form for the Control.
I think I eventually determined that there was an issue with the Resource file for the Control project so I fixed that and removed all references to the Control in the new Project. After dropping it on the Form this time, it worked.
|
|
|
|
|
Hi to all,
Does anyone here has sample codes to create Gantt Chart in windows forms? Im trying to make it myself but I just dont know how to start. Please share me ideas on which components to use or if you have ready components that i can possibly import, I'd really appreciate your help. I've been trying to find free source codes in the net but to no avail.
Thanks so much and more power.
Ted
|
|
|
|
|
Do you want to draw the chart, or also be able to edit it, and have it change it's values accordingly ?
Either way, I don't know of any controls, but drawing one shouldn't be that hard.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks so much for the speedy reply. As of this time, I wont venture yet into editing the chart but maybe later on. I just want to make a start, drawing it so to speak. Could you help me on this? I really really appreciate your time.
Thanks!
Ted
|
|
|
|
|
Actually, I reckon you just need to create one or two owner drawn cell types and use a datagrid ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Ted,
ComponentOne has a Chart component that will allow you to create Gantt charts, as well as many other types of charts. A trial download is available from http://www.componentone.com/Downloadcenter.aspx?PanelIndex=4[^], which includes a sample that shows how to create a Gantt chart in your program.
Suelinda W
Customer Engagement, ComponentOne LLC
Suelinda W
Customer Engagement, ComponentOne LLC
|
|
|
|
|
Hello,
I've been trying to convert a simple USB control program from VB to C#.net for a past few days and I'm making no headway. Can anyone help? The original program is at
http://www.devasys.com/release.htm
Its at the bottom of the page, along with a C++ example.
Much thanks.
Hovik
|
|
|
|
|
Which bit is causing you grief ? The easiest way out is to write a managed C++ wrapper around this C++ code and call that from C#.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm new to the entire "wrapper" concept. I'm currently experimenting by using the dllimport function in C#. Will a managed C++ wrapper be easier?
|
|
|
|
|
dllimport is pretty straightforward, but what I'm talking about is creating a managed C++ dll project, which exposes the functionality you want from the C++ source, and then using that dll in C#. I've done it a few times, it's pretty trivial.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I agree with this methodology. Exposing it as a 'native .NET' assembly is far better than managing and maintaining the exporting of methods from a Windows DLL in C++. Either way you will have to maintain an interface, why not just do it in one place.
Andrew Peters
|
|
|
|
|
I'll poke around to see what i can figure out. Do you have any past projects you might be able to e-mail me to give me an idea of what to do?
|
|
|
|
|
There's nothing you really need, just create a managed dll, and you've got a project that you can write in c++, but which can be called from C#. Then you just add methods to your managed class that expose the methods you want to call. You create an instance of the internal class within the managed one, and pass the methods on to that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
VB to C# is automated via numerous VB to C# conversion utilities (but C++ to C# can't be automated).
If the program is small as you say, then the demo edition of our Instant C# VB to C# converter may be all you need.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# converter
Instant VB: C# to VB.NET converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB.NET to J# converter
Clear VB: Cleans up VB.NET code
|
|
|
|
|
Hi David. If you followed the link, he has a VB6 app he wants to convert.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Right - you need to get that into the framework as the first step.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# converter
Instant VB: C# to VB.NET converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB.NET to J# converter
Clear VB: Cleans up VB.NET code
|
|
|
|
|
I am using Execute Scalar for a COUNT on a query and on the C# side I get a count of 1. Using the same query on the SQL side I get 0 results and (1 row affected).
How does ExecuteScalar work, I always thought it grabs only the result of the count...
|
|
|
|
|
Kuira wrote: How does ExecuteScalar work, I always thought it grabs only the result of the count
ExecuteScalare creates a Data Reader, and gets the value of the first column of the first row. Then closes the data reader. If any other data is available it is ignored. If there is no data at all then it returns null, if the value of the first column of the first row is a null then System.DBNull.Value is returned.
The query sent to ExecuteScalar can be any SELECT query that you like, although obviously only queries that return one row with one column are best.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Yea I thought so but apparently, it didnt, till I restarted VS.NET, then it seems to work as normal, I have no idea why but anyway....
|
|
|
|