Answer Questions
GaryPod VB.NET and Design Patterns
I have implemented the Observer and Decorator pattern for the middle-tier of an application I am writting and after making the changes performance dramatically worsened. Has anybody experienced the same behavior Does it have to do with all extra objects created I am at a loss since everybody does nothing but praise the practice (Design Patterns) but I've had nothing but adverse results. Thanks for your help, Danny You were right. I discovered two methods that I implemented along with the design pattern and they ended up creating the slow down. One has to do with the fact that I was trying to get to three levels of observers (i.e. object.observers(0).observers(0).propertyname) . I have not proved this yet but I'll l ...Show All
ChrisNijjar baby lock
Hi, i got a couple of questions according to how to disable things in win xp: I'd like to disable the net connection on xp - how can i do that how can i disable installing any program disabling themes disable running several programs disable access to several folders I'd like to write a baby-lock onto my computer because i'm not the only person who uses it, and i don't want to allow others to get full control on my pc. i am working with vb2005. Any feedback is appreciated, thnx Attila WindowsXP already has this program built in. Go to the User Settings and create a profile for each user to login under. Then you can disable/enable whatever you want in there. Similar to what most companies do to preve ...Show All
Calinoiu Alexandru VSTO SE Global data
Hi, I've been using VSTO SE with vb.net to create an add-in to outlook, and found some code on a site using globals.thisapplication.(variablename) to access global variables, however it doesnt work in SE, how would i access something from out side its class Thanks Chris Chris, I don’t know what exactly your add-in to outlook is. If you use the Visual Studio Tools for Office System, I will give you an example on Add Customer Toolbars and Toolbar Items to Outlook. This example runs in VSTO and Microsoft Office Outlook 2003. It creates a toolbar, which contains two buttons, appears at the top of the application. When you click a button, the code displays a message that show ...Show All
Stanislav Ogryzkov VBScript Qs - Base Url
Hi, Just wondering what the function/property is in VBScript that will return the base url bump iGNiTe wrote: Hi, Just wondering what the function/property is in VBScript that will return the base url Try a search on>> http://www.w3schools.com/vbscript/default.asp for your answer. I'd maybe use the SPLIT function so that the array results returned would spilt on the "/" character. See.>> http://www.w3schools.com/vbscript/func_split.asp Use a 1 in the function for a textual compare. Regards, S_DS This is a pretty easy Qs... doesn't anyone know ...Show All
Hussain Saffar VB6.0 to .NEt migration strategy
Hi All, We are looking for information that would help us understand the complexities involved in the migration for Windows and Web apps. Can somebody share information on a definitive guide for VB/ASP to .NET migration. TIA. Please visit Visual Basic 6.0 Resource Center , there are many articles that help you to upgrade to Visual Basic .NET. ...Show All
rsri Array starting at One
I'm trying to make a array start at 1 and go to 600, i tryed using "to" but never worked. ReDim Preserve Array(1 to 600) sorry for double post, said it had a error and i didn't think it would post so i remade it to try again I looked at it and i dont think that can help me, i want the array to start off at 1 and go up instead of 0 just to add, since I can't edit my original post, if you are trying to make an array of a fixed size, then you do this: Dim theArray( size ) as type so if I had a string array and wanted its size to be 10: Dim theStringArray(10) as String You still dont understand, what i'm tryi ...Show All
shekhar saran How to a long line into 2 lines?
I forgot... I think u need to type something close to this: [first half of line] +_ [2nd half of line] Couldn't google it :( could someone remind me. So its not possible to: Dim array() As Char = { "a" , [add something here] "b" } ... and get it to run I remember theres some way to join them. not quite. remember, the char array is just a single character collection, not a string. you could do this with a string array yes but not when its a char array. string array: Dim theArray() as String = {"a", "my long string here", "b", "another string"} another example: Dim myString as String = "hey!!" Dim theAr ...Show All
kalprin LoadLibrary returns null
Hello, I have a windows application in VB .NET (VS 2005) that tries to load an unmanaged dll dynamically using LoadLibrary. However the LoadLibrary constantly returns 0. I checked the last error message right after the call to LoadLibrary using Marshal.GetLastWin32Error and it returns 998. It is interesting that when I laod the same dll in VC++ .Net using the LoadLibrary function it returns the correct handle. I appreciate if someone could help me out with this, Thanks in advance STabrik wrote: Hello, I have a windows application in VB .NET (VS 2005) that tries to load an unmanaged dll dynamically using LoadLibrary. However the LoadLibrary constantly returns 0. I checked the last error message right after th ...Show All
Jens-Christian Larsen MediaPlayer and Read Movie Files
I want to read media files and this files show as link in datagrid. example C:\Movies Movies directory in exist all files break into to datagrid Thanks For Help This OK.But files on datagrid I want to play MediaPlayer Is this possible Thank you for help Thank You Spotty Well you have 2 options: call Windows Media Player as a process, giving it the arguments of the file to play use the WMP 10 SDK and implement WMP in your application you will also implement a CellClick event which basically will be fired when the user selects a cell which means you can then get the row and cell selected and pa ...Show All
billqu Bypass Print Button on ReportViewer
I'm developing an application that will print a random 10 digit integer on a receipt (passcode for temporary use of application), but I'm not sure how to bypass using the Print icon on the toolbar of the ReportViewer. I would like to use a single button to create the value, put it in a database and print the receipt. I have everything working, but I have to click my create passcode button and then click on the print button once the report is showing. My question is: Can I call the print function from the ReportViewer toolbar within my Create Passcode button's code It would be really annoying to have to click twice to do what should be a single function. Thanks. How do I reference the btnPrint butt ...Show All
pinkybaby replacing start menu
Hi, I have the following questions: 1. How can i add a button similar to start menu above the start menu button i tried the topmost property but in this case if i click on the taskbar or on the notification area, my button disappears (exactly goes behind start menu button). 2. If the first option is impossible, how can i get the windows (in the same way as it is in the minimized windows on the taskbar of start menu) of currently running programs and the icons of the start menu's notification area thnx; or it also would be great if someone could tell me how to detect and show my form when a user clicks on the start button of xp... :) I would like to detect when a user clicks on his/her start button in windows xp, and t ...Show All
Bear S. Working with arrays
hi, i'm currently working with a function that queries a database for a number of employee id's. i'm trying to save all results in an array and pass then to another function via return. how can i add to an already populated array since i'm using data reader and how can i pass the whole array in return. my code is something like this: dim employee_ids() as string while reader.read ' data for storing to array is reader.GetValue(1).ToString() ' how do i add to the existing array with existing values end while return employee_ids ' how do i pass the whole array in return thanks in advance, dave thanks, i worked on your first function and tweaked it a bit to show the individual a ...Show All
patio87 button_click on User Control setting property button on Form
How could I set up a publish/subscribe event mechanism so that the user control button event below does not have a hard-coded reference to a button on the main UI form whose 'visible' property it should be able to set. What I want to do below creates a circular reference. Mainform references User Control User Control references Main Form. I don't want to do that. Private Sub User_Control_Button_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles User_Control_Button.Click MainForm.Button.visible = true End Sub Thank you, -Greg Thank you Andrej. Good solution. I am working on an application which has all the user controls in the same assembly. ...Show All
fredplain Picturebox format conversion?
I'm running into a minor snag. I load a bitmap into the clipboard using the Ctrl+C command. The program I wrote, then copies the clipboard into a Bitmap object. Next the program assigns this as the Image of a Picturebox object. So far so good... This is where the problem pops up. The Image displayed in the picture box is a dithered image. A nice solid brown patch becomes a dithered patch of color. It shouldn't be system display settings, since the original image displays properly. It isn't the copy operation, since I can set the clipboard object to the bitmap I just loaded, paste it into a graphics program, and the dithering is not there. It appears to be a function of the picturebox assignment. Sample code: Private ...Show All
Matt Penfold Excel's Undo buffer
Hi All, I need a utility that will flag a row as changed. Excel's Worksheet_change does the job well ( http://www.mvps.org/dmcritchie/excel/event.htm#autodate is an example of how to achieve this) except that the undo buffer is cleared when any VBA code is executed. Is it possible to have the best of both if I were to use VSTO Thanks in advance for any insight into this. HS I'd pitch this question to either the VSTO Forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=16&SiteID=1 Or the VBA Forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=74&SiteID=1 As these appear to be the two products you talking about in this question. ...Show All
