I can't do that. My development environment is such that Option Strict is On. I have to explicitly convert my array to a array of strings. Any other way?
beowulfagate
Posts
-
String Arrays -
String ArraysHow do I return an array of strings from a function? Just like the way String.Split does?
-
Very simple questionYou break long strings this way. dim mystring as string = "A very, very, very " & _ "Long line."
-
Thread procedure with arguments?You could use a delegate then invoke it asynchronously. Delegates can take arguments unlike threads.
-
Mouse Hit Test: How??By definition, the enabled property "Gets or sets a value indicating whether the control can respond to user interaction"-MSDN. It can't catch any user interaction, including the click, double-click events and the mousemove, mouseup, mousedown events that you may need to hittest. Try setting the read-only property instead. This makes the control able to receive user interaction but will still be uneditable. Good Luck!
-
Menu ShortCutYeah, I know. But could it be done?
-
PrintPreviewDialogI wanted to show a PrintPreviewDialog directly on top of a form in my application just like the way IE does. However, setting the Location, Size and the SetDesktopLocation properties of the dialog fails to do this. The dialog has the same size as the calling form does but it is moved to the left and lower than the calling form. I think this is by design but I do not know why. Is there a workaround for this?
-
Menu ShortCutCan it be determined if the user presses a menu or if the user uses a shortcut? Both actions result in the same code being run, I just wanted a slightly different behavior between the ShortCut and the Menu.
-
Interrupt loop operationYou add a variable that you check within the loop. Exapmle:
dim b as boolean as boolean dim i as long for i=0 to i=1000 if b=true then exit for end if next i
you change the value of b somewhere else in your code, probably in the "Stop" Button event. You may also want to consider concurrency issues on that variable. Good Luck. -
Datagrid ColumnHeader CaptionsHas anybody ever noticed that when you right align a column in a datagrid that the last character of the columnheader text is nod displayed properly? I've tried adding spaces at the end of the text but it is trimmed and the same thing is displayed. Anybody know of a workaround?
-
question on VB6Yes it does. Try reading up on the typelib utility and also there is an example on how to make your own typelib utility from the cd. Using that, you can grab the classes, types, or enums defined in a dll or exe.
-
Retrieve TopMost Visible RowAnybody here know how to retrieve the Topmost Visible row of a Datagrid?
-
Build FailuresI am looking at the Output window and it is telling me that there where 2 build failures. However the blow-by-blow account of the build process shows no errors. There are no compiler errors in my task list and just that 2 build failures. How come?
-
Build FailuresI'm building a multi-project solution in VB.Net and it tells me that 1 failed. How do I locate what project and where in that project is causing the failure?
-
Creating a directory programmaticallyAnybody here know how to create a directory with spaces? Just like "C:\something\something more"?
-
Windows ServiceI've created a service that updates the components of several of my applications from a central file share on my network. The service is running with the localsystem account. An exception occurs when the service attempts to connect to the file share. The share contains the components that I copy to the local computer to update an application. I think the problem lies in the way the service connects to the shared folder. It uses the local computer's credentials when it connects, I think. Is there any way that the service can connect to the specified file share using the current user's credentials?
-
DelegatesI'm checking for application updates on the background thread. My application does this once per day similar to Windows Automatic Updates. The problem I had with threading is that I was not able to pass arguments to the procedure I was calling. However, I've figured a way to work around that by making the arguments available to the procedure (thru a config file it reads). The question I had with BeginInvoke is what would happen if I do not call EndInvoke on that delegate? Will it just exit after it has done it's work. What would happen if the delegate i've invoked goes out of scope but the method invoked is not finished? Will the method being invoked keep working until it finishes? Or will it just exit or worse?
-
DelegatesI am using BeginInvoke on a delegate to start a Sub. What will happen if I do not call EndInvoke on that delegate? I do not particularly need to monitor it or need to know if it is finished. I tried using threading but did not get it to work. Still trying though.
-
MessageBox And MsgBoxEver notice that the MessageBox does not have the XP look while the MsgBox does? Anybody know how to do this?
-
InvalidCastException with CAPICOM and webServicesCould we see some code? probably the entire function that includes the part where InvalidCastException occurs?