Hi
how to assign the current working directory to savefiledialog box.
Say for example
If i open a file Sample_Address.xls from
path = C:\Temp_Folder\VB_Projects\Sample\Sample_Address.xls
then if i hit SaveAs then it should open in the same folder
i tried coding like below also...
Hi sorwen
it is working for me now.
i was calling another subroutine from the btnup subroutine , There i coded as List1.selectedIndex = 0
that was the problem
Thanks a lot
Sri
Hi friends
I have a listbox in form2 and the items are populated to it from another form named form1. In form2 i have created a button named btnUP. When we click the btnUP then the highlighted selected item in the listbox moves one level up. this is working fine.
But the problem is only the...
for example i told you 3 times
but in real they can hit as many as times they need
anyways thanks your help. i got the solution.
here is the code
Dim controlCounter As Integer = 0
Dim i As Integer = 0
Dim x As Integer = 0
Dim lstCombos As New List(Of ComboBox)
Dim lstTextBoxes As New...
If still i am not explaining it properly Please copy this code and run it and follow the steps below .you can see the problem
click button1 for three times continuosly
you will see three comboboxes and three textboxes in the form
now go and select any item from first Combobox.
You should get...
no that is not the problem
if i click item 4 in combobox3 then i should get the same in the textBox3 in the form
if i click item 2 in combobox5 then i should get the same in the textBox5 in the form
sri
Hi
I have a problem in handling the events for dynamically created controls
I am creating a combobox and a textbox dynamically when i click a Button1
for each combobox there is one corresponding textbox
so the number of times i click Button1 i will get that many number of comboboxes and...
Hi Friends,
Please Help me in converting this C# code to VB.net code
private void CreateComponents(string[] questions) {
for (int i=0;i<questions.Length;i++){
CheckBox chkBox = new CheckBox();
chkBox.Name = "chk"+i;
chkBox.Text = questions[i];
chkBox.Click += new...
Thanks guys.your code helped me to find the solution
Here is the code.Sure this might help somebody in future
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = SomeDate(CDate(TextBox1.Text))
End Sub...
Hi,
Is there any date function available in vb.net to display the dates as today , yesterday, lastweek, last month like Microsoft outlook when we arrange it by date.
If there is no function available like that can anybody tell me how to do that.
i searched through the net but no luck.
Thanks...
you can raise a Flag when the cancel or exit button is hit.
(ie in the button_click event)
then inside the validating error event subroutine check for the Flag.if Flag is raised then exit the subroutine or else execute the validation for textbox
Sri
finally got a way (not a very perfect way but will work) to change the backcolor of the small box which has the tick mark
checkbox1.text = ""
checkbox1.size = New Size(15, 14)
checkbox1.BackColor = Color.Maroon
checkbox1.FlatStyle = FlatStyle.Popup
Sri
finally got a way (not a very perfect way but will work) to change the backcolor of the small checkbox which has the tick mark
checkbox1.text = ""
checkbox1.size = New Size(15, 14)
chkVIPF.BackColor = Color.Maroon
chkVIPF.FlatStyle = FlatStyle.Popup
Sri
Sorry if my question is dumb
i copied your code and ran it as new project. The form appears to be blank.I cannot find the rectangle on the form. Is that supposed to be like that ??
please explain me.
sri
Hi Andy
chkDS1.BackColor = Color.Cyan
when you run this code it changes only the backcolor of the whole checkbox to cyan and not the color of small box on the right which has the tick mark (when checked during runtime).It remains white when it is enabled and default grey when it is disabled...
Hi
In vb.net 2.0,i have created a checkbox programatically.
now i am trying to change the color of it.
It is not changing
Here is the code:
Dim chkDS1 As New CheckBox
chkDS1.Location = New Point(200, 118)
chkDS1.Text = ""
chkDS1.CheckState = CheckState.Checked
chkDS1.Visible = True...
thanks for the reply but the input array does have valid data.
i tried writing input array to a file during runtime
and had a look at it. Actually it looks fine
Eventhough we cannot see the populated values in the runtime, the Inputarray is filled with the values it supposed to be.
sorry i...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.