Software Development Network Logo
  • .NET Development
  • Game Technologies
  • Windows Vista
  • Smart Devicet
  • Visual Studio
  • Windows Forms
  • Visual C#
  • VS Team System
  • Audio and Video
  • SharePoint Products
  • IE Development
  • Microsoft ISV
  • Visual FoxPro
  • Visual C++
  • Visual Basic

Software Development Network >> Visual Basic

Visual Basic

New Question

Calling Crystal Reports With Stored procedure
ActiveX EXE projects in .NET
Error ActiveDS in COM+
Inherits, Base Class and CType
Threading Race
Generate a compiler error?
Emails
Green & Yellow bars just right of the line numbers?
Date and Time Format Problem
AudioPlayMode WaitToComplete fails

Top Answerers

avenueofdesign
I.H
nhaas
FPSt
Frank2808
Gabrielle Erlingen
JonnyAJAX
John Stewien
Haiping
John Oliver (UK)MSP, VSIP
The HiTMilL
Only Title

Answer Questions

  • llkoolj Programmatically retrieved event log EventID does not correspond to Windows EventID

    Hi, I am developing an application that reads the event log in windows. I have managed to retrieve everything correctly except the Event ID. Most EventIS's are similar but for e.g. " Broadcom NetXtreme 57xx Gigabit Controller" Windows Event-ID is 15 and when I retrieve it programatically it is 327695. Another Event ID also for this controller is 6 and 327686. The difference between both are 9. Can anyone explain this Can it be fixed Best /M Sorry can not tell from your code where the problem is, it is not showing the right place, would need to see the data collection code, the point where you pull information from the log to the XML file. The EventId property has been superse ...Show All

  • best49erfan Getting IsDate VB6 Behavior in VB.NET

    I've noticed that the behavior of IsDate is quite different in VB.NET from VB6. For example, the string "9p" used to be able to be parsed into a date with 9 PM in it, but DateTime.Parse/IsDate doesn't handle that properly. There may be other instances, but I don't want to have to try and figure out all the strings that we might have to parse to ensure that the next version of our product launches with the same behavior. Is there anyway to use old VB6 behavior for a method like IsDate in VB.NET Well, my main problem is that we are using a third-party COM component which deals with dates more closely to/just like VB6's IsDate than VB.NET's. If I could mess with that, I definitely would. If I ca ...Show All

  • Ashish Saxena Progressbar apperars so late in visual basic Activex...!

    Hi, I made an activex (with visual basic 6.0), that downloads a file to client..I converted cab file with package&deployment wizard, and signed it.. There is an progressbar on the usercontrol(activex control form).. and set the progressbar value appropriate value while downloading.. I use these lines: ------------------------------ Do DoEvents bData = InetDwn.GetChunk(CHUNK, icByteArray) DoEvents If i Mod (downloading_file_all_size / 10) = 0 Then ' I used this line to increase progressbar value every 10 percent 'downloaded DoEvents DoEvents ProgressBar1.Value = ProgressBar1.Value + 1 DoEvents DoEvents i = 0 DoEvents DoEvents End If DoEvents DoEvents Put #intfile, , bData i = i + 1 Loop While UBound(bData, 1) > 0 -------------------- ...Show All

  • sleemonster Hide/Show Certain Text Fields in a form

    I am using software that scripts with VB .NET and I am trying to have a textbox hidden unless a combo box above it has "other" selected. So the user will select something from the combo box and if it is "other" then I want a certain textbox to become visible to type information into. If they pick something other than "other" then I want the textbox to remain hidden. Thanks! sorry but i have never really used VB before so where would i put that code. Do I put it in a form load or what I appreciate your help. it goes away no matter what I select. I want the textbox to not be visible when i enter the form and the only way it will become visible ...Show All

  • LeoXue How to replace a folder icon

    Hello, I am trying to figure out how I can programatically replace a folder's icon by clicking a button. i want to change it to an image I have created (type *.ico). Can anyone please help me Thanks! This also makes me concerned. Will this affect what i am trying to do http://www.microsoft.com/communities/newsgroups/en-us/default.aspx dg=microsoft.public.dotnet.security&tid=d11a479d-6453-4c70-8816-c15b2a3c844b&p=1 Yes I am aware of how to do it manually but there has to be a way to do it using a clsid or something. Honestly what I want to do is make the CLSID change to something that would just be a blank entry. You can make it a shortcut to ...Show All

  • hazz i am using vb.net 2005 i need to select all the comments in my program

    i am using vb.net 2005 i need to select all the comments in my program while writing and debuging my program and dooing changes to my code i have commented a lot of text in my program now i need to delete all the commented text in my program i am in search of a shortcut key which deletes all the comments in my program can any one tell me the short cut key or the procedure to delete all the commented text in my program at a time A safe and easy method is to do a find of the comment token " ' " and then just delete the line and find next....the other solution is to qwrite a macro that will find the token...select to the end of the line and then delete...repeate until end I'm not sure this is such a ...Show All

  • Tom K Custom CType operator not being called

    This code defines a custom CType operator that converts Integer to TestNumber. This works great when converting from Integer to TestNumber. But an InvalidCastException occurs when converting from Object of type Integer to TestNumber. The online help for CType function implies that this call should work. "If the conversion is undefined, an InvalidCastException occurs. This can happen, for example, if expression is of type Object and its run-time type has no conversion to typename ." But because of the custom CType operator, there *is* a conversion from the run-time type (Integer) to typename (TestNumber). This problem is causing big headaches in my app. It happens on both VS 2005 and VS 2005 SP1. This seems like a CType bug ...Show All

  • SweptSquash playing a media file, and then waiting

    Hello I am writing an application where I want to play a wav file using windowsmedia player from inside VB. After playing this file, I wish to have my VB program wait a bit until the wav file is played, and then continue on with the next command. So what I did was place a System.Threading.Thread .Sleep(3000) so buy my self sometime. However, the sound file is not being played at all and all i see is the wait happening. what am I doing wrong how can I implement what i want to do thanks Shyma Mohaisen you could make a playlist and play the files through that. you could also play the wave file via the System.Media.SoundPlayer class however it will only play a 3 second (ish) wave file and will be running in the sam ...Show All

  • Mr Pro Tools passing dbull to sql server express

    I have an application i'm writing connecting to sql server express. there is a field call PayDate which is a text field and it passes the date to a coloumn in splserver which is a "date" type and allow nulls is checked. I can add and update the dates changed with no problem, but what I want to do is when the date on the textbox form is removed, I want to pass a "null" back to the PayDate column in sqlserver so it shows as "NULL" . When I used "mySQL", I had no problem passing a null back, but with sqlserver I can't seem to get this to work. Is there a way that when I remove the date from the textbox on the form and press "save" myBindingSource.EndEdit() myTableAdapter.Update ...Show All

  • MA2005 Winsock OR TCP connection + SSL

    Hi, I am making an Email reader program, and I need to use POP3 servers. I learned the protocol so I'll could use winsock for the connections. The problem is, that a lot of servers require SSL connection, and I don't know how to open one... I know there is a way with the TCP socket, but I don't know how...... :( Can anyone tell me how Thanks, Ofir. I tried with the SSL and client code, and changed it like that:   Public Shared Sub RunClient( ByVal machineName As String , ByVal serverName As String , ByVal Port As Integer ) Dim client As TcpClient = New TcpClient(machineName, Port) Console.WriteLine( "Client connected." ) Dim sslStr ...Show All

  • Montana Jones IPAddress.ToString expected to return a.b.c.d but returns d.c.b.a

    I have a function from a third party vendor which returns an IPAddress in the form of a VB.NET UInteger. I am trying to convert this into the dotted decimal form by doing the following: Dim oAddress as New System.Net.IPAddress( [IP in UInteger form] ) Dim sAddress as String = oAddress.ToString I would expect the above to work, but where I am expecting to see "10.1.0.21", what I am getting is "21.0.1.10". Am I not using this right IP-addresses in binary format are stored in an unusual, non-Intel CPU compatible way called BigEndian . The bytes are in reversed order. If the 3rd party vendor gives you the address stored in an UInteger, you better watch out for software quality i ...Show All

  • usefulacct How can I send a form and its Subform (Datagrid) as a text file?

    How to I print a Form and its subform as a Text file or send it to a text files then print the text file using a button Maybe using something like this Please be specific if you can. Thank you Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'True escribe cada linea debajo en el file the texto "test.txt"./SIN borrar el anterior ' False, prepara un nuevo archivo en cada oportunidad Dim objfile As New System.IO.StreamWriter( "c:\test.txt" , False ) 'Estoy usando este formulario para escribir al formato de texto en el archivo test.txt objfile.WriteLine( "PENA'S ACCOUNTING" ) objfile.WriteLine( "17 Canal Street" ) o ...Show All

  • polymorphicx Program Handle Count

    When I run my application, after a few days of being open, the handle count gets up to like 2,000 in task manager, and eventually crashs. Is there a way to prevent this Are you calling APIs that use handles WEll Josh.... there's there Dance. It's like a waltz and it goes like this.... Partner A: I have this problem and ....... (but I'm not going to show you the code) The rest of the world is burdened with the role of "mindreader". There is an answer to your question. A piece of code in your program is assigning handles to objects. Either the objects are not being disposed of properly, or the objects are being disposed of and the handles are not being closed at the same time ...Show All

  • paramjeet Displaying numbers in scientific notation?

    Is there any way I can display numbers in my program in scientific notation And what if a variable is too small to hold a number that I use, can I just display the number instead of first storing it Example: If textbox1 * textbox2 < 1000000000000000000000, then just display the number, but don't store it. Is that possible Here's the answer to your question: Part 1: MsgBox (54547. ToString ( "#.##e+0" )) for more about convert double to string formated see http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdoubleclasstostringtopic.asp Part 2: If val(textbox1.Text) * val(textBox2.text)< Val ( "1000000000000000000000000" ) t ...Show All

  • Torpedoke How to set starting index to 1 instead of 0?

    Hi. I 'm converting a program from Power Builder language to VB .Net. This project needs to use a dll file to communicate with a card reader. The thing is, when I have to call a function from the dll file and get reference value from the function, I need to use an char array that started with 1, instead of 0. The char array size is 10. I declare the dll function using this: Public Declare Function GetA0B0 Lib "MCard.dll" ( ByRef szMfgNo As Char ()) As Integer And to call the function: Dim lc_rtnmfgno(10) As Char Dim li_rtnval, li_counter, li_limitread As Integer li_limitread = 4 For li_counter = 1 To li_limitread li_rtnval = GetA0B0(lc_rtnmfgno) If li_rtnval ...Show All

313233343536373839404142434445464748

©2008 Software Development Network

powered by phorum