|
Hi all,
I need to display two sets of records.
The second one should come under the first set of records and also second one uses the first one's unique id.
for example,
My table looks like this.
link_id, name, link, category
I need to display a datalist with the category and the links that belong to that category.
So, How to Do it?.
thanks in advance.
|
|
|
|
|
Hey!
I am about to make an online game.
I want the game to be runned in a HTML page, and it needs to be an active page(ASP.NET is not the solution).
JAVA and Flash whould probley work, but i realy want to work with C#, so is it posible to use ActivX to display a Program made in C# right in a HTML page not just C# controls?
And if so, where can i find information about this?
//Jimmy
|
|
|
|
|
I can tell you that it is possible... I have done it before, but I can not seem to find the information I had on it, sorry.
Gooky
|
|
|
|
|
Good to Know but sad that you didnt find the information about it. Mayby some one else in here knows how to do ?
//Jimmy
|
|
|
|
|
Snowjim wrote:
so is it posible to use ActivX to display a Program made in C# right in a HTML page not just C# controls?
It's important to understand that ActiveX and .NET are two entirely different and distinct technologies. You could embed an ActiveX control within an application written in C# targetting the .NET Framework by wrapping your control using the AxHost class, however that's not really what your asking. You can also create href executables that download the assemblies and store them in an assembly cache on the local machine. You must be aware of code access security when trying to execute an href executable however, there is information about this on CP and MSDN. Chris Sells has an example of an href executable on his site at sellsbrothers.com[^].
- Nick Parker My Blog | My Articles
|
|
|
|
|
Okay, but is there any easy way to get my C# programs to work Active in a HTML document? it have to be an activa page.
As i mention before i know that Java and Flash is perfect to this job, but i reayl like C# and want to use that instead.
//Jimmy
|
|
|
|
|
i wanna write a recording program in c# so where can i begin ?
what shoud i study ?
thanks...
|
|
|
|
|
|
Aside from what mav said, there is also audio support built into DirextX. Check out the list of things you can do with DirectX audio here[^].
- Nick Parker My Blog | My Articles
|
|
|
|
|
when i execute the following Query in Query Analyzer,it return 61 Rows.But it return 91 Rows in DataSet.
Query:
"set dateformat dmy select distinct T.DepNo,H.TranNo, H.TranType, T.ChqDepNo, H.TranRef, H.TranDate, T.BankCcy, T.ExRate, T.LAppAmt, T.AppAmt, H.IsReconciliation from tblCashHdr H,tblMultipleTender T where H.BankCode= T.BankCode and T.BankAcct='121105' and H.MerchCode='001' and H.TranDate <='13/09/2004' and H.TranDate>'01/01/04' order by H.TranDate"
Pls Help me,
Kyaw Soe Khaing
|
|
|
|
|
I'd say your date comparisons are interpreted differently. Are you sure your "set dateformat dmy" is handled correctly in your program?
mav
|
|
|
|
|
Hi,
is there any possibility to call a method by Name?
Example:
<br />
private void Run()<br />
{<br />
string vMethod = "Form1_Close";<br />
string vParam1 = "";<br />
string vParam2 = "System.EventArgs.Empty";<br />
<br />
RunMethod(vMethod,vParam1,vParam2);<br />
}<br />
<br />
public void RunMethod(string AMethodName,params string[] AParameter)<br />
{<br />
}<br />
<br />
|
|
|
|
|
You'll have to use reflection for that. You need a System.Reflection.MethodInfo object of the method in question (can be retrieved using Type.GetMethod() ) and then call Invoke() on the result.
Regards,
mav
|
|
|
|
|
As mav pointed out, you will need to use reflection. Here is a quick example to get you going:
MethodInfo mi = typeof(Form).GetMethod("Close",
BindingFlags.Instance | BindingFlags.Public);
if(mi != null)
mi.Invoke(this, null);
- Nick Parker My Blog | My Articles
|
|
|
|
|
Why do I get this error???
currency.cpp(72) : fatal error C1004: unexpected end of file found
/* Currency equivalence to the Dollar*/
#include <stdio.h>
float Australian_Dollar; //Australian Dollar
float Euro; //Euro Dollar
float British_Pound; //British_Pound Dollar
float Japanese_Yen; //Japanese_Yen Dollar
float Swiss_Franc; //Swiss_Franc Dollar
/* Dollar conversion */
int main(void)
{
/* 13 */
int menunum; /*Defines the menunum as an integer for the scanf */
int final1;
float count;
{
while (final1 != 0)
printf (" Select a currency by entering a the number beside the currency. \n\n");
printf(" Enter q to quit.\n\n");
printf (" 1. Australian Dollar \n");
printf (" 2. Euro \n");
printf (" 3. British Pound \n");
printf (" 4. Japanese Yen \n");
printf (" 5. Swiss Franc \n"); /* 28 */
scanf("%f", &menunum); /* 30 Users enters the number on the menu bar */
if (menunum == 1){
printf("%f\n", Australian_Dollar);
} /* Australian_Dollar */
else if (menunum == 2) {
printf("%f\n", Euro);
}
else if (menunum == 3) {
printf("%f\n", British_Pound);
} /* 41 British_Pound */
else if (menunum == 4) {
printf("%f\n", Japanese_Yen);
} /* Japanese_Yen */
else if (menunum == 5) {
printf("%f\n", Swiss_Franc);
} /* 51 Swiss_Franc */
else {
printf("Choose another or quit.\n");
}
Australian_Dollar = 1.43; // 50 Define Australian dollar
Euro = 0.83; // Define Euro currency
British_Pound = 0.55; // Define British Pound
Japanese_Yen = 110.9; // Define Janpanese Yen
Swiss_Franc = 1.28; // Define Swiss Franc
scanf("%f", &final1); /* 30 Users enters the number on the menu bar */
return 0;
}
|
|
|
|
|
1.) Why do you ask a CPP question in the C# forum?
2.) Why don't you give a file to include at the very start of your code?
Mav
|
|
|
|
|
|
I have problem in crystal report,exception text below:
************** Exception Text **************
System.IO.FileLoadException: The located assembly's manifest definition with name 'CrystalDecisions.Shared' does not match the assembly reference.
File name: "CrystalDecisions.Shared"
at CRTest.Viewer..ctor(String reportFilePath, String param1)
at CRTest.ParamForm.okBt_Click(Object sender, EventArgs e) in d:\myprogram\reporttest\crtest\paramform.cs:line 92
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = C:\Program Files\FE-Creation\CRTest\
LOG: Initial PrivatePath = NULL
Calling assembly : CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///C:/Program Files/FE-Creation/CRTest/CrystalDecisions.Shared.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number
////////////
Please tell me about solve this problem.
Thanks.
สวัสดีครับ
|
|
|
|
|
It looks like your app referenced a version of Crystal Reports (9.1.5000.0) and the version of Crystal Reports that's installed on the machine your running your app is different. You must have the same version of the .DLL's on the target machine as what you developed your app against.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I create a object which inherits from TextBox class,I hope no contextMenu display when click mouse right button in the new object. How to cancel the event or cancel the contextMenu !
|
|
|
|
|
Create a new ContextMenu without any items and assign it as the ContextMenu for your TextBox like this.
private void Form1_Load(object sender, System.EventArgs e)<br />
{<br />
ContextMenu cm = new ContextMenu();<br />
myTextBox1.ContextMenu = cm;<br />
}
|
|
|
|
|
Actually it would be better to do this within the class, that way you don't have to worry about it if you want to do use it again somewhere else.
public class TextBoxEx : TextBox
{
ContextMenu cm = null;
public TextBoxEx()
{
cm = new ContextMenu();
base.ContextMenu = cm;
}
}
- Nick Parker My Blog | My Articles
|
|
|
|
|
Anyone know how to get the Full Path of a process in the Process List
i Tried getting it's start info and .WorkingDirectory but it was all blank.
Sample:
Process[] xi= Process.GetProcessesByName(proc);
ListViewItem fo = applist.Items.Add(xi[0].ProcessName.ToString());
string dir = xi[0].StartInfo.WorkingDirectory.ToString() + xi[0].ProcessName.ToString() + ".exe";
|
|
|
|
|
Is there anyway to programmatically limit an application to one cpu?
I have a third party tool that dies on multiprocessor computers but it works great on one processor.
Any ideas?
|
|
|
|
|
Is your application multithreaded? It could be that your code is not actually thread-safe, but you haven't actually tested it enough on uniprocessor machines to see it fail.
|
|
|
|