|
You don't need to implement the ISerializable interface. Just decorate your class with the [Serializable] attribute and you are fine.
|
|
|
|
|
can anyone tell me how to write an image inside a cell as a comment in Excel using C#
-----Have A Nice Day-----
|
|
|
|
|
Hi everyone,
I have an application which is going to work on the parameters that is passed from another application.
1. The first application is an add-in and the second one is a windows application.
2. The first application is a windows application ans second is a web application. In the web I am using Form authentication.
I want to pass the user who have logged-in in the first application and other details to the second application by clicking a button.
Can any one tell me how to perform the above.
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi,
Have a look at the Process class and its Start() method.
Specifying a file acts just like double clicking the file in Windows Explorer.
For more control, use the StartInfo property.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I am using C#, OpenGL and want to draw the Text on screen ... I went to OpenGL site and see the GLFont and other methods. Problem I face in these are:
They give Code in C++ that uses pointers and references that are not supported in C# and it call them as unmanaged code, i write unsafe modifier in front of it but other problem arises. So, these codes are not helpful unless they are in C# language.
if anyone know the method how to draw text in openGL or how to use C++ code in C# language then tell me .... I will be very pleased for your help ....
|
|
|
|
|
Hey,
be careful not to mix up things here.
First, OpenGL is a native C Library, so 'talking to' OpenGL, at some point, requires you to communicate with it - good news is, you don't have to that yourself (but you can if you want to).
Check out the following libraries which may help:
o Tao Framework[^]
o EaseWrapperSDK[^]
NOTE: Tao is for C#, EaseWrapper is for C++. If you haven't worked with managed C++ / Interop, look at Tao first. Tao has more to offer than just wrapping OpenGL, by the way (also wraps SDL, OpenAL, etc.)
Second comes text rendering. There are a number of ways to it:
o Manually. This involves a texture which contains letters and numbers. Then, you render little rectangles with orthographic projection on the screen. For a GUI, you want to do this after the scene is rendered. This is not as hard as it may sound.
o Using a library such as glFont. As far as I know, glFont is a program or a library. Its not an OpenGL-Command. However, I don't know any C# gl font-render libraries, so again you might have to mess with a managed C++ wrapper.
o Using a high-level library such as CeGUI which has a lot more to offer than text rendering. It is included in the EaseWrapperSDK, but it's also C++.
There might be a GUI library in Tao, I'm not sure.
I suggest you go for Tao and have a look at thoseNeHe Lessons[^] which concern font rendering. He presents a number of options. NeHe's tutorials are available as C#, but you will have to (in other words, you should) convert them to Tao if you use it.
Hope that helps,
Chris
"Obstacles are those frightening things you see when you take your Eyes off your aim"
- Henry Ford
Articles
Blog
|
|
|
|
|
Thanks 4 the Reply ... NeHe Lessons's Link was not Opened in my browser i think link is broken ....
I want to ask one more thing that i am using this code ... where height is the Font height and startPoint_x and startPoint_y is the point where text is to be display
CsGL.OpenGL.GDITextureFont myGDITextureFont;
Font newFont;
newFont = new System.Drawing.Font("Microsoft Sans Serif", (float)height);
myGDITextureFont = new GDITextureFont(newFont, 'a', 'z');
GL.glTranslatef((float)startPoint_x, (float)startPoint_y, 0);
myGDITextureFont.DrawString(text);
and in this way text displayed but when i click on it it turns into solid bar .... Can you tell me, What is the problem with this code ....
|
|
|
|
|
Hi,
the link to NeHe works out for me. If it doesn't work, you might want to google it or visit gamedev.net, which links to NeHe.
As for the code you supplied, I don't see any trouble.
However, the problem might be caused by your update/resize methods. The question is: Under which circumstances do you redraw the screen? You have to do that whenever Windows tells you to do so, because it might have invalidated the screen. This can happen when resizing, minimizing, when another application draws in front of yours or even if a different control receives focus. The latter happens upon click, so make sure you redraw the scene for the events named above.
Chris
"Obstacles are those frightening things you see when you take your Eyes off your aim"
- Henry Ford
Articles
Blog
|
|
|
|
|
I have been looking at the NeHe lesson and they seem to be in C++, sorry if im being blind.
Also what is the best way to rotate text, i.e. having it writing at the angle or vertical.
Thanks
|
|
|
|
|
hi to all!
I m using raw socket class to capture network packets,It parse packet headers of TCP/IP and UDP/IP .I want to determine the packet size .
Is there any method to calculate or get packet size and also tell me how i can calulate the network traffic. if there is any soruce code link availble then send me . thanks
|
|
|
|
|
Hey guys,
I'm developing a jukebox kind of app with video support. Currently I support up to three 'rooms' which can play audio individually. The audio is handled by DirectX (9c) and then ported to sound device which handles the rest for you. Now in order to support multiple 'rooms' I need to insert more sound devices in the machine.
I want to use only one 5.1 sound device, and send the audio of multiple rooms, to different output ports on the sound device. Can anyone give me a hint?
Eduard
|
|
|
|
|
I want to execute multiple command on MS DOS using C SHARP is it possible ?
|
|
|
|
|
See here[^]
Courtesy of Google.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have a datatable , i mean a temporary table , which has nothing to do with the sql server 2000 database.
now my question is , how can i filter the records from that temporary table , to filter the records.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
use Select() and write you filter, that will return DataRow[]
Code:
DataRow[] Dr = DT.Select("EmpId = 'E999'");
all rows, whose EmpId is equals to E999 will store in Dr
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
is there any need of type casting ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Select returns an array of DataRow . So type casting is not needed.
|
|
|
|
|
GridView inner = (GridView)e.Row.FindControl("inner");<br />
DataRowView dro = (DataRowView)e.Row.DataItem;<br />
if (Session["dt1"] != null)<br />
{<br />
if (inner != null)<br />
{<br />
DataTable dt = (DataTable)Session["dt1"];<br />
DataRowView drowv = (DataRowView)e.Row.DataItem;<br />
DataRow[] dr = (DataRow[])dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());<br />
inner.DataSource = dr;<br />
inner.DataBind();<br />
}<br />
}
Am i doing right to bind the data ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: (DataRow[])dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());
dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString()); I think casting is not needed
|
|
|
|
|
stll there is an error
DataBinding: 'System.Data.DataRow' does not contain a property with the name 'Itemno'.
this column name exist in the table.
Following is the code
<br />
GridView inner = (GridView)e.Row.FindControl("inner");<br />
DataRowView dro = (DataRowView)e.Row.DataItem;<br />
if (Session["dt1"] != null)<br />
{<br />
if (inner != null)<br />
{<br />
DataTable dt = (DataTable)Session["dt1"];<br />
DataRowView drowv = (DataRowView)e.Row.DataItem;<br />
DataRow[] dr = dt.Select("No=" + dro.Row.ItemArray.GetValue(0).ToString());<br />
inner.DataSource = dr;<br />
inner.DataBind();<br />
}<br />
}
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
You don't use a property called 'Itemno' in this code. Did you try using a debugger ? Do you know which line has the error ? I doubt it's one of these...
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
casting may require for columns, but for rows you wont need it
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello Friends,
I am developing an Windows application in C#.NET and i have Panel controls on the form in this panel there are some other controls i want that when ever i click on copy button then the panel control will get copied along with it control and whenever i paste it on MS word document then it comes in image or clip format.
|
|
|
|
|
can you display the code?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
Clipboard.SetDataObject(panel1.Controls);
|
|
|
|