|
Hi all,
We developed a product. We have to provide trail period(10days) for that product.
For that we tried in the following way.
At installation of our product we are storing the 10th day date from installation date into system registry.
and we are checking date every time when user logins
if(DateTime.Now<=registrydate)
//Continue
else
//Close the application
MessageBox.Show("The trail period is completed");
Application.Exit();
This works fine until user changes System DateTime.
I wants to avoid that also, even though if user changes System date it should work only for 10days.
Plz suggest me how to do that.
Thanks in advance...
|
|
|
|
|
Keep track of the date your application was last accessed. If the date is less than last time application was opened, you can calculate actual trial period remaining.
What if the user just deletes the registry entry and re installs the application? This will make your application like a free version.
You can also try out Trial Creator[^] If you wish to.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
What if the user just deletes the registry entry and re installs the application? This will make your application like a free version.
He have to enter the key, this will be supplid by us.
My problem is
What if user changes the System date, by clicking on TaskBar SystemTray Icon(Time).
I wants solution for that.
|
|
|
|
|
buy .NET Reactor[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi,
Thanks for your suggestion. But our company not interested to buy such tools/softwares.
Is not possible by c# coding?
|
|
|
|
|
I am searching to write an store procedure in .cs file (C#) and then execute it in access data base (.mdb). Is there any way?
But wants to execute multiple Queries in single store procedure. Is it Possible?
Thanks in Advance
Pankaj Deharia
|
|
|
|
|
Dear All,
I am looking code for navigation with different form like in vb.net form1.show
what is the technique in c Sharp for jump on next form.
thanks.
|
|
|
|
|
in vb, forms created as static. Therefore if you want the same technique in C# you have to make form static that is not a good idea. However, you can create an instance of that form and show it.
form1 f = new form1();
f.Show();
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
form1 frm =new form1();
frm.ShowDialog();
|
|
|
|
|
Hi,
How to get C# (using XmlDocument.Load(..)) to read " " in the source document. It's throwing the following exception
Reference to undeclared entity 'nbsp'
Regards,
Hari
|
|
|
|
|
Have you not declared " " in your DTD?
|
|
|
|
|
My aim is to extract some elements (e.g., table) from input xml, but the xml may from any DTD.
|
|
|
|
|
Hi,
ReceiveFrom() requires the use of Bind() so i included the bind();
now im not getting any error but the string "hello" instead of being displayed on the server it is diaplayed in the client itself and nothing is displayed in the server.Now the server remains open..Please help me with this
//client
private void Send_Click(object sender, EventArgs e)
{
Callback();
}
private void Callback()
{
try
{
byte[] data = new byte[1024];
listBox3.Items.Add("Connecting....");
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8000);
Socket newsock= new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
newsock.Bind(ipep);
listBox3.Items.Add("Connected");
data = Encoding.ASCII.GetBytes("hello");
listBox3.Items.Add("Transmitting...");
newsock.SendTo(data, data.Length,SocketFlags.None,ipep);
listBox3.Items.Add("Sent...");
IPEndPoint sender = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8000);
EndPoint tmpRemote = (EndPoint)sender;
listBox3.Items.Add("Message received from {0}:");
listBox3.Items.Add(sender.ToString());
byte[] data1 = new byte[1024];
int recv = newsock.ReceiveFrom(data1,ref tmpRemote);
listBox3.Items.Add(Encoding.ASCII.GetString(data1, 0, recv));
}
catch (Exception e)
{
MessageBox.Show(e.StackTrace);
}
}
}
}
//server
namespace TestServer
{
public class UdpServer
{
public static void Main(string[] args)
{
UdpServer us = new UdpServer();
}
public UdpServer()
{
Thread startServer = new Thread(new ThreadStart(start_server));
startServer.Start();
Console.WriteLine("Waiting for a client...");
}
public static void start_server()
{
byte[] data = new byte[1024];
IPEndPoint ipep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8000);
Socket newsock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
newsock.Bind(ipep);
while (true)
{
IPEndPoint sender = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8000);
EndPoint tmpRemote = (EndPoint)(sender);
int recv = newsock.ReceiveFrom(data, ref tmpRemote);
Console.WriteLine("Message received from {0}:", tmpRemote.ToString());
Console.WriteLine(Encoding.ASCII.GetString(data, 0, recv));
byte[] data1 = new byte[1024];
string ss = "Welcome to the Server";
data1 = Encoding.ASCII.GetBytes(ss);
newsock.SendTo(data1, data1.Length, SocketFlags.None, tmpRemote);
Console.WriteLine("\nSent Acknowledgement");
}
}
}
}
|
|
|
|
|
SendKeys is great for a lot of things, but what If I want to hold a button down for a length of time? I don't want to repeat the keystroke a whole bunch of times, I really mean hold it down--I've been able to do some cool things by importing the user32 dll with holding down the mouse button (wherein you must send both the up and the down command, and thus can wait between the two if you wish), is there a way to do this with keys?
-Gatsby
|
|
|
|
|
what is the purpose for this...Well, KeyDown event does exactly
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi all,
I have a problem trying to log in this spanish web: http://www.infojobs.net.
The login web is this: http://www.infojobs.net/candidato_login.cfm
For testing, I have created this user/pass:
email/nick: testforlogin@hotmail.com
pass: 1234
So, I've tried two ways:
Option 1:
string login = https://www.infojobs.net/candidato_login_run.cfm;
NameValueCollection postdata=new NameValueCollection();
postdata.Add("email", "textBoxName.Text");
postdata.Add("password", textBoxPass.Text);
byte[] data = clientWeb.UploadValues(new Uri(login), postdata);
string page = Encoding.Default.GetString(data);
Option 2:
clientWeb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
string data = "email=" + textBoxName.Text + "&e_password=" + textBoxPass.Text;
byte[] postArray = Encoding.ASCII.GetBytes(data);
byte[] responseArray = clientWeb.UploadData(login, "POST", postArray);
string paginaresultado = Encoding.Default.GetString(responseArray);
Also, clientWeb is an extended WebClient class that manage cookies.
And the login is always wrong
Any ideas?
Thanks in advanced.
Regards
|
|
|
|
|
I have a custom action fired during installation which creates a database, tables, and stored procedures. I ran the whole script in Mgmt Studio and worked fine. However, from C# it gives error:
'CREATE PROCEDURE' must be the first statement in a query batch.
I researched and found out GO is not a T-Sql statement but for Mgmt studio. How can I get rid of the error. Here is my script skeleton:
CREATE TABLE Regions
(
RegionID SMALLINT NOT NULL PRIMARY KEY,
Description VARCHAR(50) NOT NULL
);
CREATE TABLE Vendors
(
VendorID CHAR(3) NOT NULL PRIMARY KEY,
Name CHAR(30) NOT NULL
);
CREATE PROCEDURE [dbo].[up_CancelOrder]
@PurchaseOrderID VARCHAR(6) = NULL
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
UPDATE dbo.PurchaseOrder
SET StatusID = 0
WHERE PurchaseOrderID = @PurchaseOrderID
END
CREATE PROCEDURE [dbo].[up_Something]
(
--eForm Fields
@Foo CHAR(8)
)
WITH RECOMPILE
AS
SELECT TOP 100 PERCENT Name
FROM ATable
WHERE AColumn= @Foo
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
My suggestion would be to put all the stuff in Stored proc and just execute the stored proc.
Did you see this - Link[^] ?
|
|
|
|
|
I have A Sql compact database and im trying to return the ID of the record just inserted, howerver multi queries are not support,
http://msdn.microsoft.com/en-us/library/system.data.sqlserverce.sqlcecommand.aspx[^]
"The Data Provider for Microsoft SQL Server 2005 Everywhere Edition does not support batched queries. Commands must be in the following form:"
Select * from Customers and not Select * from Customers; Select * from Orders;
Any solutions on how to write an alternative?
|
|
|
|
|
What if you send the query to insert. Then send another query to get the identity.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
Thats what im looking at at the moment, what happends if another user has entered a record to? possible issue?
|
|
|
|
|
Also its a transactional statement
|
|
|
|
|
use @@IDENTITY or a Stored Procedure?
|
|
|
|
|
good idea but same problem
|
|
|
|
|
? Sql Server CE doesn't support multiple concurrent connections. Did you try it like this?
command.CommandText = "Your Insert Statement";
command.Execute();
command.Parameters.Clear();
command.Parameters.Add("@id", ...");
...
command.CommandText = "SET @id = @@IDENTITY";
command.ExecuteNonQuery();
|
|
|
|