.NETGURU
microsoft.public.dotnet.languages.vb
Up to: Discussion Lists

  • RSS Syndication
  • Post a new message to this list...
    Latest Discussions Archive
    Ugly groupbox caption font after .NET 1.1 SP1 upgrade (21 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi! I have this medium sized solution with a couple of projects and stuff. The generated application has an appname .exe.manifest file to enable XP themes. In the main window of the application I have several group boxes, and even some group boxes within other group boxes. FlatStyle System on these group boxes has always worked just fine. Round corners on the borders and blue caption text (standar...
    add a single byte to byte() (33 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I am really do not know so much about byte/bit, etc. Question, if I defined a byte(), how can I add a single byte to it? what I want is that I have an array of bytes, I loop that array, look at the value of that individual byte, if that byte is what I want, then I insert it into the new byte(). How can I do it? Kind regards Guoqi Zheng guoqi AT meetholland dot com Http://www.meetholland.com
    Decompiler.NET reverse engineers your CLS compliant code (136 replies, VIP)
    microsoft.public.dotnet.languages.vb
    http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant You can also use managed code with C Using what they call obfuscator, will not help you for a long time. For each new obfuscator there will allways exist a new deobfuscator. Your source's Symbols are written unchanged in the exe or dll file. Looking to your Symbols, it...
    Serialization Question (15 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi, i have a StreamWriter that hold a System.Net.Sockets.NetwrokStream and the StreamWriter Object Hold An ArrayList which i would like to Serialize And Send it back to the client via the StreamWriter.Flush() Dim writer As New IO.StreamWriter(System.Net.Sockets.TcpClient.GetStream) writer.Write(myArray) Dim binF As New BinaryFormatter how can i Serialize it ? Thanks! T: )
    Unicode to ASCII string conversion (19 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I have not been able to find a simple, straight forward Unicode to ASCII string conversion function in VB.Net. Is that because such a function does not exists or do I overlook it? I found Encoding.Convert, but that needs byte arrays. Thanks, /Ger
    Fit large picture in PictureBox (7 replies)
    microsoft.public.dotnet.languages.vb
    Hello, In my application I have a picturebox that must contain previews of picture files. The picturebox must always have the same size. For small images that fit, everything is ok. How can I fit in larger pictures? (Ideally would be that the picture is centered and fit in the box) Is this possible with the standard control? (if not, are there other controls who can do it out there?) Tia
    interop between VB.NET and eVC++ (11 replies, VIP)
    microsoft.public.dotnet.languages.vb
    hi there, i'm working on a smart application project on VB.NET. i must call API (custom eVC DLL) but i have some trouble with mashalas attribute..... i have copy/past a sample on msdn help but it's not working.. IDE says "unknown 'mashalAs' attribute".....and i don't know why.... i have try exactly the same code on a normal windows project and it work (compile) fine... i don't know what i've misse...
    How to get name of month (36 replies, VIP)
    microsoft.public.dotnet.languages.vb
    When I use Dim myDTFI As DateTimeFormatInfo New CultureInfo("he IL", True).DateTimeFormat Dim strhmon1 As String (myDTFI.GetMonthName(hmon1)) MsgBox(strhmon1) I get the local name of the gregorian month. How do I get the local name of the local month ? Tia
    Strange behaviour with if statement (12 replies)
    microsoft.public.dotnet.languages.vb
    Hi there, Not sure if any one has experienced this before and can tell me what's wrong with this statement: if verified false then dataObjects.HasError true This is all on one line and verified is defined as a boolean variable. Irrespective if verified is set to true or false in ALWAYS executes dataObjects.HasError true. Following code works as expected and dataObjects.HasError true executes only ...
    convert to date format (14 replies)
    microsoft.public.dotnet.languages.vb
    How can I convert this pubLatest to a date with format "m/d/yyyy"? Dim pubLatest As New Date pubLatest Me.SqlSelectCommand1.Parameters("@pubLatest").Value DC G
    Best way to instantiate a class when the class name is passed as variable? (14 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I have many similar classes in a project, one for each type of report my app can create. I want to instantiate them based on a value passed in by a scheduler module. Right now I have Sub RunReports(sReport) Select Case sReport Case "CRByDistrict" oReport New CRByDistrict Case "CRCareConversionRate" oReport New CRCareConversionRate Case (etc.....) End Select oReport.Build ' All classes implement a ...
    Open Browse (11 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi, Can anyone tell me if I can open a WebForm inside a WinForm? How? Give me examples, please. I have a winform application and I want that in some items opens a browser inside. Can you help? Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
    Scrollbars (11 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Experienced posters, I am trying to sync the scrolling of to windows panel controls. Can someone point me in the right direction? Thanks, Chris
    Convertion from vb6 to vb.net (5 replies)
    microsoft.public.dotnet.languages.vb
    I have an application in vb6 converted to vb.net During debugging it stops at the folloewing code If RsORDRE.Fields("Kommentar").Value "" Then strKommentar RsORDRE.Fields("Kommentar").Value Else strKommentar "" End If The error is "" where Kommentar is a varchar field in the database regards reidarT
    Returning multiple arrays from function (13 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I have a class with a function which need to return to the caller three two dimensional arrays. Right now the function sends the arrays as an array of arrays. The caller then decomposes the array of arrays back to its constituent arrays. The trouble is I plan to make this class a class library which may be consummed by CLS compliant code. I understand that the new VB.NET array of arrays feature is...
    exceptions in timer dependent class (8 replies)
    microsoft.public.dotnet.languages.vb
    I have Class1 which performs some data calculations on System.Timers.Timer.Elapsed event. Public Class Class1 Private WithEvents tmrReadSerialData As New System.Timers.Timer Public Sub New() tmrReadSerialData.Interval 1000 End Sub Public Sub StartIt() tmrReadSerialData.Start() End Sub Public Sub StopIt() tmrReadSerialData.Stop() End Sub Private Sub tmrReadSerialData Tick(ByVal sender As System.Obj...
    Using SHGetFileInfo for icons - problems with adding to ImageList (8 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hello, I am using the following variation of code from http://support.microsoft.com/default.aspx?scid kb;EN US;319340 to add icons to an imagelist for use in a listview: Private Structure SHFILEINFO Public hIcon As IntPtr ' : icon Public iIcon As Integer ' : icondex Public dwAttributes As Integer ' : SFGAO flags MarshalAs(UnmanagedType.ByValTStr, SizeConst: 260) Public szDisplayName As String Mars...
    Question about calendar (4 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi all, I am new to .net so I am still unsure how to do thing, but I have discovered a class called HebrwCalendar and I am so excited that I must ask if someone can help me. First, I assume this is the real Lunar Calendar and not just some sort of customization of the Gregorian Calendar. If this is so, I would like to go a head and test it a bit, so could someone tell me how to invoke, for example...
    Create a "Service"? (12 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I've an application in which I use to check out the date/time stamp of a data base... and if I find that it has been updated, my application runs and does a particular update. Currently I fire off my application hourly useing the built in XP Scheduler. What I am going to do is to have my application check every minute while it is running as I don't want to have to wait up to a hour for my particul...
    Which Collection class to use (12 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I'm writing an NT service to provide security information enterprise wide. I would like to have all of this information cached memory if a previous request loaded it into memory. Then using a common interface I would be able to invalidate and unload old information as it is updated (Removing the item from the collection?) My big question is what collection class will give me the greatest flexibili...
    Encryption not supported on SQL Server (5 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I am facing this error after making changes to client configuration utility of SQL Server 2000: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Encryption not supported on SQL Server. [SqlExcepti...
    Listing of available threads (11 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Is there a way to find all the thread names that are running in a project? For example, if I have 5 threads T1, T2, T3, T4, T5...and T2, T4, and T5 are running...I want to be able to know that T2, T4 and T5 are already running. Thanks, Darian
    RichTextBox Label URL? (9 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi, I remember reading sometime ago that is possible to create a RichtextBox label. Has anyone got any source or a URL. I'm looking for improvements on just setting ReadOnly true or Enabled false. Something which hides the caret / selection character. Help!!!!!!!!!!!!!!!!!!! JZ
    Dynamically adding and iterating through webcontrols (7 replies)
    microsoft.public.dotnet.languages.vb
    Hi everyone, I created a page which contains a two column table. The first column has a bunch of labels, and the second a bunch of textboxes. Here's the code: Protected WithEvents Container As System.Web.UI.WebControls.PlaceHolder Private Sub ConstructEditTable() Container.Controls.Add(New LiteralControl(" table " & vbNewLine)) Dim i As Integer For i 0 To rows With Container.Controls .Add(New Lite...
    timer doesn't tick (10 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Related to timer with subroutine requirement posted:9/11/2004 3:52 PM PST The sleep function worked well for the application. I have another application where I want an elapsed time within a function. A simple analog is provided below: Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click timer1.Enabled True Dim i As Int32 Dim j As Int32 For i ...
    If DLL is obsolete, how to manage different modules? (10 replies, VIP)
    microsoft.public.dotnet.languages.vb
    if I have several modules, say Inventory, Order Processing and General Ledger in my system. Each module is a window applicatiion. Each becomes a project. If DLL is obsolete, how do I call them after login? How do I manage them in other words?
    Create a SQL Database or Tables in SQL Database using VB.net (10 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hello everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the records in the database. Is it possible to create a SQL Server database using vb.net? I know I can use vb.net and ADOX to create a Access database. But I can't create SQL database using vb.net. Thanks in advanc...
    Hex conversion to Int - Bug or My misunderstanding of VB.Net (13 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I get the following results: Cint(&HC5798A2F) returns 981890513 as it should and Clng("&HFFFFFFFFC5798A2F") returns 981890513 as it should. However when using a string Cint("(&HC5798A2F") returns an overflow exception. Shouldn't the Cint return the same value for the same hex format number input? Dennis in Houston
    VB versus VB.NET timings! (21 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi, As part of an evaluation of a small utility that I wrote that converts some data held in a large number of Excel spreadsheets into SQL Server, I decided to convert the utility to VB .NET and run both versions both in the IDE and as standalone compiled exe and see what the difference in time to complete was. The utility has to read 3842 single page Excel Sheets that contain a block of data 12 r...
    Path to file? (8 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi all, I'm developing a mini Windows app in Visual Studio, and I'm a bit stuck. I'm more used to developing web based apps, and whilst still new at that have stumbled across something I cant seem to do thus require your most excellent skills to resolve it for me :o) I have an xml file in my project and I need to access it when the application is run, its like a kinda config file...originally I wa...
    Recursion issues (9 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi there, I was wondering what the normal procedure for making a license provider require licensing was? I have just created a licensing class library and I want to make it require a license to be used, but I cannot protect the license provider with itself as you just get a massive recursion issue taking place. Can I protect my own "protector"? : \ Nick.
    create a random aray for displying a mesage in a label (5 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I want to display a differnt message evry time a button is clicked. so I set up a aray of ms(12) so that I can asign 12 differnt strings to a labelbut I get a error . First of all can I asign a string value to a label? Im new to vb . I 'm still trying to shake the happits of basica or gwbasic trobo basic. You get the Idea. So can someone get me on the right path here. //Bart//
    LIKE operator fails with multiple occurance of string in pattern? (3 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I'm working on a VB.Net application that needs to do quite a bit of string pattern matching, and am having problems using the "LIKE" operator to match the same string twice in the pattern. For example, in the following code: Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim theString As String theString "1234 TEST 5432 TEST ABCD" If the...
    Group By Substitute and DataView (8 replies)
    microsoft.public.dotnet.languages.vb
    Hello, As far as I've been able to find it is not possible to perform a "Group By" action using ADO.NET however I get an array of objects (like SomeObjects() As SomeObject) from a 3rd party vendor (webservice) which I use a small reflection routine to map to a datatable.. so far so good.. Now I want to display them in a DataGrid byt first I would like to do some data manipulation on it, ie. I woul...
    How to find out if character is in caps or not? (9 replies, VIP)
    microsoft.public.dotnet.languages.vb
    What I really need is a short simple solution for this scenario: Imagine word like this: "TheSimpleSolution" I need to turn it to: "The Simple Solution" I need a solution, something which would turn connected words and separate them using spaces. Basically, a script which would add the space ahead of each capitalized character. Please, be so good and let me know, I know I am pretty much asking for...
    Get Active Directory Object Type (3 replies)
    microsoft.public.dotnet.languages.vb
    Dear all I hope you might help me. Here my issue: I am using the following vb.net code to receive members from a windows 2000 active directory group: objecttolook "group" objlook "member" Dim root As New System.DirectoryServices.DirectoryEntry(objpath) Dim inmembers As PropertyCollection root.Properties etc. The Problem is now that this group could contain either users, workstation account or othe...
    Slowass license provider (6 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi there, I just made my own license provider (at last!) that uses signed XML license files. When the license provider gets the license it does the following, *At runtime 1) Gets the signed XML license file from the calling assemblys resources 2) Gets the public RSA key from the calling assemblys resources 3) Attempts the validate the signature *At design time 1) Gets the signed XML license file f...
    Creating a Hex Map (12 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi All, I'm desperately looking for help regarding the following: I need to make a hexmap in it's own scrollable window on a form, when I say hex map I mean a graphical hexagon surrounded by other hexagons the same size. The program I'm writing imports region information i.e 10,13 would be a hexagon, 10 hex columns to the right and 13 hex rows down from hex 1,1. I have some source code for a Delph...
    parseing an xml string (5 replies)
    microsoft.public.dotnet.languages.vb
    I have an xml document loaded into a string that I need to parse. below is the first few elements in the xml string. ?xml version "1.0" standalone "yes"? xs:schema id "NewDataSet" xmlns "" xmlns:xs "http://www.w3.org/2001/XMLSchema" xmlns:msdata "urn:schemas microsoft com:xml msdata" xs:element name "NewDataSet" msdata:IsDataSet "true" xs:complexType xs:choice minOccurs "0" maxOccurs "unbounded" x...
    Combo Box (3 replies)
    microsoft.public.dotnet.languages.vb
    I have asked a question before some time, and a guy responded to it. His answer raised new questions and I replied them back, but still no answer. I need them urgently so I am to post the whole thing again. I've found that nobody looks at the older threads ; ( My Question was: I have a Combo box, binded to a dataset With cmbCompany .DataSource dsSpecContact .DisplayMember "Companies.CompanyName" ....
    Type.FullName returns malformed name (5 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I declared an enumeration inside an interface. Trying to use reflection to find the FullName of the enumeration type produces "WindowsApplication1.IGeorge GeorgeConstants" rather than "WindowsApplication1.IGeorge.GeorgeConstants" as I (and the rest of the framework) would expect. My code is as follows (start a new VB Windows app, add the Interface and the call to Msgbox into the Form Load, hit F5)...
    Controlling ContextMenu a bit better. (5 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hello, I have a listview control with bunch of entries. When the user right clicks on the item, I want a context menu to come up. So I created a ContextMenu instance and assigned it to ListView.ContextMenu property. The problem is that the context menu comes up regardless of whether I right click on the item or the empty space or the column header. I want it only to come up when the user right cli...
    Wokring With System.Net.Sockets (5 replies)
    microsoft.public.dotnet.languages.vb
    Hi, I have a client Server Application which was write in vb.net i m using the TcpClient Object And A StreamWriter To Send a message to the client but i would like to send other objects but for strings like arrays, my own objects and so on. how can i do that ? Thanks. T: )
    String concatenation is slow... Faster method for Bulk SQL string? (5 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi all, I'm concatenating a large SQL string for updating a table. There are 80,000 commands (rows) in the SQL string. VB.NET seems to be *VERY* slow at string concatenation when the string gets large... Is it possible to execute a SQL command from a text file? .NET can streamwrite extremely fast so I was thinking of writing all the commands to a text file then executing the text file. Is this pos...
    Ok this SUCKS! (13 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I just installed VB.net 2005 beta, now when I try to create a 2003 windows form it says C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\WindowsApplication4\WindowsApplication4\AssemblyInfo.vb(13): Import of type '' from assembly or module ' unknown ' failed. and Unable to find property 'LayoutMode' on page 'WindowsFormsDesigner\General' HELP!!!!!!!!
    How to use IsLeapYear method ? (6 replies, VIP)
    microsoft.public.dotnet.languages.vb
    When I do Dim s As String (myDTFI.GetMonthName(i)) how do I know if the month name is correct because in a leap year it's different ?
    System.DivideByZeroException does not catch exception (3 replies)
    microsoft.public.dotnet.languages.vb
    Hi, I have the following code in my app: Dim intx As Integer Dim inty As Integer Dim intz As Integer inty 0 intx 5 Try intz intx / inty Catch ex As System.DivideByZeroException MsgBox("Catch") End Try But System.DivideByZeroException does not catch the exception. If I use System.OverflowException it will work. What's the reason? Thanks, Amin
    Adding Items to ListView through another form (7 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi Everyone, I have this program I wrote in VB6 for family use. It's a DVD Database just for me to keep track of them cause I have so many lol. In VB6, I could add items to the ListView in 'frmMain' from 'frmAdd' with the following code: Private Function AddEntry(Title As String, Rating As String, Genre As String, OnLoan As Boolean, ToWho As String) Dim x As ListItem Set x frmMain.lvwDVD.ListItems...
    Problem with Textbox in a UserControl (3 replies, VIP)
    microsoft.public.dotnet.languages.vb
    I have a problem with a textbox I added to a VB 6.0 UserControl. With the KeyPress Event I want to capture the "carriage return" (KeyAscii 13). The Problem is that this event never reaches my handler, like it does when a numeric key got pressed for example. But it does if the textbox is located in a Form instead of an UserControl. Why is it not woking in Controls, and what can I do to solve this p...
    comparing datatypes (6 replies, VIP)
    microsoft.public.dotnet.languages.vb
    Hi, I want to loop through the web controls on a web form and depending on whether it is a textbox, checkbox etc perform an action. I first tried a case statement: Dim Cols As String() {"vorName", "nachName", "sacked", "employeeID"} Dim I As Integer For I 0 To 1 Select case E.Item.FindControl("edit " & Cols(I)).getType() Case System.Web.UI.WebControls.TextBox ' perform action I found out that case...
    Visit the archive for messages from this site.
  • October 2001 (208 items)
  • November 2001 (170 items)
  • December 2001 (201 items)
  • January 2002 (215 items)
  • February 2002 (354 items)
  • March 2002 (318 items)
  • April 2002 (437 items)
  • May 2002 (435 items)
  • June 2002 (320 items)
  • July 2002 (306 items)
  • August 2002 (110 items)
  • October 2002 (29 items)
  • January 2003 (182 items)
  • February 2003 (66 items)
  • March 2003 (57 items)
  • July 2003 (198 items)
  • January 2004 (1912 items)
  • February 2004 (1366 items)
  • March 2004 (767 items)
  • April 2004 (1707 items)
  • May 2004 (1006 items)
  • June 2004 (733 items)
  • July 2004 (905 items)
  • August 2004 (799 items)
  • September 2004 (333 items)
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification