VS 2008 Why Doesn't Have Dropdownlist?
May 7, 2010why does my vb.net doesn't have dropdownlist?
View 2 Replieswhy does my vb.net doesn't have dropdownlist?
View 2 RepliesThis seems super weird to me. I have a callback handler done in VB which works fine with this code:
<!-- Div Outside Form -->
<div class="container">
<form id="querydata" runat="server">
[code]......
I have a window having 2 dropdowmlists(schemename-SN and propertyno-PN) , one chkbox ,one "VIEW" button.SN has options "all" with value=0 and many other options with respctive values.Now,i want the code should behaves as follows:
1.0n window onload, SN must b visible bt PN nt.
2.if i select SN other thn All...the PN shud b visible and if i select "All" ,PN hides.
3.when check box is checked- PN hides,and if it is unchecked- PN visible..
Important:-This whole ddl n chk box are in updatable panel,button is nt in that.I want a browser compatible code so javascript can't b used directly(cz they give problem in mozzila and chrome).Right now, i have done this JavaScript and its is working fine.
function window.onload()
{
DisableProperty();
}
[code]....
but this code is not browser compatible.here onload,onkeyup and onclick functions are used , but they dont work in other browsers except internet explorer.
I have found a couple of examples on the internet to do this but really struggling to get it working in VB. (Tried a converter but had mixed results) I need the selection options of a Dropdownlist to be populated based upon the differing values in the first dropdown list.
Can anyone help with a releativley simple example in VB? Not fussed if the values are "hard coded" in the script. Or a SQL bit that pulls the data from a table
For the page I'm developing I need a DropDownList with CheckBoxes on it, so that the users can choose more than one option without having to use the Ctrl key (and it's more intuitive). Because my options are being retrieved from the Database, the list of option can be really big, so using a CheckBoxList would use a lot of space. with this? I'm almost desperate! I have been search for a couples day, but having problems in everything I tried. What I'm trying to do now is override the DropDownList control (as suggested in this forum: [URL]), but I'm having problems right in the first line:
[Code]....
In my project when someone logs in I refresh the overhead and side menus. My overhead menu is an extended menustrip component that I have made. I am able to clear the menu, reload it dynamically but I am not able to add/insert the open windows which are managed by the mdiwindowlistitem property. These are the items named "1 - form name " "2 - form name" etc.
I have been able to copy the whole dropdown list, and with some very hacky loop work I can take out everything but the items related to the forms. But when I add them back in, they are not on my list. The related forms are still open and if you click the maximize button to shrink a open child window, and then re-maximize that same window...the items magically show up in the list.
This ManageMenus sub is called during a login change. If you breakpoint on "openwindowslist" after it is returned with data, it has the proper entries and nothing extra. It just seems that the for/each add loop does not actually add the items. Or, if it does add them, I can't see them.
Tried both insert and add functions, same results both ways.
CODE:
In my xmlMenuStrip component this is the function that removes everything but what follows the seperator. It returns them in a list.
The format of the full window menu is:
CODE:
I'm trying to write a program that selects an item (Area Code) from a combobox and this list gets the city that was associated with this area code (another comnbobox list)
View 1 RepliesI am trying to change the background color of a tooltip
I am using tooltip.backgroundcolor = color.colr
No errors but thecolor doesn't change
I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.
[Code]...
What im trying to do is everytime i put a check in listbox1 or listbox2 the button1 or button2 in form2 will be invisible, but im having problem because if i go back to form 1 then check again form2 the changes that i made didnt save!FOR EXAMPLE i checked hide button1 then pressed APPLY! then i go to form2 i will see only button2 (yes the code works great!) but when i pressed back then go back to form2 again the code didnt work.
Heres my
FORM 1
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If CheckBox1.Checked = True Then
[code]....
but everytime i close the program and re-run it the changes doesnt save.
I'm guessing Vs8 doesn't use Vbkey. So how would I fix this so that it's right?
CODE:
There is a tool running in our company on 2003 servers. Now I want to test it on our 2008 x64 servers but when I start an error appears...
I´m searching for 2 days in forums and tutorials but can't find a solution. Here is the of the errormessage[code]...
im new to the forums and vb. I decided to make a alarm clock and the basic functions work great. But I want to add a button that allows you to set the time you want to snooze till. The button stops the alarm but doesnt set it off. Basically it just does what my stop alarm button does well heres the code. P.S. The last button (button 3) is the snooze button
[Code]...
im using vb express 2008 and have just created an application. i am also using windows xp sp2. when i build the application and it creates the .exe file i can only run the .exe successfully on my own system. when i try and send it to other xp systems, or vista it doesn't work! im guessing it needs specific files to run the .exe on other platforms. someone mentioned that there might be an option in vb express to package up the program so it can be installed and used on other pcs?
View 1 RepliesWhen I use this
[code]...
But for some reason, it doesn't place the image into the picture box.If I use this, and replace it with the first box of code, then it works fine.
[code]...
So, why doesn't it work in my class?
Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long I've used that API in both vb.net and vb6, but in vb.net doesnt work. Why?
View 7 RepliesWhen I press F7, nothing happens. I got the Virtual Key Codes from here.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If GetAsyncKeyState(76) Then
MsgBox("")
ElseIf GetAsyncKeyState(77) Then
[code]....
Now it updates when I press the update button and then it displays the data like it has updated the database, but when I close the program and run it. It displays the data as not updated WHY DOESN'T THE DATABASE UPDATE?Same with the Add and delete commands, I've almost finished my program but there's always a problem :...
Dim StudentID As Integer = Me.Lst.SelectedValue
Dim con As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|StudentTeacherDB.mdf;;Integrated Security=SSPI")
[code]....
I have a Main form that lauches sometimes a secondary form with the
frmAlert.Show()
code... (FrmAlert.TopMost = True)
some seconds after, from the Main form I launch the
frmAlert.Close()
but the form don't closes itself!
[Code]...
to activate the form, but it don't closes itself, both with .Close or .Dispose or .Hide code even if it is activated by frmAlert.Select()... the FrmAlert.Visible property remains = False
I am trying to take a look at the cache of UT2004 through my application since the information holder contains some bugs sometimes and I know how to fix them.
vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim totalText As String =
[code].....
I'm trying to get the Score of Pinball:
<DllImport("kernel32.dll", SetLastError:=True)> _
Public Function ReadProcessMemory( _
ByVal hProcess As IntPtr, _
ByVal lpBaseAddress As IntPtr, _
<Out()> ByVal lpBuffer() As Byte, _
ByVal dwSize As Integer, _
[Code]...
i need to imports some namespaces but it give me error, why??namespaces are:
Imports Outlook = Microsoft.Office.Interop.Outlook Imports Excel = Microsoft.Office.Interop.Excel i put them before the public class of a form.
When I press the exit button (the red X) the process is still running in the system manager. So opening it more than once will end up meaning it will slowly start crashing the computer (if you don't restart).
View 3 RepliesSo I was making a program and I have a login/registration system and before I had it detect the drives it worked fine but now when I click the check mark it doesnt do anything.
Public Class LoginForm1
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
If My.Computer.FileSystem.DirectoryExists(My.Computer.FileSystem.Drives.First.ToString + "RAAccounts"
[code]....
It was there in VB 6. I have some images that I'm going to use a buttons, and I did this in VB 6 with the image control. however, this control doesn't appear to exist in VB.NET 2008 Express. I guess I could use a picture box, but isn't that overkill for such a simple task?
View 3 RepliesWhen i create a windows form in VB, i want to have a picture box on my form, but in design view it shows the box, but when you run the program it doesn't show it. I want it to show the box so when you run the program it will show the box and you can click on the box and you can add the photo you want on your form and then print the form or save it.
View 4 RepliesI have a form with 2 txt boxes (income and expenses)I should be able to add various entries into these fields - pressing the Add button after each entry. the values are then displayed in the appropriate labels. If expenses are greater than income - the value is outputted with red font.all of that seems to work, but the add button only allows me to add only the first initial value - no additions. Below is my code for the Add button:
vb.net
Private Sub cmdadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdadd.Click
'Adds values to approriate fields depending on whether it is income or expense
Dim profit As Double
[code]....
I'm trying to get my head around this issue, on a few of my functions i get a warning " 'functionDealWithHiddenFields' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used."Example function:
vb.net
Function functionDealWithHiddenFields(ByVal HTML As String, ByVal numHiddenFields As Integer, ByVal X As Integer)
[code].....
I am using the DownloadDataAysnc. But the ProgressChanged event doesn't show progress until after the data has been downloaded.Even when I try and download a data which is contained in a big file. The programs remains responsive so I know it is doing something.However, it is when the progress has completed that the progressChanged event fires.I known this as the progressChanged and the DownloadDataCompleted fire immediately after each other. However, they should be a pause as the file is quite big.This is the code snippet I am currently using. And the output below
Results:
Progress changed Version userstate: [ Version1 ]
progressBar1.Value [ 100 ]
[code].....
Usually when I get an exception, the code line that creates it is marked yellow etc.. However now i only get a System.NullReferenceException as a line in the Immidiate window;
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
Is this due to some setting, or why don't I get any better indication?