Search Results - VBForums

Search:

Type: Posts; User: Daniel Duta

Page 1 of 6 1

Search: Search took 0.01 seconds.

by Daniel Duta
Replies
10
Views
279

Re: Permutation

Hi Mark,
Your function is very ingenious and works fine. In addition, the results are pure permutations in terms of recursivity. If we take a string like "aaaa" the function will return 24 cases as...

by Daniel Duta
Replies
10
Views
279

Re: Permutation

So if the string has 100 characters we should use 100 nested loops ...:confused: What will we do when the string length is in run-time determined ?
Well, in this case n is the total number of...

by Daniel Duta
Replies
10
Views
279

[RESOLVED] Permutation

Hi all,
I am looking for a recursive algorithm that could display all possible permutations of 4 characters with themselves. Let's say we have the following string "a, b, c, d". We know from math...
4. Thread: [RESOLVED] How to check if a Word in a TextBox contains "+" Dosnt work For me

by Daniel Duta
Replies
24
Views
424

Re: [RESOLVED] How to check if a Word in a TextBox contains "+" Dosnt work For me

James, you are a valuable poster of this forum. It is obvious it was just a little misunderstanding. Sorry for any inconvenience caused.
5. Thread: [RESOLVED] How to check if a Word in a TextBox contains "+" Dosnt work For me

by Daniel Duta
Replies
24
Views
424

Re: [RESOLVED] How to check if a Word in a TextBox contains "+" Dosnt work For me

That is true. But as Datamiser has noted, in the second post Salsa has hinted he actually wants to find out if that character is missing from that string that is the same thing with If...
6. Thread: [RESOLVED] How to check if a Word in a TextBox contains "+" Dosnt work For me

by Daniel Duta
Replies
24
Views
424

Re: How to check if a Word in a TextBox contains "+" Dosnt work For me

What should I re-think? Let's take the string s="One+two". If InStr(s, "+")=0 then my text doesn't contain the "+" character. The question was simply "How to check if a Word in a TextBox contains...
7. Thread: [RESOLVED] How to check if a Word in a TextBox contains "+" Dosnt work For me

by Daniel Duta
Replies
24
Views
424

Re: How to check if a Word in a TextBox contains "+" Dosnt work For me

I wonder why InStr(TxtServiceName.Text, "+") <> 0 or InStr(TxtServiceName.Text, "+") > 0 or If Not InStr(TxtServiceName.Text, "+") > 0 when InStr(TxtServiceName.Text, "+") = 0 does the same thing...

by Daniel Duta
Replies
20
Views
452

Re: [RESOLVED] AppActivate issue

I've got the hWnd value with FindWindow and after that I passed it in the SetWindowPos function. I don't need to create a new session of IE via CreateObject("InternetExplorer.Application") but...

by Daniel Duta
Replies
20
Views
452

Re: AppActivate issue

Both functions above helped me finally to expand the IE window. After dozens of attempts...I took the Magic Ink advice and I removed the AppActivate from my application because of its unstable...

by Daniel Duta
Replies
20
Views
452

Re: AppActivate issue

I tried other 2 methods, GetObject(, "InternetExplorer.Application") and a loop in CreateObject("Shell.Application").Windows, but I failed in both of them. Simply, if I minimize the current instance...
11. Thread: [VB6] - Module with advanced mathematical functions for real and complex numbers.

by Daniel Duta
Replies
4
Views
360

Re: [VB6] - Module with advanced mathematical functions for real and complex numbers.

Hi Anatoly,
Regarding your functions of min/max, I just wonder why didn't you build only one function, both for max and min, without any limitation on how many numbers are compared (number of...

by Daniel Duta
Replies
20
Views
452

Re: AppActivate issue

Many attempts and no success.. At least I found that error occurs in same cases in relation with the window state - for example, when the IE window is minimized. Now I try to maximize a possible IE...

by Daniel Duta
Replies
20
Views
452

Re: AppActivate issue

