Answer Questions
The Fluffster MenuStrip get name all items
I have a MenuStrip im my project with any levels. I need enabled and disable Menus for access user. The first level is: For Each MenuItem As MenuItem In Me .MenuStrip1.Items MsgBox(MenuItem.Name) Next How can I get all the items of MenuStrip in all levels . Thanks. You would need to use a recursive method such as Had to rewrite this code because i did it in C# originally Public Function EnumerateItems(ByVal it ...Show All
theManMyth DataAdapter fail to update
I have a problem with this snippet. please help, thanks. Public Sub SendAllMessages() Dim con As New SqlConnection(Configuration.ConfigurationSettings.AppSettings("conStr")) Dim cmd As New SqlCommand("GET_MESSAGES_TO_SEND", con) Dim data_table As New DataTable Dim da As SqlDataAdapter da = New SqlDataAdapter( ...Show All
GtGyal image backcolor (VB.NET 2005)
I intend to draw a picture and save to a file. However the backcolor of the image is black (although the backcolor of the pictureBox is white). I want a white backcolor. Does anyone know how The code is: Dim bm As Image = New Bitmap(PictureBox1.Width, PictureBox1.Height) bm.Save( "c:\a.bmp" , System.Drawing.Imaging.ImageFormat.Gif) Thanks. I like VB too! I'm not an expert on graphics. I've had a littl ...Show All
gfdsgqqf Name Space issue Problem in VS 2005, but not in 2003
in VS.Net 2003, I generated a large support structure with namespaces. Namespace gM Namespace VB ... Namespace ASP ... Namespace Local ... end namespace gM.VB, gM.ASP, and gM.Local Each with there own Class objects underneath. *********************************************************** Now I have upgraded to VS.NET 2005, and copied this code over. None of my A ...Show All
Richard R Installing VS 2005 keeps on asking ' Please insert the disk: Visual studio 2005'
The installation process for Visual Studio 2005 prompts ' Please insert the disk: Visual Studio 2005' everytime when I try to install VS2005. This is what I did: * Downloaded VS 2005 from the MSDN members download site. File name: en_vs_2005_pro_dvd.iso (size=2,825,748 KB) * Used MagicISO tool to unpack the files * Used Nero 6 to write the extracted files to the DVD * Created a brand new Virtual PC with Windows XP + SP2 ...Show All
Sean Fowler accidentally uninstalled Framework 1.1 first "valid ordering"
I get the error when I try to uninstall VS.Net 2003. Setup is unable to determine a valid ordering for installation. See the error log for further details. I have the disks and tried reinstalling/ repairing it and that did not work. And I cannot get to the error log as it says. I only used VS.net for school and would like to uninstall it from my computer. Does anyone know what to do after you tried to uninstall it out of order, and remov ...Show All
Yuvaraj D date y/yyyy to dd/mm/yyyy
Hi, I want convert a date y/yyyy to yy/mm/yyyy. the Format function convert a date yy/mm/yyyy to y/yyyy but not y/yyyy to yy/mm/yyyy. exemple : 111/2006 --> 21/04/2006 does your post have a typo where's the day(dd) part can you add another example input and expected output to convert dd/mm/yyy to y/yyyy : dim MyStr as string MyStr=format ("21/04/2006","y/yyyy&q ...Show All
PsYcHoToE How to make shortcut of program
Hello How can I create a shortcut of program on Desktop, Start menu, Program Menu and Start Up Menu Thanks & Regards There is an API routine... Private Declare Sub HlinkCreateShortcutFromString Lib "hlink.dll" (ByVal grfHLSHORTCUTF As Integer, ByVal pwzTarget As String, ByVal pwzLocation As String, ByVal pwzDir As String, ByVal pwzFileName As String, ByVal pp ...Show All
RamonS Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
dnelson Programmatically getting same list of programs listed in Explorer's "Open With.." option
Hello, Was wondering if there is a VB control that can bring up a list of programs identical to the list of programs displayed on the "Open With" dialog box when you open Windows Explorer, right click on a file, and select "Open With.." Thanks BW No there is not a VB control...however you can create that functionality with your own user control. I believe all the information on registered file ...Show All
ryanchopps Intellisense Problem
I have a problem with the autocomplete feature of Visual Studio 2005. When I use VS2005 for an extended period of time the code editor starts to behave very strange. When I'm writing code it starts to autocomplete my code when it should not. Example, if I want to write: Dim sName as String it can ends in: d(ims) nameas String Dim s(name) as string Dim sn(ameas) string etc. As it was loosing focus and it autocompletes while I'm writing (I write v ...Show All
Glenn Wellington Code snippet to read/write file ratings?
Does anybody know how to programatically set the "star rating" on a file under Vista Dear Customer, Thanks for your posting. For Vista programming, I think you may try to post in the forum below. http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=24&SiteID=1 Thanks for your understanding! Best regards, Peter Huang ...Show All
andret1802 CodeSnippets Manager
CodeSnippets Manager I have two problems. First, I added a subdirectory to MyCodeSnippets called Exceptions. However, no 'plus' sign appears to the left of the MyCodeSnippets Folder. How can I get subdirectories to produce a plus sign next to the mysnippets directory Second, if I want to add my own code to this Exceptions folder, how do I do it. Imports wants a file that contains a 'CodeSnippets' type. I copied my code ...Show All
Aaron Tan How to specify Directory for a FileStream
I am trying to read and write a image using a "stream" from one directory to another directory and need to know how do you specify the directory.... Dim ImageStream As IO.FileStream Dim ImageFile As IO.FileInfo Dim ImageByte() As Byte '**** please specify here how to ADD directory and FILENAME ********* ReDim ImageByte(ImageFile.Length) ImageStream = ImageFile.OpenRead ImageStream.Read(ImageBy ...Show All
_Bosch_ VB Express beta2 and sql db creation problems
I'm trying to learn visual basic, via the how-to's in VB express. I know zip about sql, and little about databases in general. Here's the problem. In an exercise to create a Windows form containing a sql database, I keep getting "Cannot connect to database. Server timed out." error messages. 1. What server It's just me & my laptop. 2. At least, I'm no longer getting "User does not have permission" errors. How do I need to configure services ...Show All
