|
Yes i tried this one also but child form not getting focus in panel
|
|
|
|
|
Also note that if there is text box on child form and in this scnerio if you click text box you can type text in it but cannot select the text in textbox by simply mouse selection(draging mouse).
|
|
|
|
|
I'm trying to write a dll in C#, but when I try to register it with regsvr32 I get the error message: "xyz.dll was loaded but dllregisterserver entry point was not found"
Thanks for any help
|
|
|
|
|
Into AssemblyInfo.cs ( or elsewhere put this piece of code ).
[assembly: ComVisible(true)]<br />
<br />
[assembly: Guid("b8e616b6-9213-4103-af65-8965422566b3")]
Geniality is in simplicity.
|
|
|
|
|
this is already done, but still isn't working
|
|
|
|
|
Are you sure, the "ComVisible" attribute are set on "true"? Default value is "false".
Maybe, this KB will help you: http://support.microsoft.com/?scid=kb%3Ben-us%3B249873&x=11&y=9
Geniality is in simplicity.
|
|
|
|
|
This is the code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Management;
using System.Runtime.InteropServices;
namespace register
{
public interface reg_inter
{
string procId();
}
[ComVisible(true)]
public class reg:reg_inter
{
public reg()
{
}
public string procId()
{
ManagementObjectSearcher search =
new ManagementObjectSearcher("select * from win32_processor");
foreach (ManagementObject wmi in search.Get())
{
PropertyDataCollection prC = wmi.Properties;
foreach (PropertyData pr in prC)
{
if (pr.Name == "ProcessorId")
{
return pr.Value.ToString();
}
}
}
return "0";
}
}
}
and this is assemblyinfo.cs:
.
.
.
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(true)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3ea648c1-75cf-4d96-9978-d615378e027c")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Where am I wrong?
|
|
|
|
|
OleDbConnection connect=new OleDbConnection();
connect.ConnectionString="Provider=DB2OLEDB; initial catalog=SAMPLE;integrated security=SSPI,user id=db2admin;password=eugene09";
connect.Open();
OleDbCommand cmd_save =new OleDbCommand("INSERT INTO test(name,year,course)"+"VALUES("+"'"+textBox1.Text+"'"+","+"'"+textBox2.Text+"'"+","+"'"+textBox3.Text+"'"+")",connect);
int intRow=cmd_save.ExecuteNonQuery();
if(intRow>0)
{
MessageBox.Show("Record added");
}
connect.Close();
this is a program i created adding a record in the database but their is no error but an exception, saying " DB2OLEDB is not existing in the local machine."
i think the problem is in the insert command. thanks for all the help!
|
|
|
|
|
icesha wrote: an exception, saying " DB2OLEDB is not existing in the local machine."
i think the problem is in the insert command. thanks for all the help!
The error message (incorrectly copied as it is) suggests the connection in the source of the problem. Have you installed DB2 on your local machine?
|
|
|
|
|
How to create a simple alarm application in C#..
|
|
|
|
|
iamdking wrote: How to create a simple alarm application in C#..
Take your problem, then break it in to smaller parts then implement the smaller parts. If the smaller parts are still too big then break it down further until you get to a point where you can create a "simple alarm application".
Now, we can help on specific elements of your application, but we cannot help with a whole application in a forum post.
Also, what do you mean by "a simple alarm"?
The following code could be perceived to be "a simple alarm":
Thread.Sleep(60000);
Console.WriteLine("Ding! Ding! Ding! Ding!");
|
|
|
|
|
Thanks for d information..
Actulally, I developed a window application in c# in which i have to show a clock and facility to set and ring an alarm on specified time..
|
|
|
|
|
iamdking wrote: I developed
Past tense - so you have finished? (I'll assume you got your tenses confused, otherwise you wouldn't be making this post)
iamdking wrote: i have to show a clock and facility to set and ring an alarm on specified time..
Okay - then break the problem down into smaller parts.
Inputs: current time, alarm time
Outputs: At specified time "ring an alarm"
* The current time can be got from DateTime.Now
* The alarm time will have to be got from somewhere: Where? User input, config file, database, somewhere on the web??
* What do you mean by "ring an alarm"?
|
|
|
|
|
Hi all,
Does anyone know how to import online published Schema in to another schema in Biztalk 2006?
Thanks
|
|
|
|
|
Well, you could use a string builder to iterate over the second group of strings and build it into a single string. There's no automatic way to do it, you need to do it yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I hate these drive by OP deletions.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Is there a component/addin for VS that provides incremental searching/filtering of components in ToolBox.
For example I'm designing a form and need to place a button control.
I would then type letters (b, u, t, t, ... ) inside search/filter box and all component classes matching entered characters would be filtered inside ToolBox or displayed within a DropDown window.
Thanks.
|
|
|
|
|
Hi, i've got a problem when using the localization possibilities of .NET.
I'm using sharpDevelop2 and i created two language files (en-US and fr-FR) to match the two languages. When i compile the soft, it work whell but the dll files created from the resx files are in two folders named fr-FR and en-US directly on the program root.
I'm searching for a way to create a global 'lang' folder in whitch i will put the languages folder.
I tried to put the resx files in a 'lang' folder created in my solution but the compilation faild because the resx files are dependent of the MainForm.cs and in this case it does not find this file.
Is there any way to do that in sharpdevelop ? If yes could you explain ?
or sould i use VS ?
I hope it's clear, thank for help.
|
|
|
|
|
AFAIK you cannot do what you want to (no matter which IDE you use) since the framework has a fix algorithm to look for those satellite assemblies.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
OK so if i understand, if i want to localize my application for 100 languages, the compilation will create 100 directories directly in the program root !
I've never seen a program with such directory architecture !! So if i want to put my language dll files in an other directory, i have to do it by hands, could you give me a good solution to do that ?
thanks.
|
|
|
|
|
Maybe this (ResourceManager.CreateFileBasedResourceManager ) can help you, but I'm not sure as I never needed to circumvent the standard procedure. If not, search the docs starting from the System.Resources namespace.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
XimpleWare is proud to announce the release of version 2.0 of
VTD-XML, the next generation XML parser/indexer. The new
features introduced in this version are:
* VTD+XML version 1.0: the world's first true native XML index
that is simple, general-purpose and back-compatible with XML.
* NodeRecorder Class that saves VTDNav's cursor location for
later sequential access.
* Overwrite capability
* Lexically comparisons between VTD and strings
To download the software, please go to
http://sourceforge.net/project/showfiles.php?group_id=110612
To read the latest benchmark report please go to
http://vtd-xml.sf.net/benchmark1.html
To get the latest API overview
http://www.ximpleware.com/vtd-xml_intro.pdf
|
|
|
|
|
When the value of CurrentCell in DataGri changed, how do we get the value before it is modified?
Eagally waiting online!
|
|
|
|
|
To get original row, include the original value
((DataRowView)DataGrid.BindingContext[DataSource].Current).Row["Column",System.Data.DataRowVersion.Original]
|
|
|
|
|
hi,
i am creating a editor in RichtextBox and I want to change the cursor Background color.
where ever i scrolldown my cursor the selected line color should change.
PLs help me
Thank you
Prasad
|
|
|
|