|
|
Hi,
How can i create file in a folder in another computer with vb.net code which i dont have any permission to that desire folder with my UserName and Password,and i wanna access to that folder with anothoer username that has Rights to access to that folder.
Maryam Gharibi
|
|
|
|
|
|
Your question is a bit confusing. Are you asking how to create a folder on another machine in a folder that your username doesn't have any rights to? Simple - you can't. If your ID doesn't have any rights to that machine, or to the folder that you want to create something in, you're simply not going to be able to do it. Any code that you launch runs in your security context. That means it impersonate you. If you don't have the rights, any code you launch wont have them either.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I want to add some fixed day value in a date type variable in VB.Net but it show error.
Example like below:
dim PDate as date
Pdate=today.date
pdate=pdate+5
last line shows error. what should i do for this type of increment in date field. Please give me any solution.
Thanks.
|
|
|
|
|
The problem is that you are trying to convert a type Integer to type Date . Instead you should use this:
Dim PDate As Date
PDate = Today.Date
PDate = Today.AddDays(5)
|
|
|
|
|
|
Not sure what kind of example you are looking for, here is one:
If myCheckBox.checked Then
MessageBox.Show("myCheckBox is Checked")
Else
MessageBox.Show("myCheckBox is not Checked")
End If
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
were not using the messagebox in this..actually, this is..i use check box then, when the user enetered the asnwer, and when you click the answer.lbl the answer of the user will appear.
thank you very much..
|
|
|
|
|
Please don't delete your questions, it's really annoying. Unless it was in the wrong forum, which doesn't seem to be the case, you should leave it alone.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I want to show multiple forms at different times.
for example after say 10secs form1 pops up, then after say 25 secs form2 pop ups.
I'm using the timer function to help me, however I think i may need a certain type of loop embedded within a loop. the code below currently shows both forms at once.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If numberofcalls = 0 Then
Dim popup As New Alternative1
popup.Show()
numberofcalls = 1
Timer1.Interval = 25000
End If
If numberofcalls = 1 Then
Dim popup2 As New Alternative2
popup2.Show()
numberofcalls = 2
Timer1.Interval = 30000
End If
thanks in advance.
|
|
|
|
|
Follow up in the same thread instead of starting a new thread about the same thing.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
sorry I didnt understand that, Im still a little new to the program, could you perhaps give me a quick example.
Thanks.
|
|
|
|
|
He's saying if you post a thread, keep asking questions on that thread, until you have something new to ask.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
i dont know if u realy want to write the program in this way but this is wrong.when
1)enable timer and change its interval to 1000
write in root of ur class:
public frm1 as new ALT1
public frm2 as new ALT2
write in timer tick sub
static t as integer
t+=1
select case t
case 25
frm1.show
case 30
frm2.show
end select
of course if u want to keep ur code just write the code below before first end if of ur code:
exit sub
|
|
|
|
|
Hi
I have problem with timer function in my application
When application starts it'shows first welcome form so user need to type their name and after it shows main form for application
so i want to put few seconds gape between this two forms,so i want to display some picture box for 3 or 4 seconds before main form displays, This is the code which i used but it's not working so any help for this
Dim MyForm2 As New frmSQuiz
If Trim(txtName.Text) = "" Then
MsgBox("Please enter your name", MsgBoxStyle.Exclamation, "Error")
Exit Sub
Else
' Sets the timer interval to 3 seconds.
Timer1.Start()
picQuiz.Visible = True
While Timer1.Interval = 3000
Timer1.Stop()
picQuiz.Visible = False
MyForm2.Show()
MyForm2.ActiveForm.Text = "Well Come " & Address & " to Type - In - Answer Section ...."
End While
End If
wating for ur kind reps.
|
|
|
|
|
Just starting and stopping the timer will not cause any delay. You have to use the Tick event of the timer to wait for the first interval.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
Thanks for ur rep. I am new to vb so as you said do i need to use that code in timer tick event or something else
wating for ur rep.
thanks
|
|
|
|
|
On top of that, your login form should NOT be your startup form. Make you main application form the startup form. In it's Form_Load event, create and start your Login form. Once that is complete you can use the information from that form however you wish in your code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
in crystal report i want to display the data in column manner
like this
Name School College Name School College
xyz abc pqr xyz abc pqr
rrr eee eee rrr eee eee
how to do it?
|
|
|
|
|
Your question is not so clear. If you want to show same data with two columns, you should put same column right side again. but
if you want to show different data with two columns then you should use
'Format with multiple columns'in Detail area of report. it creates multiple column in your report. In this type of formating after filling one column it fills another coloumn. please try this.
|
|
|
|
|
I had tried that one but it will not come in multiple column like this
name school name school
kkk llll jjjj iiii
for doing that did we need registered version of Crystal report
|
|
|
|
|
I'm trying to use a PropertyGrid to let the user quickly edit a class' property. In order to do this in the better way possible, I'm using tags like this in the class' properties:
Private mText As String
<description("bla bla="" bla")=""> _
<editor(gettype(system.componentmodel.design.multilinestringeditor), gettype(system.drawing.design.uitypeeditor))=""> _
Public Property Text() As String
Get
Return mText
End Get
Set(ByVal value As String)
mText = value
End Set
End Property
However, the compiler always tells me there is no definition for System.ComponentModel.Design.MultilineStringEditor. This seems strange, since I've browsed many sites and they were using the same exact line of codes. I've also included these namespaces, but with no success:
Imports System.ComponentModel.Design
Imports System.ComponentModel
Imports System.Drawing.Design
Imports System.Drawing.Design.UITypeEditor
..maybe do I need to add some reference to the project? Otherwise, where am I wrong?
|
|
|
|
|
Hello,
to use this editor, you need to add the System.Design.dll as a reference to your project.
|
|
|
|