|
Hi! Here's the problem:
I have an exe (no source code) wish for it to run only when it finds a valid license on the pc. Therefore I wish to modify it somehow (wrap,modify, etc) so that it will check for certain criterii such as hardware id before launching itself.
What I've found out so far:
I know I can create another exe that embeds the exe using Visual Studio. However, running the exe from memory only applies to .Net exe. I wish to cover non .Net too. And I know that running non .Net exe from memory is very hard.
Question:
How do i do this? Is there a way to modify the exe so that I can insert checking codes before the exe launches normally?
Thanks!
"Long is the way, and hard, that out of hell leads up to light."
|
|
|
|
|
I need to use the FormPrinting, the example that I have use the HorizontalAlignment, but in my particular case I need that the Alignment is VERTICAL. I tried to fix it, clearing the code of lines where appear this type of Alignment, but I can not see results. Thanks for the help!
|
|
|
|
|
hi
i have created controls in asp.net form
now i want use them in a for loop how do i do it..
which is created statically
example
there are three linkbutton1,linkbutton2,linkbutton3
now i want to refer three of them in a for loop
for(//some condition)
{
linkbutton+i.text=":Hi how r u";
}
threee linkbuttons text should become the same statement which is give above
how can i do it
bye bye
|
|
|
|
|
try this:
for(//some condition)
{
linkbuttons lnkBTN = (linkbuttons)this.findcontrol("linkbutton"+i.ToString());
lnkBTN.Text = "anything";
}
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
|
i am getting an exception saying object reference is not found i created an object for that linkbutton using new keyword
|
|
|
|
|
Hello,
I prevere the 'as' operator for casting, as it will never throw an exception!
linkbutton actbutton = controlfound as linkbutton;
if(actbutton!=null)
{
actbutton.SpecialProperty = "wrtferc";
}
If you only whant to access a member of control and just whant to know if it's typof, there would be no need for the casting.
if(controlfound is linkbutton)
{
controlfound.Text = "hnvkjhfdjkv";
}
All the best,
Martin
|
|
|
|
|
doing this all the linkbuttons will get the same text right
i want to assign different text using arrays...
in each of the linkbutton
|
|
|
|
|
please show the code snipped!
|
|
|
|
|
for (int k = 0; k < outlet_arr.Length; k++)
{
l.Text = "kalyan";
l = (LinkButton)this.FindControl("LinkButton23");
l.Text = outlet_arr[k].ToString();
j++;
}
|
|
|
|
|
kalyan_2416 wrote: this.FindControl("LinkButton23");
what is that control that contains those LinkButtons ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
|
try to put them in a panel and then.....
pnlName.FindControl......
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Hello,
Like somebody said befor, what is FindControl doing? (please show code)
But apard from that:
kalyan_2416 wrote: (LinkButton)this.FindControl
This will throw an exception if the control which is returned from the method, is not typof LinkButton.
Therefor I suggested the 'as' operator.
LinkButton l = this.FindControl("blabla") as LinkButton;
if(l!=null)
{
}
else
{
}
All the best,
Martin
|
|
|
|
|
thing is like is this
i am using masterpages so
my control is in contentplaceholder
|
|
|
|
|
i did it
ContentPlaceHolder cMainContent = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1");
for (int k = 0; k < outlet_arr.Length; k++)
{
//l.Text = "kalyan";
LinkButton l = (LinkButton)cMainContent.FindControl("LinkButton"+j.ToString()) as LinkButton;
l.Text = outlet_arr[k].ToString();
j++;
}
|
|
|
|
|
Hello,
kalyan_2416 wrote: (LinkButton)cMainContent.FindControl("LinkButton"+j.ToString()) as LinkButton;
You don't need the additional casting "(LinkButton)".
And you should make the !=null check like I said before!
LinkButton l = cMainContent.FindControl("LinkButton"+j.ToString()) as LinkButton;
if(l!=null)
{
l.Text = outlet_arr[k].ToString();
j++;
}
All the best,
Martin
|
|
|
|
|
Hi guys,
What is the equivalent keyword in C# for chr(13) using in Asp ?
Thanks & Regards
Sengottuvelu
|
|
|
|
|
One of many ways:
((char)13)
|
|
|
|
|
Hi,
I have a requirement where I want to create templates for emails.
So, I want to know how can I export mail contents to word document.
Can any one help me.
Thanks in Advance.
Bhanu
|
|
|
|
|
To use Outlook and Word you need to use the MS Office Interop capabilities. These give direct access to the functionality of Office apps from your .Net application. Here[^] and here[^] are some MSDN articles that show you how to use them.
|
|
|
|
|
Dear All,
Please let me know how can I edit data in the Datagridview Combobox column. I have some values in the combox column, now I want to edit them.
Thanx
|
|
|
|
|
Hi,
We are selling Handheld Terminals in the company where I work.
The Handheld terminals are using Microsoft ActiveSync to communicate using USB.
But we have some problems, that first time we connect the Handheld Terminal (Which is a Datalogic barcode reader with Windows CE 5.0), Windows XP can not find the driver wceusbsh.sys, and therefor we need to "force" it to use the driver from the ActiveSync directory\drivers.
When we have forced it to use the driver from the directory we can connect the handheld terminal in the same USB port without any problems.
Is it possible to develop some kind of program that can tell the Operating System (XP,Win2k etc)
that it has to use that driver, because we have a lot of costumers asking about what we can do about it. And Datalogic can not do anything (They say).
Hope someone has an idea to solve this problem
|
|
|
|
|
Hi,
Well i'm a newbie to visual studio 05 attempting to generate a report in Visual C#.Net that would be accessible in SQL Server 05.
But i've got no clues on how to make progress in the same regrd .
Thatz why i'm looking for some ready reference!
Any reference material / help in the same regard will be of great help.
Do reply soon !!!!!!
Its now or never !!!!
|
|
|
|
|
Hello All,
I have a chunk of code which needs to be re written in to C#.
The challenge is I want to port this code blindly.
Is there any utility/ tool which can automate the process of doing this or I have to port this code the hard and real way, I mean understanding the progress code and then rewriting it to C#.
Please suggest.
Thanks and regards.
Amar.
|
|
|
|