Could anyone possibly give me an API, MSDN Reference, or a starting point? Im trying to create a program that will auto arange the icons on the desktop. But i cant seem to find even an Native API to access the desktop. Any help is appreciated. Thank you.
GRMartin
Posts
-
Desktop Icons -
Printing Arrays...Does anyone have a function, method or sip of code that will print an array to a multiline string like print_r() will do in PHP? Thank You
-
Console Application ProblemsNo it doesnt... if this were C# Forms or VB forms that might work, however... a console app is a module, it hasnt got a class name or functions behind it beside what it builds... id need to say get a handle of the running thread, and tell that thread to terminate... im just not sure as to how i should do that. Ive wrapped a few of the console APIs... FreeConsole onle destroys the window handle to the console itself... it doesnt terminate the process behind it...
-
search dataset?'Make a fake DS and Table Dim DS As New DataSet With DS.Tables.Add("Account Numbers") .Columns.Add("FName") .Columns.Add("LName") .Columns.Add("ACCTNO") End With 'FName |LName |ACCTNO | '------------------------ ' | | | ' | | | For Each r As DataRow In DS.Tables("Account Numbers").Rows() If r.Item("FName") = "John" And r.Item("LName") = "Doe" Then 'DO SOMETHING End If 'Modify a specific value Select Case r.Item("FName") Case "John" r.Item("ACCTNO") = "J" & CType(r.Item("ACCTNO"), String) Case "Dan" r.Item("ACCTNO") = "D" & CType(r.Item("ACCTNO"), String) End Select Next 'to return a row number Dim cnt As Int32 = 0 Dim rownum As Int32 While DS.Tables("Account Numbers").Rows.Count() > cnt With DS.Tables("Account Numbers") If CType(.Rows(cnt).Item("FName"), String) = "Joe" Then 'if in a function return cnt 'otherwise change a var out of scope rownum = cnt End If End With cnt += 1 End While you can function these out... i hope it helps... also you can return full rows instead of just the offset number if youd like... if you cant read the code, cutting and pasting it in to vb will reset it to something you actually can follow.
-
Console Application Problemsyeah i know but i need to to prematurely quit... say on error... and im 4 functions down... and it cant just send me to an error dialog... has to print to a screen ... wait for any keypress and then terminate like a good dos program does...
-
search dataset?normally id just create a loop and go through all of data row by row... You could function that as well, to allow you to use the same code for different sets of columns and values... If anyone else knows something easier id like to know as well...
-
Console Application ProblemsIm using a console application because the program im working on is for automation purposes. Only problem is, i can figure out how to end the program. In a forms based program is is ME/MYBASE/THIS(C#).Close (because the program is a class) in the console its none of these. Ive tried Wrapping the API call of FreeConsole from Kernel.lib and it works only it doesnt stop the undrlying process just the window. Is there an easy way to do that that i may be overlooking? Thanks Very much for the help. G. R. Martin
-
SpeedIm new to VB.net in fact before then i hadnt touched VB since 5... in either case, im using VB to write Scripts to interact with Macromedia flash. Pretty much all it does is create these scripts out of a database and then Starts them as a process. Part of System.Diagnostics... My problem is Macromedia Flash has alot of overhead and reacts slowly, also after the loop i need to reorganize all the files. Ive got everything set up to do this. But VB is running too quickly, once the loop is done, it deletes the files, before flash is done with them. Thus causing an exception. Is there anyway of SLOWING down VB?