|
Hi
maybe you should check your loop
Ahmad Shaban
|
|
|
|
|
I recommand you to not use muc variables because your project grows and becomes big procces in CPU.
Check ur code and insetad variables use dirctly code.
Use as little bit number of vraiables as is possiblity.
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
You have to look for the code that causes the cpu load somewhere else in your program. Converting a byte to a string is a very simple task that will take mere microseconds to perform.
---
b { font-weight: normal; }
|
|
|
|
|
How can I convert binary data to image then converted binary data i want to save as jpeg or another format
regards...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Hi
Load the data into a MemoryStream , then use Image.FromStream . Then use Image.Save .
BTW, you must keep the MemoryStream open until you have finished with the Image .
----------------------------
Be excellent to each other
EasiReports[^] My free reporting component for WinForms.
|
|
|
|
|
Thanks and it works perfectly...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
hello, im building a web browser in visual c# (vs2005) and while it works fine i cant do it to open new windows in my application, it opens them using external ie windows, any idea how i can force it to pen them in new windows of my application instead of ie windows?
D.M
|
|
|
|
|
Go into the articles section and look for articles in the C# COM Interop section. There are two articles that talk about interaction betweeen IE and a Windows Form application including my article. You probably want to have the IE code fire an event back into the WinForm code which would then cause the WinForm code to open a new window of itself.
|
|
|
|
|
I want to use a font from any where except Windows installed fonts.
I don't want to draw the text, I want to use the font as it is, so is there any way out?!!
alaa
|
|
|
|
|
Hi there,
i have a usercontrol with an image/canvas. When i add it to a form it goes bezerk. The form flashes some 10 times and in the top of the InitializeComponent it adds stuff like Size and some other parameters like RectangleF.
'Normal' behaviour would be that it would add it like:
this.myControl1 = new Demo.MyControl();
but it also adds
MyDotNet.MyMath myMath1 = new MyDotNet.MyMath();
and later on in the InitializeComponent:
this.myControl1.Cursor = System.Windows.Forms.Cursors.Cross;<br />
this.myControl1.Dock = System.Windows.Forms.DockStyle.Fill;<br />
myMath1.Value1 = true;
myMath1.Value2 = 100;
this.myControl1.Math = myMath1;
The myMath1 above is added by the designer [C# Visual Express] and i cannot see why this happens.
In my control i have the following events:
* Load
* Resize
* SizeChanged
Basically when the usercontrol size is changed i set the size of the image to be the same as the usercontrol.
Anyone knows what could be going on here?
Thanks,
Jan
|
|
|
|
|
anyone,...?
i cannot tackle it, debugging skips it
|
|
|
|
|
hi there. I have a problem.
I want to select a row from the datagrid en put that in tekstboxes in a new form.
this is what i've got so far:
<br />
public delegate void CustomRowHandler(object sender, CustomRowEventArgs e);<br />
<br />
<br />
public static event CustomRowHandler CustomRow;<br />
----------------------------------------------------------<br />
<br />
public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
<br />
int rowIndex = dataGrid.CurrentRowIndex;<br />
if (CustomRow != null)<br />
{<br />
<br />
<br />
CustomRow(this, new CustomRowEventArgs(barry11,dataGrid, rowIndex));<br />
<br />
----------------------------------------------------------------<br />
<br />
public class CustomRowEventArgs : EventArgs<br />
{<br />
<br />
Barry1 barry11;<br />
DataGrid grid;<br />
int row;<br />
<br />
public CustomRowEventArgs(Barry1 DSet,DataGrid Grid,int Row)<br />
{<br />
<br />
barry11 = DSet;<br />
grid = Grid;<br />
row = Row;<br />
<br />
}<br />
public Barry1 DSet<br />
{<br />
get { return barry11; }<br />
}<br />
public DataGrid Grid<br />
{<br />
get { return grid; }<br />
}<br />
public int Row<br />
{<br />
get { return row; }<br />
}<br />
<br />
----------------------------------------------------
and on my second form..
-----------------------------------------------------
<br />
private void customHandler_CustomRow(object sender, WindowsApplication30.CustomRowEventArgs e)<br />
{<br />
<br />
<br />
Barry1 DSet = e.DSet;<br />
DataGrid grid = e.Grid;<br />
int row = e.Row;<br />
<br />
editLASTNAME.Text = e.DSet.Tables[0].Rows[e.Row]["Firstname"].ToString();<br />
<br />
}<br />
<br />
<br />
InitializeComponent();<br />
Form1.CustomRow += new<br />
WindowsApplication30.CustomRowHandler(customHandler_CustomRow);<br />
<br />
<br />
public DataForm1(Barry1 barry11, DataGrid dataGrid, int rowIndex)<br />
<br />
so.. if i put this peace of code from the second form in to my first form..
it words...
if i put this peace of code in to my first form..
public void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
int rowIndex = dataGrid.CurrentRowIndex;
if (CustomRow != null)
{
CustomRow(this, new CustomRowEventArgs(barry11,dataGrid, rowIndex));
DataForm1 frm = new DataForm1 (barry11,dataGrid, dataGrid.CurrentRowIndex);
frm.Show();
he opens the second form (DataForm1).
he fills the textfield that was on the first form..
but he doesn's fill the textfield on the second form...
can someone please help me
|
|
|
|
|
Dear sir
For an important company in Abu Dhabi I am sending this mail. We are developing an important software.We are using C# as teh programming language. We want video to be displayed .So we are using DirectShow and VMR9. We want facility of recording, playback etc.
Qusetions
1.Can we use C# for that or we must C++ to get the advanced facility of DirectShow. 2.If we are using DirectShow+c#+VMR9 can we get managed code.
3.Good video progarms can be got either by C++,or C# if we use DirectShow.
Expecting your support in the earliest
Litty Thomas
|
|
|
|
|
I got my User control sitting at the server with web service. My web service has to send the user control to the client on request. how to achive this?
Rajanikanth A.B
|
|
|
|
|
Follow up on the replies that you already got, instead of spamming the categories with the same question over and over.
---
b { font-weight: normal; }
|
|
|
|
|
Mr Guffa
if i had got the ansewrs sure i would have followed up. its a urgent need so i am posting it again and again. have u tried to solve this. Any idea?.
Solutions are better than comments!
Rajanikanth A.B
|
|
|
|
|
anurajju wrote: so i am posting it again and again
This is a sure-fire way of annoying people, and therefore NOT getting an answer
anurajju wrote: have u tried to solve this
Seeing as you have not really given us much to go on, I don't think many people can answer this positively
anurajju wrote: Any idea
Yes, firstly select your forum correctly and post a question ONCE in ONE forum. This particular forum is for specific C# related questions. That is to say - you post some C# code, what the problem is, what error you have, what line it occurs on etc etc and we tell you how to rectify the problem.
Your question may well be suited to the ASP.NET, Web Development, or even .NET framework, but currently there is not much we can help you with.
anurajju wrote: Solutions are better than comments
Ahhh, semantics. The solution is usually WITHIN the comment!
|
|
|
|
|
hi J4amieC
thx for ur suggestions. i have asked to come up with an idea to serve an or push an usercontrol from the server to the client thru web service so that the client can use that usercontrol. we haven't started coding yet. i just want to come up with how to achive it? if u people have got ideas to achive it then please let me know.
Thanks and Regards
Rajanikanth A.B
|
|
|
|
|
You have provided no further information in this post whatsoever!
|
|
|
|
|
anurajju wrote: if i had got the ansewrs sure i would have followed up.
Obviously not.
If you didn't post in so many categories, perhaps you could keep track of the replies.
The thread[^]
anurajju wrote: Solutions are better than comments!
Well, not if you don't read the replies that contains the solutions...
---
b { font-weight: normal; }
|
|
|
|
|
My requirement is to communicate data from a s/w to a Wireless access point which supports https protocol. All I understood is HTTPS is HTTP over SSL and client needs a certificate to connect to webserver while establishing connection.
Guide me which C# class has to be used. What are the prerequisites for HTTPS connection?
I'm looking for some sample. Please share any sample if you have.
Thanks,
Shylaja.
|
|
|
|
|
Hai Shylaja,
I have been looking for similar solution but on different grounds, and also posted a Question on to the forum and found no answer. I need to Communicate to a website on HTTPS and supply some login information and Emulate the Login Button click on the Server it self. i was able to achive it on the local machine but on the remote it says Authentication failed. Any ways ...
All i can suggest you to look into HTTPWebRequest and HTTPWebResponse classes and do some research and you might get it done. there are few good articles on CodeProject like "How to use HTTPWebRequest and HTTPWebResponse". search for this you will find it i Hope this will serve the purpose....
Regards,
KSS
|
|
|
|
|
I have to compare two database files on two servers for the differences between their objects like tables, stored procs. I just need to know if there are differences, and dont need to check the syntax or anything.
For the time I just need to know how to pass in the names of the server and database into a form and then passing them to sql server to get access to the mdf files to compare them.
I have tried to find stuff on google but cant really get any direction at all.
OnlyHuman23
-- modified at 5:08 Thursday 23rd March, 2006
|
|
|
|
|
I am using a class library and executing as a console application,in a paticular i want to open a website automatically through the class file,help me how to do this.
ALL THE BEST
|
|
|
|
|