|
Oh I'm not saying that they should be locked out of CP. I just choose to not support VB6 anymore. I'm kind of going against the fact that there were a bunch of VB.NET MVP's that clamored to Microsoft to continue support for VB6 into Vista and beyond.
|
|
|
|
|
shailendra_csp wrote: Is this possible to search any thing in google search using VB
Yup
You'd put your question in the query-string, and then fetch[^] the resultpage. Once you got the results, read them as a text and fish out the things that you want.
I are Troll
|
|
|
|
|
Hello
I want to insert a picture flowing by other that at the end it have a meaning
So the number of these picture depend on the user input throug a textbox
Ex:
if the user input is: a*b
so the system will draw 3 circle
the 1st one with an arrow that point to the 2nd
the second with an arrow pointing to the 3rd
notice that these figure exist
any idea
Thanks in advance
Assaf
|
|
|
|
|
Any chance you can clear up your question a bit, I'm having a hard time deciphering exactly what it is you want. What have you tried so far? Any chance you can post some relevant code so I can try to see what you're doing?
|
|
|
|
|
I sorry for my question ?
I try to draw the machine depend on what the user give as input.
Ex:
if the user enter a*b
the system must show a specific machine.
so i try to figure all the image needed by the system to draw different kind of machine
but my problem how to tell the system to insert this figure followed by that one regarding the user input, off course there is a rule to chose which is defined.
"In other language I try to figure out the machine(DFA) that accept this kind of language that is represented by the user input"
Thanks a lot
Assaf
|
|
|
|
|
I too can't figure out what you're talking about.
How does the input "a*b" relate to drawing circles??
|
|
|
|
|
Is it like first circle would have radius equal to "a", second with radius equal to "b" and third with radius equal to their product? You need only two things here then:
1. Some sort of parser that would compute result based on text you enter. You can use a switch statement if the mathematical operators you allow are few and basic. If you are allowing large and complex number of operators, get a third party parser.
2. You need to handle the Paint event of your form (if you are drawing circles directly on Form). There you can draw the circles using the Graphics object's DrawEllipse method. Make sure to redraw all the circles everytime or else they would vanish.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Hi,
Can anyone out ther help me with the creation of system modal dialog box. Actually im trying to make a system modal dialog box for my assignment. Please help me!!
|
|
|
|
|
A simple Google search will yield many examples.
|
|
|
|
|
I made a google search...but i was not satisfied!!!
|
|
|
|
|
Why is that ? Perhaps if you want help, your best bet would be to say 'I searched google and found examples, this is the code I've ended up with, but it still doesn't do what I want because.....'. That way, we'd know you'd tried to do more than ask us a basic question that google could answer.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Showing forms modally or modlessly is one of the basics of windows forms development and should come on page one of your textbook, or close to. Seeing as Google throws up the definitive Microsoft document at the top of the list as well, I fail to understand your lack of satisfaction.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
I assume by 'system modal' he means a dialog that must be dealt with before the rest of the system reacts. I admit, I'm not sure how one would go about doing that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
linto_11 wrote: system modal dialog box
My apologies, I may not have understood you completely. Do you really mean system modal here, as I do not think such an option exists any more.
|
|
|
|
|
System Modal dialogs don't exist in Windows NT and above. They only existed in Windows 9x and below. So, are you talking about an application modal dialog??
|
|
|
|
|
Hello,
I am trying the following code with MS-SOAP Toolkit v3.0:
Dim Connector As New HttpConnector30
Dim Serializer As New SoapSerializer30
Dim Reader As New SoapReader30
Connector.Property("Timeout") = 0
Connector.Property("RequestHTTPHeader") =
"Authorization: Basic " & encode64(gstrDatabaseName & "\" & gstrUserName & ":" & gstrAppUserPwd)
Connector.Property("WinHTTPAuthScheme") = 1
Connector.Property("EndPointURL") = "http://servbus/general/Usuario12V1?WSDL"
Connector.Connect
Connector.BeginMessage ' serializing the SOAP message here
Serializer.Init Connector.InputStream
Connector.EndMessage ' Gives the ERROR here!
But even though the same works perfectly with "http://", it is giving the following error with "https://":
Runtime error '5400'Connector: SSL certificate common name (host name field) is incorrect HRESULT=0x800A1529 - Connector:
Unspecified HTTP error. HRESULT=0x800A1518
Since the same service works fine if I invoke it from my IE6, I suppose the certificate should be fine. But this is something mysterious, and no material about this error...
Am I doing something wrong? Please suggest me a solution for this...
Thanks a lot!
Eduardo da Silva Ferreira
Svs Info Developer
Telephone +55 16 3324-9294
Mobile +55 16 8804-5898
Email eduardo.s.ferreira@gmail.com
|
|
|
|
|
Hi, i want to know how to create a instance of this Type:
System.Threading.TimerCallback
using reflection....
its usually created with this...
Dim myTimerCallbck As New System.Threading.TimerCallback(AddressOf MyFunc)
but with reflection ...
i found 1 constructor....
and it has 2 parameters.... 1 Object and 1 IntPtr....
and i have this objects to work with:
dim theDel as [Delegate]
dim theType as Type 'TimerCallBack Type
dim theConstructor as Reflection.ContructorInfo ' the only timerCallBack contructor
dim theParamsType as Reflection.ParameterInfo ' the 2 params are [ Object as Object and method as IntPtr ] found in the constructorInfo
i was trying using this
dim theArgs as Object() ' its a 2 length object
Return Activator.CreateInstance(theType, theArgs.ToArray)
i tried to send theArgs with
dim theArgs = New Object(){theDel,nothing}
Return Activator.CreateInstance(theType, theArgs.ToArray)
or
dim theArgs = New Object(){nothing,theDel}
Return Activator.CreateInstance(theType, theArgs.ToArray)
... but of course i get errors...
'i also found this function that return a IntPtr
Dim intptr = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(theDel)
'and tried send theArgs with:
theArgs = New Object(){theDel,IntPtr}
Return Activator.CreateInstance(theType, theArgs.ToArray)
'or
theArgs = New Object(){nothing,IntPtr}
Return Activator.CreateInstance(theType, theArgs.ToArray)
But Again... the same error System.ExecutionEngineException
and now i don't know what to do....=/
How Can i Fix this??? Any Help is Welcome
'English isn't my first language....sorry!
|
|
|
|
|
Hi,
I don't know, however I think you can work around it, by providing a regular callback (static code, no relection), in which you call the actual callback method using reflection in the normal way.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
im creating a class that can take a string and read as a custom code , execute methods and return a object(or nothing) ....
lets name this class as StringToCode
ie.:
dim query as string = "'Hello World!!! Today is ' & new('System.DateTime').now.tostring"
dim result = StringToCode.query(query).getresult() ' result = "Hello World!!! Today is 15/11/2009 19:46:10"
now i was trying to create a threading.timer object to run a method named 'Loop' from the the main form ....
Dim sNewCallbackQuery as string = "new('System.Threading.TimerCallback',null,addressof(opt,'Loop'))"
Dim snewThrTimerQuery as string = "new('System.Threading.Timer'," & sNewCallbackQuery & ",null,0,100)"
Dim optionalObj as object = me
StringToCode.query(snewThrTimerQuery,optionalObj).getresult()
when i call the query method.... i pass the queryString and me as optional object.....
the query method takes "addressof(opt,'Loop')" and tranform into a delegate
that is the loop method from the 'opt' object...that is the method Me.Loop
but the method fails on the creation of the timerCallback object...
because as i said in the previous post,
i dont know how to create it using reflection having the delagate as a parameter
|
|
|
|
|
Did you look at Delegate.CreateDelegate() ?
I've never used it, but it seems close to what you need.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Yes...
Dim sNewCallbackQuery as string = "new('System.Threading.TimerCallback',null,addressof(opt,'Loop'))"
Dim snewThrTimerQuery as string = "new('System.Threading.Timer'," & sNewCallbackQuery & ",null,0,100)"
Dim optionalObj as object = me
StringToCode.query(snewThrTimerQuery,optionalObj).getresult()
when the StringToCode parses this part : "addressof(opt,'Loop')"....
it uses the [Delegate].CreateDelegate to create the delegate of the 'loop' method of main form....
and i have to use this delegate to create the TimerCallback Object....
im stuck in this part!!
if i manage to create the System.Threading.TimerCallBack object....
then i can create the System.Threading.Timer object with the callback as a paramater....
and the loop method will be called every 100 milisecs
|
|
|
|
|
Hi,
I have developed a small application for Windows Mobile 6.x OS with VB.net and When I browsethe available .NET references, The Microsoft office com objects are not listed. My aim is to convert a listview to an Excel file in mobile application. Therefore I intended to define "Imports Microsoft.Office.Excel" statement but there is no office com objects. How can solve the problem
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Do you have office or the visual studio tools for office installed?
|
|
|
|
|
You are a bit stuck I'm afraid. Referencing the Excel Automation objects will not work for you because it is not Excel you are interfacing with, but rather Pocket Excel. Problem is that Pocket Excel does not expose and automation interface, therefore you cannot do it.
I have heard that there are third party products that enable you to work on the underlying files directly. www.tmssoftware.com[^] provides some of these, though I have never tried to use them.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
Hello!
I am wondering how i send console commands like:
give weapons_Whatever
or
Sv_chats 1
to counter-strike: source with my vb.net application.
I am thinking of my app as a Trainer . . . .
I dont whant it to send keystrokes I whant it to send actual commands . . .
|
|
|
|