Click here to Skip to main content
14,603,097 members
   

C#

 
GeneralRe: Rename files in WinScp Directory using C# Pin
ZurdoDev27-Apr-20 2:27
mveZurdoDev27-Apr-20 2:27 
AnswerRe: Rename files in WinScp Directory using C# Pin
Jin Vincent27-Apr-20 2:36
MemberJin Vincent27-Apr-20 2:36 
GeneralRe: Rename files in WinScp Directory using C# Pin
Sriram Valluri27-Apr-20 8:07
MemberSriram Valluri27-Apr-20 8:07 
AnswerRe: Rename files in WinScp Directory using C# Pin
Luc Pattyn27-Apr-20 8:21
sitebuilderLuc Pattyn27-Apr-20 8:21 
GeneralRe: Rename files in WinScp Directory using C# Pin
Sriram Valluri27-Apr-20 21:21
MemberSriram Valluri27-Apr-20 21:21 
QuestionMulticombobox in datagridview c# Pin
Member 1347974626-Apr-20 16:12
MemberMember 1347974626-Apr-20 16:12 
AnswerRe: Multicombobox in datagridview c# Pin
OriginalGriff26-Apr-20 19:25
mveOriginalGriff26-Apr-20 19:25 
QuestionAccess Rights Management Pin
Member 1481258225-Apr-20 13:13
MemberMember 1481258225-Apr-20 13:13 
I am programing and application for work which requires a certain level of access rights to users. Once logged in I get the access level number 1-10 which is then put onto a splash screen in a hidden txt box.
 
on the closure of the splash screen i would like it to go to a menu for that access right.
 
This is the code I am using
 
private void tmr_splash_Tick(object sender, EventArgs e)
{
prb_splash.Increment(1);
if (prb_splash.Value == 100)
tmr_splash.Stop();
if (prb_splash.Value == 100)
this.Hide();
if (prb_splash.Value == 100 & (!txt_number.Text.Contains("10")))
{
frm_Artemis_admin aa = new frm_Artemis_admin();
aa.ShowDialog();
}
else
if (prb_splash.Value == 100 & (!txt_number.Text.Contains("09")))
{
frm_Employees_edit aa = new frm_Employees_edit();
aa.ShowDialog();
}
 
The application runs but even though I have changed the access rights to 9 to test it its still going to the admin menu?
 
If anyone can help that would be great.
 
Many Thanks :)

AnswerRe: Access Rights Management Pin
OriginalGriff25-Apr-20 20:09
mveOriginalGriff25-Apr-20 20:09 
AnswerRe: Access Rights Management Pin
Gerry Schmitz26-Apr-20 6:54
mveGerry Schmitz26-Apr-20 6:54 
AnswerRe: Access Rights Management Pin
Mycroft Holmes26-Apr-20 12:21
professionalMycroft Holmes26-Apr-20 12:21 
QuestionIssue while solving 100 Doors Kata Problem Pin
User-862169524-Apr-20 21:51
MemberUser-862169524-Apr-20 21:51 
AnswerRe: Issue while solving 100 Doors Kata Problem Pin
OriginalGriff24-Apr-20 22:06
mveOriginalGriff24-Apr-20 22:06 
GeneralRe: Issue while solving 100 Doors Kata Problem Pin
User-862169524-Apr-20 22:21
MemberUser-862169524-Apr-20 22:21 
GeneralRe: Issue while solving 100 Doors Kata Problem Pin
OriginalGriff24-Apr-20 22:31
mveOriginalGriff24-Apr-20 22:31 
QuestionRe: Issue while solving 100 Doors Kata Problem Pin
Richard MacCutchan24-Apr-20 22:09
mveRichard MacCutchan24-Apr-20 22:09 
AnswerRe: Issue while solving 100 Doors Kata Problem Pin
Gerry Schmitz25-Apr-20 11:52
mveGerry Schmitz25-Apr-20 11:52 
QuestionSQL Connection in Visual Studio Pin
Member 1481258224-Apr-20 12:25
MemberMember 1481258224-Apr-20 12:25 
AnswerRe: SQL Connection in Visual Studio Pin
Eddy Vluggen24-Apr-20 12:40
professionalEddy Vluggen24-Apr-20 12:40 
AnswerRe: SQL Connection in Visual Studio Pin
Matt Slay24-Apr-20 16:28
MemberMatt Slay24-Apr-20 16:28 
AnswerRe: SQL Connection in Visual Studio Pin
OriginalGriff24-Apr-20 20:09
mveOriginalGriff24-Apr-20 20:09 
AnswerRe: SQL Connection in Visual Studio Pin
Gerry Schmitz25-Apr-20 11:46
mveGerry Schmitz25-Apr-20 11:46 
Questioncasting from interface instance back to generic instance ? Pin
BillWoodruff24-Apr-20 1:11
mveBillWoodruff24-Apr-20 1:11 
GeneralRe: casting from interface instance back to generic instance ? Pin
harold aptroot24-Apr-20 1:29
Memberharold aptroot24-Apr-20 1:29 
GeneralRe: casting from interface instance back to generic instance ? Pin
BillWoodruff24-Apr-20 2:41
mveBillWoodruff24-Apr-20 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.