|
I get the following error:
{"Could not load file or assembly 'TestAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"TestAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"}
reference of interface.dll is added in Testdll. Testdll can not be compiled without the reference
Gurpreet
|
|
|
|
|
KaurGurpreet wrote: How do I load an Assembly dynamically in a NEW appdomain?
Just you would normally, but you need to call it from within that AppDomain.
|
|
|
|
|
I have set up the tab order of the textboxes on windows form.
When I tab out of one textbox to go to the next one, I would like to do a calculation.
i.e. textbox1 has a value of 3
tabbing out of textbox1 I would like to go to textbox 2 and have a figure in it
i.e. textbox2 = 5
How is this tabbing done please?
Thanks
|
|
|
|
|
Do your calculations in the LostFocus or Leave event of your textbox.
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi all,
How can I perform indentation in hierachical group for text field only in Crystal Report 9.1.5 for Visual Studio .Net 2003 (WinForms)?
Thanks in advance!
-- modified at 2:35 Sunday 19th February, 2006
|
|
|
|
|
Hi,
Anybody has any suggestions?
|
|
|
|
|
can anyone suggest a good website for grapjics programming with C#. i want to create a game using C#. my graphics need would be primarily restrcited to landscape creation.
|
|
|
|
|
First decide what will you use.
DirectX or OpenGL?
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
The problem with my program right now is that it will be ran on pIII-400's. When I switch language from english to chinese in my program, the program blanks out all the pictures, and takes a while to switch language. (ie, It looks like its frozen for a bit)
Is there any way to make it so that it finishes changing the stuff in the background first, and then update the visual, so that it doesnt loo likek its frozen? It seems like its busy updating stuff in the background thats why the UI doesnt get the response time.
|
|
|
|
|
All the GUI proccessing is done in one thread.
If you have any operations that are not realeted to the GUI, then you can create a new thread and do the proccessiin there.
That way the GUI will function normally.
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi ,
I am working in C# 2.0 Windows Application . I would like to know how to send data [ Graph , Table ] directly to the printer.
I will have a form to get the user options. say for example 1. Graph 2. Table Values
if user selects Opt 1 then Graph alone should be sent to printer viceversa
Any help will be highly appreciated.
Regards
Vijaykishan
|
|
|
|
|
how to execute a text file, which contains sql script of a database.
I need to execute this file in my code.. i tried this function:
private void ExecSqlFileProcess(String fileName)
{
if (! File.Exists(fileName))
{
MessageBox.Show ("Specified .SQL File Not Found.","Net Fare Database Upgrade Tool",MessageBoxButtons.OK);
return;
}
using (StreamReader sr = new StreamReader(fileName))
{
String line,line1;
String sqlLine= "" ;
while ((line = sr.ReadLine()) != null)
{
line1 = line.Trim();
int compareResult = String.Compare(line1, "GO", true, CultureInfo.InvariantCulture);
if(compareResult != 0)
sqlLine += line + Environment.NewLine ;
//sqlLine += line + c.ToString() ;
else
{
if(sqlLine != "")
{
try
{
int i = SqlHelper.ExecuteNonQuery(connectionString,CommandType.Text,"USE "+DatabaseName+" "+sqlLine);
}
catch(Exception Ex)
{
MessageBox.Show (Ex.Message.ToString(),"Net Fare Database Upgrade Tool",MessageBoxButtons.OK ,MessageBoxIcon.Error );;
sqlLine = "";
}
}
sqlLine = "";
}
}//While
}//Using
}
but i got the following errors for all stored procedure scripts..but it dropped the stored procedure..it only did not create it..following error comes:
'Create Procedure' must be first statement in the query batch.
Must declare variable @IATACodeName, @IATADescription..etc..
|
|
|
|
|
|
Use the combo boxes SelectedIndexChanged event.
private void mycombobox_SelectedIndexChanged(object sender, System.EventARgs e)<br />
{<br />
\\Code Here<br />
}
|
|
|
|
|
I am having a problem with this method:
private void UniversalRegEx(string szMyRegEx, string szWhatFor)
{
//The universal RegEx
//Set it (Query, What it will put as a heading)
Regex rxFind = new Regex((szMyRegEx), RegexOptions.IgnoreCase);
MatchCollection matches = rxFind.Matches(szTibiaProfile);
foreach(Match m in matches)
{
string szTemp = szWhatFor + ": {0}", m.Groups["mmatch"];
WriteLookup(szTemp);
}
return;
}
See the problem? It says this is wrong:
string szTemp = szWhatFor + ": {0}", m.Groups["mmatch"];
Thanks for the help.
Example of passed data:
//Get Character Name
UniversalRegEx(">Name <mmatch>[a-z]+)", "Name");
|
|
|
|
|
replace this line
string szTemp = szWhatFor + ": {0}", m.Groups["mmatch"];
with
string szTemp = szWhatFor + ": "+ m.Groups["mmatch"];
|
|
|
|
|
That works now, thanks. But what did I do wrong with the way I set it up? In my console app that works.
|
|
|
|
|
In your console app, this is a valid function call:
Console.WriteLine("Here is my string: {0}", myString);
but without this function:
"Here is my string: {0}", myString; //this is not valid syntax.
If you want to define a string like this, use the String.Format function.
String.Format("Here is my string: {0}", myString); //this is valid
Otherwise, use proper syntax:
"Here is my string: " + myString; //this is valid syntax.
|
|
|
|
|
Oh, thanks alot. Wasn't sure if it was a reference I needed or what. Thanks alot man.
|
|
|
|
|
Hi,
I need to display some DirectDraw surface (.dds) files in my application (Not my choice, that's the stuff I've been given). Is this possible without using DirectX? If not, can I somehow use DirectX to load the dds into a PictureBox?
Thanks.
|
|
|
|
|
You can initialize DirectX to draw into any control you want.
If you are looking for a quick way to do some DX you should look at this: http://www.3dlevel.com/gamedev/news.php
this is a game engine build with VB.NET and uses managed DX. Very simple, takes only a few lines to show a sprite or whatever...
So if you don't want to learn all the DX stuff this is defenitly the way to go.
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hello i have a toolbar in my application and i have visual styles enabled. when i enabled visual styles it wont show the icons in my toolbar otherwise it when visual styles arent enabled it shows the icons. Is there a way to have visual styles enabled and to show my toolbar icons
Thanks
|
|
|
|
|
This is caused by a bug in the .NET framework. You can work around it by calling Application.DoEvents() after enabling visual styles like this...
static void Main()
{
Application.EnableVisualStyles();
<code>Application.DoEvents();</code>
Application.Run(new MyForm());
}
-- modified at 23:35 Tuesday 14th February, 2006
|
|
|
|
|
I am working on a scanning project. The scanners I am working with do not support TWAIN job control. We are wanting to fake job control by using solid black pages as our job control pages. The TWAIN software I am using gives me a DIB per page that is scanned. I want to inspect the DIB during scanning and start a new image when I find a solid black image. I have look around but can't find anything that does this. I was wondering if anybody had a suggestion. Please let me know.
Thanks,
Dave
|
|
|
|
|
Hi,
I've built an xml schema hierarchy where, for instance, {path, file} is a schema type and subsequently {params_1, params_2, ...} each import a {path, file} type. I include code below.
My question is this: How to resolve use of namespaces and hierarchical schema design with C# xml consumption.
From C# I do this:
reader = new XmlTextReader(config_filename);
xmldoc = new XmlDocument();
xmldoc.Load(reader);
Then this:
XmlNode n = doc.SelectSingleNode( "session/gateway/file" )
This instruction returns 'null'. I believe its because the xml doc reads <ns1:file> rather than <file>. However, I want <ns1:file> (or whatever namespace) because I want to have reusable schema patterns.
(Note doc.SelectSingleNode( "session/gateway" ) and ...( "session" ) do work.)
The reason I'm doing SelectSingleNode( x ) is to populate a HashTable with specific values possibly available in the xml.
Finally, here's a snippet of my xml doc. Thanks in advance.
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns:ns1="foo" xmlns:ns2="bar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="baz.xsd">
<gateway>
<ns1:path>(/ns1:path>
<ns1:file>"gateway.xml"</ns1:file>
</gateway>
<strats>
<ns1:path></ns1:path>
<ns1:file>"strats.xml"</ns1:file>
</strats>
<log>
<ns1:path></ns1:path>
<ns1:file>"session.log"</ns1:file>
</log>
</session>
-- modified at 7:17 Wednesday 15th February, 2006
|
|
|
|