|
Hi Ant.
Tnx alot.
that's great, that's so easy to handle and saves hours and hours of time !
Frank
|
|
|
|
|
Hello everybody,
I want to connect a computer on one LAN to a computer on another LAN using a modem and a phone line (a HyperTerminal sort of thing).
I want to be able to dial a number from a list and send and receive messages and files, preferably with acknowledgement.
I also want the whole stuff in c# (v2003) using Windows Forms (GUI), not the console type.
Can anyone of you help me out with this or point me to a link where it might be available.
Thanks a lot.
BIK
|
|
|
|
|
If i want to draw a piece of image inside another i use this:
g.DrawImage(img, rect1, rect2, unit);
but if i want to cut a portion of image from g as i'm using a rubber, how can i do?
I've tried with
To simulate a rubber i create an empty image then i place it on the zone of the Big image i want to cancel:
Image img = new Bitmap(20, 20); // 20 is the dimension of the rubber
then
rect2.Width = rect2.Height = 20;
g.DrawImage(img, rect1, rect2, unit);
but it doesn't work.
WHY??
|
|
|
|
|
hi
i want to create half of circle and close start and end of line and fill it . how to do that ????
please give me full detailes because i am beginner...
thanks
|
|
|
|
|
There are several ways to do it.
-> Draw a circle (with fill) and a Rectangle(with fill same color as background) over it (covering half the circle).
-> Look into FillPath and FillPie methods of the graphics object MSDN.
hope this helps...
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
I wrote a deployment project and when I set it on another machine and the try to run the application then the datagrid does not come out with anything. Can someone help me to explain why this is so and maybe a possible solution.
|
|
|
|
|
Hello,
In my application (net2.0) I have a few threads. I want to stop the threads when the main form is closed. Now I'm not sure what I have to do.
Normally I would implement a IDisposable interface. In the form exists this function already and it is not virtual.
What is the best way to implement this? Which event I should use?
Regards
|
|
|
|
|
Hi
When you create your threads, set the IsBackground property to true.
When you close the app, the background threads are automatically terminated.
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
Thank you it was a very good hint!
|
|
|
|
|
Hello,
In my application (net2.0) I have a few threads. I want to stop the threads when the main form is closed. Now I'm not sure what I have to do.
Normally I would implement a IDisposable interface. In the form exists this function already and it is not virtual.
What is the best way to implement this? Which event I should use?
Regards
|
|
|
|
|
Hello,
Try to use FormClosing event (.net 2.0) of the form.
HTH. Cheers.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
hi,
i am creating a class that inherits LinkLabel. I am trying to override the method OnPaintBackground to make it transparent but it seems it is not fired.
any idea why or how can i make my LinkLabel transparent?
regards,
rnv
|
|
|
|
|
Not sure, but add this to your constructor.
SetStyles(ControlStyles.Opaque, false);
|
|
|
|
|
thanks but i should have mentioned that i am doing this for my Smart phone application (using Compact Framework 2.0). and it does not have SetStyle method.
|
|
|
|
|
I have a datagrid, user can choose which cols will printed. Ex : User choose 5 cols, the report will have 5 cols. How to do that in crystal report.
Regards.
|
|
|
|
|
If I'm not mistaken you have two ways of using Crystal Reports, Push and Pull, One of them can attach Datasets, making the reports more or less dynamic. Crystal Reports isn't really 'dynamic' as anyone would want it yet. Let's hope in the next version they will integrate it a little more with .net ways .
What you can do, with a little meddling is doing it via passing parameters to the report. I'm not sure what you'd like to do, but to make the reports dynamic we used to ask the parameters in our application. The application would than pass them to the report.
hope this helps
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
Crystal Reports is not very useful when it comes to these things. It is an absolutely terrible tool when it comes to doing normal things. I have several times had to create my own reports using print objects/GDI+ etc because CR wouldnt do what I wanted it to, or it was just easier and quicker to do it myself. Setting parameters may be an answer.... Just let the users enter what coulumns they want, then use function fields to match their input up to actual columns. Unfortunately, you still dont have a way to layout the page dynamically. It may turn out to be quicker to do your own reports lol. Hopefully CR will be completely redone in its next release.
Aaron
|
|
|
|
|
I just upgraded some components and well the inherited "details" forms lost their design mode in visual studio 2003.net and compling the base dll has not solved it.Any idea.
|
|
|
|
|
Hello,
For importing function i use
[DllImport(DLLNAME)]<br />
public static extern int function(Type Args);<br />
into my class. and it's working fine.
But for import variable which is exported by dll this method doesn't work.
It will get error that "DllImport is not use for this item only use for method import". And for extern keyword say that this will not use for this item.
Plz help me.
regards,
Divyang Mithaiwala
|
|
|
|
|
Create a function that will expose that variable's address, then you can write to it.
|
|
|
|
|
dll is not my one it is made by someone else. I just downloaded it from internet & import methods using definition givin in doccument.
Divyang Mithaiwala
|
|
|
|
|
I created a local web proxy server running on my PDA in order to browsing web pages locally without network connection.
I must tick "This Network uses a proxy server to connect to the Internet" and set up the "Proxy Server" in Settings/My Work Network on the PDA. after that, My local web proxy server can receive the request from Pocket IE.
However, after that, the Web Services Request (HTTP+SOAP) sent by calling the web services from my local web server (I created) will be directed into my local proxy server but not go to the requested remote server.
I have tried to use some methods such as GetEmptyWebProxy.. but they didn't work..
Does anyone know HOW to solve this problem
thanks
|
|
|
|
|
This might not be relevant, but I have never been able to get WebServices working via my local proxy (FreeProxy).
DarrenHuang2005 wrote: I have tried to use some methods such as GetEmptyWebProxy.. but they didn't work..
Did you properly assign that to the generated webservice class?
|
|
|
|
|
I'm using DataView to sort my dataset. Once a user sorts the data I want to reset it back to show all records. Whats the right way to do this? I'm using the RowFilter property to sort the dataview.
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hello,
You can set DataView.RowFilter property to string.Empty to view all records in the table.
RowFilter property is used to filter the records. You can using Sort property of DataView to sort the data.
HTH. Cheers.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|