|
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
|
|
|
|
|
|
Thank U So much Deepak it's working.........
ALL THE BEST
|
|
|
|
|
My database is Oracle 9i.I use Dataset and procedure .
when I use the method-UpdateDataset,it return an error.
it shows that "Parameter 'P_Addresses': No size set for variable length data type: String.". "P_Addresses" is my parameter.
Can someone help me?
|
|
|
|
|
Without seeing your code, I am thinking it might that you didn't set the amount of memory the string should take up. For example, you are using a DBCommandWrapper object and wish to set an IN parameter using AddInParameter. You need to set name, type and size. Of course without seeing your code, I am only guessing.
Mike
|
|
|
|
|
Hi i got a task to do, its about a model weiwer.
I want to show .m2 format in a window that is in a form and i have no clue on how to do this.
I am a beginner with C# and i wonder if i could get a hint on how to do or how i can make this to work.
This is one of those files i want to wiew
http://rapidshare.de/files/16168136/DragonOnyxia.m2.html[^]
So what i want to know is how i can read and show this model in a windows form.
Thx and regards;)
//Rickard
-- modified at 8:38 Thursday 23rd March, 2006
[EDIT] I would even pay if someone could help me with this!! [EDIT]
|
|
|
|
|
Well, I cannot view the file here, but I can suggest that if this file is output from a modelling tool then the first place to start is with the vendor. They may have an API that handles the drawing or file access for you. If that doesn't work, they may have a descriptor file that tells you how to process the data inside the file. Then you would have to roll your own file processor and implement the drawing within the Paint method of a panel.
If you are real fancy, you can create your own user control and then all you have to do is expose a property that would get the file to display, and all of the above roll-your-own code is then encapsulated within the control. That makes your final product more flexible.
Hope this helps. That will be $20.
|
|
|
|
|
|
|
I'm doing a custom install action program which is designed to implement the just-copied DLL's in the GAC. The DLL compiles without a problem. The install program compiles without a problem. No warning for either program. Yet when Setup goes to execute my DLL, it says the DLL or one of its' dependants cannot be found. (sigh) I even verified that the install project is packaging the DLL and its debug package correctly and it is. I'm at a loss. Here is the code I've deployed:
using System;
using System.ComponentModel;
using System.Configuration;
using System.Configuration.Install;
using System.Diagnostics;
using System.IO;
namespace RegisterComponent
{
[RunInstaller(true)]
public class RegisterComponent:Installer
{
string dllPath;
#region ..ctor Implementation
public new void Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}
public new void Dispose(bool disposing)
{
if (disposing)
{}
base.Dispose(disposing);
}
#endregion
#region Custom Install Actions
public override void Install(System.Collections.IDictionary stateSaver)
{
try
{
this.dllPath = this.Context.Parameters["parm"];
System.Diagnostics.Trace.WriteLine("Saving the Path of the core components", "RegistrationInstaller");
stateSaver.Add("Path", dllPath);
System.Diagnostics.Trace.WriteLine("Performing the base install", "RegistrationInstaller");
base.Install (stateSaver);
System.Diagnostics.Trace.WriteLine("Creating the file for GAC registration", "RegistrationInstaller");
using (StreamWriter gacutil = File.CreateText(dllPath+"install.cmd") )
{
gacutil.WriteLine("Echo off");
gacutil.WriteLine(@"PATH C:\Winnt\Microsoft.NET\Framework\v1.1.3705");
gacutil.WriteLine(String.Format(@"gacutil /ir FILEPATH {0}\Components\plcorecommon.dll ""Common Methods 1.1""",dllPath));
gacutil.WriteLine(String.Format(@"gacutil /ir FILEPATH {0}\Components\plcoredbclient.dll ""DB Client Methods 1.1""",dllPath));
gacutil.WriteLine(String.Format(@"gacutil /ir FILEPATH {0}\Components\plcoreweb.dll ""Remote Methods""",dllPath));
gacutil.WriteLine(String.Format(@"gacutil /ir FILEPATH {0}\Components\plcorewebdb.dll ""Remote DB Methods""",dllPath));
}
System.Diagnostics.Trace.WriteLine("Starting the process to register the GAC", "RegistrationInstaller");
Process install = Process.Start(String.Concat(dllPath, "install.cmd"));
install.WaitForExit();
install.Close();
System.Diagnostics.Trace.WriteLine("GAC Registration complete.", "RegistrationInstaller");
}
catch (Exception e)
{
string msg = "Error creating/running GAC utility bat file: " + e.Message+System.Environment.NewLine
+ e.StackTrace;
this.Context.LogMessage(msg);
}
}
#endregion
#region Uninstall Actions
public override void Uninstall(System.Collections.IDictionary savedState)
{
try
{
dllPath = savedState["Path"].ToString();
using (StreamWriter gacutil = File.CreateText(dllPath+"install.cmd") )
{
gacutil.WriteLine("Echo off");
gacutil.WriteLine(@"PATH C:\Winnt\Microsoft.NET\Framework\v1.1.3705");
gacutil.WriteLine(String.Format(@"gacutil /ur FILEPATH {0}\Components\plcorecommon.dll ""Common Methods 1.1""",dllPath));
gacutil.WriteLine(String.Format(@"gacutil /ur FILEPATH {0}\Components\plcoredbclient.dll ""DB Client Methods 1.1""",dllPath));
gacutil.WriteLine(String.Format(@"gacutil /ur FILEPATH {0}\Components\plcoreweb.dll ""Remote Methods""",dllPath));
gacutil.WriteLine(String.Format(@"gacutil /ur FILEPATH {0}\Components\plcorewebdb.dll ""Remote DB Methods""",dllPath));
}
Process uninstall = Process.Start( String.Concat(dllPath, "install.cmd") );
uninstall.WaitForExit();
uninstall.Close();
base.Uninstall (savedState);
}
catch (Exception e)
{
string msg = "Error creating/running deregistration bat file: " + e.Message+System.Environment.NewLine
+ e.StackTrace;
this.Context.LogMessage(msg);
base.Uninstall(savedState);
}
}
#endregion
}
}
Help!!
|
|
|
|