|
Also asking for code won't get your very far. If you don't know socket programming, then go and look at a tutorial. If you don't understand something, or if something doesn't work, then you can ask for help in the appropriate forum.
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
If you need it in C, you are in the wrong place. This is for C#
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
thank you for ur concern........
Please help me because i have to submit my project.....
if you are interested i ll give you the details of the project..
please reply me as soon as posible....
I cant post it in C#..
I am sorry
sagar
|
|
|
|
|
Hello Form
I know there are many ways to send parameters form a parent to a child via constructer etc. but how can I get the value back.
I have a grid with the data (not bound to a data base), and by clicking on a button a new from opens where the user can modify the data, how can I get the data back so I can display the modified data on the grid?
Thanks
|
|
|
|
|
Create an event on a child form and register the listener on the parent. Also, if you pass an object to the child form the data will be retained by the two. Thus, instead of creating an event, you would only need to listen to the child form's closed event.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
thanks,
i am new at this, do you have any small example how to pass an object, update it in the child form, and get the updated values in the parent form
Thanks Again
|
|
|
|
|
I retrevied the Images from Database And Display In datalist.
I used Two Buttons(prev and Next).
Here I place one image control at the top.
At Bottom In datalist All the Images is displaying.
At first in that image control first image will be displaying.
if we click next button then next image will be displayed.
if we click previous button then previous image will be displayed.
Here this buttons is not working.please Send the code In Detail Immediatly.
Its Urgent.
Thanking You,
CWAHHHHHH
|
|
|
|
|
I found this in some code I'm working on:
class MyClass
{
private MyObject obj;
public MyClass()
{
obj = new global::MyObject();
}
}
What does the "global:: " do?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: What does the "global::" do?
Namespaces and class names and such can be resolved relatively from what is in the using statements. Prefixing a type name with global:: forces the compiler to start from the top of the namespace tree.
using System;
...
Console.WriteLine();
using System;
using MyConsoleStuff;
Console.WriteLine();
System.Console.WriteLine();
global::System.Console.WriteLine();
|
|
|
|
|
Colin Angus Mackay wrote: global::
Is this new to .NET 2.0 ?
|
|
|
|
|
N a v a n e e t h wrote: Is this new to .NET 2.0 ?
I think it is although I'm not 100% sure.
|
|
|
|
|
I want to encapsolate my code no one can see the code even he get my source code(project soulution)
merwa
|
|
|
|
|
And what about you? How will you read/write/edit your own source code?
|
|
|
|
|
|
Probably the best way to do it is with Whitespace. Most people will open the source code file and see nothing. You will see a perfectly formatted program ready to do your bidding!
Hogan
-- modified at 15:57 Tuesday 6th November, 2007
|
|
|
|
|
What you're asking is insane. You can obsfucate the code inside the exe, but with .NET people will always be able to read it. To say people can't see it if they have it, is just plain ridiculous.
You *could* write some sort of add in that encrypts the source code as it's saved and decrypts it into the IDE, but why bother ?
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 )
|
|
|
|
|
You can obfuscate your executable code, but you cannot secure your source code from others seeing it.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I developed a windows application using C# and I want to license it to the buyer using a serial number, like any software one buys, but I don’t know how to do it. Can anyone help me on this?
|
|
|
|
|
There are third party solutions, it depends how far you want to go. Do you want to generate licenses, or have a single key ? The easiest way to generate them is have a name/key pair, so the key is generated from the name.
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 )
|
|
|
|
|
Below is my code and everytime I try to create a Folder it gives me an error which is in the Exception"00810". So, I dont know where the error lies?? Can someone please help?? Thanks.
private void btnCreate_Click(object sender, EventArgs e)
{
try
{
if (tvFavorites.SelectedNode.Tag == null)
{
OleDbCommand insertfolder = new OleDbCommand("insert into favFolders (folder_name,folder_parent) values('" + txtFolderName.Text + "'," + tvFavorites.SelectedNode.Name + ") ", dbProfiles);
if (dbProfiles.State == ConnectionState.Closed)
dbProfiles.Open();
insertfolder.ExecuteNonQuery();
string folder_id = "";
insertfolder.CommandText = "select max(folder_id) from favFolders";
folder_id = insertfolder.ExecuteScalar().ToString();
TreeNode tn = new TreeNode();
tn.Name = folder_id;
tn.Text = txtFolderName.Text;
tvFavorites.SelectedNode.Nodes.Add(tn);
dbProfiles.Close();
}
else
{
OleDbCommand insertfolder = new OleDbCommand("insert into favFolders (folder_name,folder_parent) values('" + txtFolderName.Text + "'," + tvFavorites.SelectedNode.Parent.Name + ") ", dbProfiles);
if (dbProfiles.State == ConnectionState.Closed)
dbProfiles.Open();
insertfolder.ExecuteNonQuery();
string folder_id = "";
insertfolder.CommandText = "select max(folder_id) from favFolders";
folder_id = insertfolder.ExecuteScalar().ToString();
TreeNode tn = new TreeNode();
tn.Name = folder_id;
tn.Text = txtFolderName.Text;
tvFavorites.SelectedNode.Parent.Nodes.Add(tn);
dbProfiles.Close();
}
txtFolderName.Text = "";
lblFolderName.Visible = false;
txtFolderName.Visible = false;
btnCreate.Visible = false;
btnCancel.Visible = false;
}
catch (Exception ex)
{
func.ErrorReporter(ex, "008010");
}
}
|
|
|
|
|
What line gives the error ? What do you mean by 'create folder', how does this code access the file system ?
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 )
|
|
|
|
|
btnCreate_Click event creates or supposed to create a Folder. But everytime I click on btnCreate Button to create a button it gives me an error message "Object not set to an instance of an object" The file system is accessed through Access Database
|
|
|
|
|
Hi,
I am running my desktop application in a machine wich its regional settings is configured to English - United States(I cant change this) and I am using a DateTimePicker with "dd/MM/yy HH:mm:ss" as the CustomFormat and Custom as the format.
In the design mode I can see the value of the datetimepicker as the format I specified but when I execute my app it comes as "MM/dd/yy HH:mm:ss".
any ideas ?
JMaior
|
|
|
|
|
Hi,
How can I hide a exe file from user in my project.(setup file of my project in CD)?
My mean of hide IS NOT invisible, in fact in accessible. because I want to prevent my users do reverse engineering on my exe file.
what is your solution?
Best wishes
|
|
|
|
|
Try to Obfsucate your code. That is the best way in C#. They will always be able to get to the code. The goal is to make it very hard to read.
Several companies offer this software.
Hogan
|
|
|
|