I\'m making a blackjack project..
I\'ve firstly created the Hit
class for the Hit
Button.
So on the form, when I click it, it will retr
Not sure if I understood completely.
But I could see that stRefID
is a variable local
to GenerateID
function.
If you need to access it as Hit.stRefID
then stRefID
should be a static class member
Try adding stRefID
as static global Class
variable.
public class Hit
{
public static string stRefID = "";
public static string GenerateID(int MinSize, int MaxSize)
{
//Your logic
}