|
Is there any need of Win Form in your application ?
You can Create windows Services.
You can Create Two Applications one will call another.
and you can use windows Handles to Hide your Window
|
|
|
|
|
What I need to make is a stealth interface to another application.
My application should run and always check to be sure that the second application is always hidden (Fron both Taskbar and TrayIcon)
|
|
|
|
|
hi.
can you get me a reference about first C# release date and it's good properties about other language?
tanks.
|
|
|
|
|
www.google.com
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 )
|
|
|
|
|
Hello,
We are initiating a migration project from Novell to Windows platform, and part of this project is a conversion of our legacy COBOL programs Novell based Btrieve to C#.Net on Windows Server 2003. I am doing a preliminary investigation as to can it be done and the cost of an automated tool. We are using TYPE5 - MF/ (Micro Focus) COBOL Btrieve version 6.15.451 from Novell, we have approximately 200,000 lines of code that would need to be converted.
Have you done this before, and do you have a product that we can get to do this.
Cheers,
Steve
Steve
e-mail: steve_busy@hotmail.com
|
|
|
|
|
Hi,
I have no Cobol experience, but you might consider a phased transition, using a decreasing
amount of Cobol.NET[^] and an increasing amount of C#.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
busyone1 wrote: Have you done this before
Thankfully, no. I have heard from others that have though
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi,
How can I form my strings to be in two character format?
My strings is on or two characters, if it's two character so nothing should to be happened, if it's one char, a 0 char must be added to it.
with "If" statement I can implement this, but is it possible to define format for strings?
Best wishes
|
|
|
|
|
Yes, with something like:
String.Format("{0}0", mystring).Substring(0,2)
Paul Marfleet
|
|
|
|
|
You can also use string.PadLeft(totalWidth, char), or string.PadRight(totalWidth, char):
string myString = "9";<br />
string newString = myString.PadLeft(2, '0');
So newString would now equal "09".
Or with just the one string:
myString = myString.PadLeft(2, '0');
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
And if it happens to be a hex number you want to show, use a width specifier as
in byte.ToString("X2")
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I have a strnge situation thta I just can't understand, any help or leads would be appreciated
In my data layer I create BindingSource objects:
public abstract class SimpleObjects : System.Data.DataTable
{
protected BindingSource binding = new BindingSource();
protected void Init()
{
sqlAdap.SelectCommand = selectCommand;
sqlAdap.TableMappings.Add(tableMapping);
sqlAdap.FillSchema(this, SchemaType.Mapped);
binding.DataSource = this;
}
public BindingSource Binding
{
get { return binding; }
}
}
I make the BindingSource (binding) object available as a property for all my SimpleObjects for forms to use. Wrks well in most cases but my problem is sometimes the binding goes berzerk when I add DataRows to certain SimpleObjects and it seems to happen when you add rows to child Tables. What happens most of the time is a DataGridView showing a child object will show a row in blue but if I ask the currently binded Object to the BindingSource, it returns me usually the first row. This definitelly happens only if a DataRow was added. Not sure What is happenning and not sure what to do. Any help would be greatly appreciated.
|
|
|
|
|
Is there a way to return the resultset of a stored procedure to a dataset and then programatically "read" the names of each column in the dataset?
So in other words, if a stored procedure returns 3 columns of data(customerID, customerName, and qtyOrdered) and I insert that data into a dataset, how could I set an array to read the names of each column. This way the final array would ultimately look like the following:
array[0] = "customerID";
array[1] = "customerName";
array[2] = "qtyOrdered";
Can this be done?
Thanks.
-Goalie35
|
|
|
|
|
Goalie35 wrote: Is there a way to return the resultset of a stored procedure to a dataset and then programatically "read" the names of each column in the dataset?
DataSets don't have columns. DataSets act as a repository for DataTable objects. It is the DataTable objects that have columns.
Query the Columns collection of your DataTable to get the names of the columns.
Paul Marfleet
|
|
|
|
|
Hi friends
I want writ a code that show a special tabpage when form load. How I can do it?
thanks
|
|
|
|
|
this code selects the second tab on form load:
private void Form1_Load(object sender, EventArgs e)
{
tabControl1.SelectedIndex = 1;
}
|
|
|
|
|
-I am querying MS AD Objects and want to transfer the properties to my own object with as little code as possible.
-I know that there are other ways around this like creating an XLM table to store values but think that might be too much overhead.
-If I cannot do something like what is below I will have to write a line for each propertry I want to retrieve.
-If I simply copy(not sure how to do this, I dont want to keep running the query) the object I will not be able to see a list of available properties in my IDE.:
Any comments or help?
<br />
Class MyClass<br />
{<br />
private string cn;<br />
private string sn;<br />
<br />
public void GetADObjectInfo(string dn)<br />
{<br />
DirectoryEntry entry = new DirectoryEntry("LDAP://"+ dn);<br />
foreach (string strAttrName in entry.Properties.PropertyNames)<br />
{<br />
try<br />
{<br />
this.strAttrName = (string)result.Properties[strAttName][0]; }<br />
catch<br />
{<br />
}<br />
}<br />
}<br />
}<br />
with Regards,
shwa guy
|
|
|
|
|
<br />
public class MyClass<br />
{<br />
private readonly Dictionary<string, string> properties = new Dictionary<string, string>();<br />
<br />
public string this[string name]<br />
{<br />
get { return properties[name]; }<br />
set<br />
{<br />
if (properties.ContainsKey(name))<br />
properties[name] = value;<br />
else<br />
properties.Add(name, value);<br />
}<br />
}<br />
<br />
public void GetADObjectInfo(string dn)<br />
{<br />
DirectoryEntry entry = new DirectoryEntry("LDAP://" + dn);<br />
<br />
foreach (string strAttrName in entry.Properties.PropertyNames)<br />
{<br />
this[strAttrName] = entry.Properties[strAttrName][0] as string;<br />
}<br />
}<br />
}<br />
Then access it like:
<br />
string myString = MyClass["PropertyName"];<br />
But you can't get it strongly typed (MyClass.PropertyName) without doing it one at a time I think.
|
|
|
|
|
I have an application that uses C# as the script language. The C# is compiled on the fly from within the application and executed.
I would like to be able to allow the user to debug their C# code from within my application.
I read an article somewhere on this a year or two ago and I can't fint it any more and I can't remember where.
I remember that it was just a slight variation on the standard CodeDom Compile-Load sequence. Searched MSDN and several other sites, but no luck.
Anyone know the answer?
|
|
|
|
|
This[^] might help you with some information.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
This[^] forum is also interesting.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks, the article does not apply, but the forum looks interesting.
|
|
|
|
|
When I bind a Datagrid to an arraylist (the items are strings), only one column
appears and it only shows me the lengths of the strings
Can anyone help me?
Thanks
-- modified at 14:41 Wednesday 31st October, 2007
After reading this message you will realize that you have wasted 5 seconds of your life
|
|
|
|
|
Use List<string> instead.
|
|
|
|
|
Thanks, but I need to use the Arraylist
Have you tried binding an arraylist to a datagrid?
I am using Microsoft Visual Studio 7.1
Thanks for the reply
|
|
|
|