In this case I should have FindWindow()=0 but in all cases/attempts the hwnd value was greater than zero (the Msgbox never displayed any message). Do you mean that Invalid procedure call or argument...

by Daniel Duta
Replies
20
Views
452

Re: AppActivate issue

This error is not related to SendKeys command at all. I have commented all lines below AppActivate AppWFM and this line only gives the error. It is somewhat related to that parameter which in my case...

by Daniel Duta
Replies
20
Views
452

Re: AppActivate issue

Hi, guys, I am honored by your support. Unfortunately the SetForegroundWindow function in conjunction with FindWindow gives the same run time error 5: Invalid procedure call or argument. However, I...

by Daniel Duta
Replies
20
Views
452

[RESOLVED] AppActivate issue

Hi,
This time I met a strange issue when I tried to activate an application window. I have to insert some data on some fields of a website. For this purpose I use SendKeys with success but whenever...

by Daniel Duta
Replies
4
Views
248

I read that article before my post but I haven't seen any row regarding the COM library usage. On the other hand, to my knowledge of English, "deprecation" is more an advice than a verdict related to...
18. Thread: [RESOLVED] Find Data in Listview VB 6.0

by Daniel Duta
Replies
9
Views
489

Re: Find Data in Listview VB 6.0

Maybe something like this :

Private Sub Text1_Change()
If Len(LTrim(Text1.Text)) = 1 Then
Call FilterList(LTrim(Text1.Text))
End If
End Sub

by Daniel Duta
Replies
4
Views
248

I don't know if somebody here had some experience with Google Earth automation but is known it comes with a rich COM library that should allow us to integrate many facilities in those applications...
20. Thread: [VB6] GDI+ Usage & Samples

by Daniel Duta
Replies
77
Views
43,433

Re: [VB6] GDI+ Usage & Samples

I can't believe it. This guy was waiting for a response almost 2 years... No doubt it is a record of this forum :)
My respect, Rebo.
21. Thread: [RESOLVED] How to determine the presence of a child form

by Daniel Duta
Replies
6
Views
227

Re: How to determine the presence of a child form

Excellent ! :thumb:
Thank you all.
22. Thread: [RESOLVED] How to determine the presence of a child form

by Daniel Duta
Replies
6
Views
227

Re: How to determine the presence of a child form

Hi guys, Thank you for your feedback.
Honestly, I had some similar suspicions about it but I wasn't sure. It seems that this form is an illusion in spite of the fact that it does simulate very well...
23. Thread: [RESOLVED] How to determine the presence of a child form

by Daniel Duta
Replies
6
Views
227

[RESOLVED] How to determine the presence of a child form

Hi, I have to work these days with a web application developed in Silverlight and my program has to detect if that app is open or not. For this purpose I used the known FindWindow function that...
24. Thread: [RESOLVED] How to convert a byte array ?

by Daniel Duta
Replies
11
Views
447

Re: [RESOLVED] How to convert a byte array ?

You are absolutely right, Arno, the Clipboard usage is redundant in this case. Just fg.Clip = myText does all the work.

Me neither :) I tested an idea, it worked and I thought that it is the right...
25. Thread: [RESOLVED] How to convert a byte array ?

by Daniel Duta
Replies
11
Views
447

Re: How to convert a byte array ?

After many attempts I have managed to solve my issue avoiding the byte array conversion. Knowing the FlexGrid control has a useful Clip property I preferred to transfer my text file from the vb...
26. Thread: [RESOLVED] How to convert a byte array ?

by Daniel Duta
Replies
11
Views
447

Re: How to convert a byte array ?

Thanks for reply, Arno. As I mentioned above I need a 2D array as result because my flexgrid requires a 2D variant array for its LoadArray method. Let's say I would split further the byte array as...
27. Thread: [RESOLVED] How to convert a byte array ?

by Daniel Duta
Replies
11
Views
447

[RESOLVED] How to convert a byte array ?

Hi,
I have a small text file with 2 columns (tab delimited) which was stored as resource file. When I try to get back the file, its content is provided as byte array using the native function...
28. Thread: vbRichClient Form.SetMinMaxDimensions strange behaviour

by Daniel Duta
Replies
7
Views
263

Re: vbRichClient Form.SetMinMaxDimensions strange behaviour

This feedback is not very polite. Instead to see the Olaf's effort and generosity was more important a whining remark about a lack of an update.
29. Thread: [RESOLVED] Sql simple Query Dosnt Show Results no matter what i change or do why?

by Daniel Duta
Replies
33
Views
556

Re: Sql simple Query Dosnt Show Results no matter what i change or do why?

Try to format your interval limits before to run the query itself. I think the Access requires the american data format which starts with "month"
Dim fstDate As Date, secDate As Date

fstDate =...
30. Thread: [RESOLVED] Sql simple Query Dosnt Show Results no matter what i change or do why?

by Daniel Duta
Replies
33
Views
556

Re: Sql simple Query Dosnt Show Results no matter what i change or do why?

Have you tried
RsT.Open "Select TOP 1 * From ZHistory Where " & _
" ZDateStart BETWEEN #" & Dstart.Value & "# AND #" & DEnd.Value & "#", CN
Anyway if want to get only the first record in my...

by Daniel Duta
Replies
11
Views
455

Well, I don't understand this point completely. Actually, I don't understand it at all. Do you mean that whatever I set the AutoRedraw property to true a bitmap somewhere is created ? I don't see any...

by Daniel Duta
Replies
11
Views
455

After many attempts I have managed to use the RenderPNG function properly. Yes, LaVolpe, I set the form to AutoRedraw=True from beginning and I tested your function in many possible scenarios...

by Daniel Duta
Replies
11
Views
455

Thanks for reply, Sam. Yes, I have tried but whenever the main Form is re-sized (maximized/minimized) all pictures visible previously are disappearing. I think once the form is resized my pictures...

by Daniel Duta
Replies
11
Views
455

Hi,
This thread is related to my previous issue regarding how to display a png image in a simple/simplest way. The Api function created by LaVolpe a few years ago...
35. Thread: [RESOLVED] How to open a resource file ?

by Daniel Duta
Replies
2
Views
311

Re: How to open a resource file ?

Thanks for your hint, LaVolpe. It seems that you are very busy these days :)
For those interested in this small procedure I used the code below :

Private Sub btnScript_Click()
Dim...
36. Thread: [RESOLVED] How to open a resource file ?

by Daniel Duta
Replies
2
Views
311

[RESOLVED] How to open a resource file ?

Hi,
I have loaded a text from notepad to a res file and I intend to get this info in clipboard when a click event is fired. The idea is I don't know how to get back the data stored in that res file....
37. Thread: [RESOLVED] A WIA Image

by Daniel Duta
Replies
3
Views
245

Re: A WIA Image

Hi LaVolpe,

I am honored to have a response from you on this topic. You had great contributions to vb community over time and like other guys I take this opportunity to thank you for all your...
38. Thread: [RESOLVED] A WIA Image

by Daniel Duta
Replies
3
Views
245

[RESOLVED] A WIA Image

Hi all,
I have a reference to the well known WIA library that provides many benefits to users who need to handle images in many ways. In my case, I just want to set a picture position inside a Form...
39. Thread: Classic VB6 to be supported at least through 2024.

by Daniel Duta
Replies
7
Views
481

Re: Classic VB6 to be supported at least through 2024.

Until it is released a new vb6 version we could try to take a look to that very promising B4J developed by Erel - he has just released 2 new versions for Windows and IOS - which is 100% free and...
40. Thread: How to efficiently divide a string array into several arrays under certain conditions

by Daniel Duta
Replies
27
Views
1,128

Re: How to efficiently divide a string array into several arrays under certain condit

I just wonder if the ADODB.Stream approach could be also used to read UDT arrays stored as binary ?
Results 1 to 40 of 206
Page 1 of 6 1

Featured