|
The actual problem is that persian language is written from right to left.
So I want to have a tree to be expanded from right of the screen to the
left but I dont know how to do it. I have the same problem with toolbar component.
|
|
|
|
|
Well, after a bit of digging, I've figured out that the TreeView control doesn't support drawing the tree right to left, but does support right to left text alignment. Same with the Toolbar. It looks like a large bunch of the controls don't support drawing right to left, other than text alignment.
You can implement what's called 'Mirroring' in code to get the TreeView to showup drawn right to left. There is an example of it here[^] on CodeProject, but the process is not documented in the article. You'll have to look at the code to figure it out. But, that article lists a BUNCH of controls and their right to left support.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I found a small problem in using vs.net to create a application,could someone help me? Thanks!
Last time when I create a toolbar in my application---I just use the normally way to create it. It seems work well,but when I enable the Windows XP visual style,it won't work: I found no icons in the toolbar! I just use the only one word: System.Windows.Application.EnableVisualStyle .
I try this in another language:C++ or c#,the same problem occur!
Could someone help me?
|
|
|
|
|
I am at the end of creating a wizard to install MDAC, MSDE, restore a database and then back it up. aaaaarrrggh what a.......!!
What the issue is, is that the MSDE install is in the middle and requires a re-boot so i have added some reg keys to kick off the wizard when it comes back up in the run-once key.
When it comes back up it says the "file is not found 53" and doesn't start the wizard obviously. What am i doing wrong?
The key added holds the value G:/MSDESetup.exe as this is where the exe is stored.
Any help greatly appreciated....
Many Thanks
Harry
|
|
|
|
|
Is the G: drive is a network mapped drive? You might want to try moving the startup for the wizard into the user's Programs/StartUp menu instead of RunOnce. The drive might not exist when the RunOnce key is parsed and executed.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi friends.. again with a short question.. here i am ... Well I placed a tool bat at my MDI form... but as soon as i place a background image at that main MDI form.. that also starts behaving as a background image to that toolbar too... I dunno why is soo.. it went ok a few days earlier..
but now i deleted the tool bar.. placed it again.. still the same problem..and this problem occurs when i put buttons on the toolbar...???
how is it happening...? how to prevent that image to be displayed on toolbar...???
tahir
|
|
|
|
|
Printing in VB is a mess.
I'm trying to print 2 sides of the paper in stead of one (I now use printform)
With this function it is not possible to do so....
I need to send more than one form at once to the printer (as one Printjob), but i have no clue how to do this, without the loss of quality.
Can anyone help me?
thnx
Maverick
|
|
|
|
|
I have created a secure shell in VB that sits in place of the desktop. In this shell there are a number of icons, which when clicked on run up the specified application. This then logs time spent in the application. When it finishes I then just note the time down and work out the elapsed time. However to find when the application finishes I have created a loop that checks whether the application has terminated. So far so good. But now the problem I have is that every 15 minutes I want to create a file of the time spent in each of the applications and send it off to another machine. The timer control in VB will only go on for 1 minute before having to reset it, so thats not really good. I could implement a C++ program to run a timer but then I have the problem in intergrating the two codes together, as the C++ will not know the contents of the variables in the VB application. I had thought about writing the data out to a file as I go (created and opened in the VB code), but then the C++ timer could cause problems in trying to close the file down, and also I would not be able to rest the variables in the VB code easily. Obviously I would like to keep all the code in VB if I could. Also does the timer allow you to come out of the loop that I may be in whilst waiting for a currently running application to finish, and then go back into the loop.
Any help would be great. Thanks
Simon Kearn (simon.kearn@lmco.com or simon.kearn@ntlworld.com)
|
|
|
|
|
Why now just write your reporting app (in VB of course) without any timer support, then just have the Windows Scheduler Service (Scheduled Tasks) kick off the app every 15 minutes. You could even schedule it to run between the hours of whatever to whatever and on what days.
This would, of course, require that you keep your information in a file as it's being created...
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dim i as Integer 'In your init routine
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e _
As System.EventArgs) Handles Timer1.Tick
i += 1 'Increment for each minute - Interval set to 60,000
If i > 14 Then
'Do your file stuff here as 15 minutes have elapsed
i=0
End If
End Sub
If "to err is human", programmers must be superhuman...
|
|
|
|
|
Thanks for that.
On the other issue; if I am in a loop at the time of the timer Interval expiring. Will I get returned back into the loop once the timer procedure has been completed. Can't seem to find any info on whether this will happen or not.
Ta, Simes
|
|
|
|
|
You'll never actually leave the loop. You MUST put a Application.DoEvents in the loop, somewhere where it will execute fairly often, so your app will get the Timer Tick events and be able to process them. As a general rule, without the DoEvents, your app will stay in the loop and only execute the stacked up events when the loop terminates and the function that it's in gives up control to the GUI again.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Has anyone ever used IDispatch in one of their .NET apps? I'm trying to progmatically naviate to a website using the AxWebBrowser1 and download images that are on the page. I can get to the page and acquire the paths to the images but I can't save them. They are either tif images or pdf images depending on the site. I tried using the SAVEAS in the ExecWeb method. It saves the file but I can't open the image. Plus, even though I have the DONTPROMPTUSER settiing, it still prompts. So, I've been reading that you can create your own interfaces with IDispatch and IUnknown but I have no clue as to how to even start or if I'm going down the wrong path.
Please help
|
|
|
|
|
IDispatch is a little extreme for what you want to do.
You were on the right path with SAVEAS, but as you've found out, the WebControl will ask the user to pick the filename not matter what you try and save. This is, of course, a security reason. We don't want an app just saving thousands of copies of image to your machine without you knowing, do we?
You can use the URLDownloadToFile function, found in URLMON.DLL, to get around this:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" (ByVal pCaller As Integer, ByVal szURL As String, ByVal _
szFileName As String, ByVal dwReserved As Integer, ByVal lpfnCB As Integer) As Integer
The docs on URLDownloadToFile are here[^].
There is a good example of it here[^], and the short KB Article on it here[^].
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you. I'll take a look at your examples that you attached. I can't seem to get it to pull the image so I'm wondering if it has something to do with how the image is on the server. Does it have anything to do with converting the path to an absolute address? If so, what is that and why would you need to resolve a URL to an absolute path?
|
|
|
|
|
I tried using this code again and this is the error that I'm getting. The return value is
6473926612615181. Which, since I'm new I don't really know what that means other than it tells me it didn't work. Any ideas? This is the type of path as an example that I'm trying to download
www.URL/imagescans/62/2002-1842262-2-255520-U-20030505-PU.tif.
Any suggestions? I have previously done this using the HTTP50.ocx in VB6. Should I maybe use the Http that comes with VB.Net to do this instead?
|
|
|
|
|
CreativeCat wrote:
this is the error that I'm getting. The return value is
6473926612615181.
That's not an error. It's just a garbage value that was returned. Was there are actual error or just nothing useful returned? The .NET BCL doesn't have an equivelent function.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No, I didn't have an error returned. But the image doesn't save to my hard drive either. Would it be because it's a tiff file?
|
|
|
|
|
I would like to know if they're an easy way to get the name of the mdichildren in an mdiparent. Because i want to display their name in a label.
Can someone help me ?
I am NOT a newbie
|
|
|
|
|
XGaMeS wrote:
I am NOT a newbie
You risk alot putting this on the table!
You can enumerate through the MDIChildren collection in your parent form:
Dim strName As String
Dim frmChild As Form
Dim x As Integer
For x = 0 To Me.MdiChildren.Length - 1
frmChild = CType(Me.MdiChildren(x), Form)
strName = frmChild.Name
Next
RageInTheMachine9532
|
|
|
|
|
Greet! thanks you
And I found another way to do exactly what I was looking for.
<br />
If Not IsNothing(ActiveMdiChild) Then<br />
Select Case ActiveMdiChild.Name<br />
Case "name"<br />
lblnameform.Text = "[text]"<br />
End Select<br />
I am a newbie
|
|
|
|
|
Hi,
I'd like to know how to incorporate the ActiveDesktop in my VB.NET project.
Can some point me to a how-to guide or a FAQ on this topic?
T.I.A.
Emdek
Happy coding....
>Colt 45: The Perfect Point'n'Click Interface <
|
|
|
|
|
Your going to have to describe what you mean by "incorporate". ActiveDesktop is a variation of the desktop, where you can have it display a working web page or image or whatever. It's like having a web browser for a desktop.
So what do you mean by incorporating this into your app?
RageInTheMachine9532
|
|
|
|
|
Hi Dave,
Thanks for the reply. "incorporate" was rather a poor choice of words. "Get access to" is more in the line of desires
And maybe ActiveDesktop is the wrong place to look for, but it seem to me the logical place to start.
What I'd like to build is an opaque form, containing an analogue clock. No big Deal...butI want it permanenlty on top /allways visible (full-screen) and really transparant, i.e. without interfering with other programs/user-interaction, etc.
So, am I looking in the correct direction ?
|
|
|
|
|
Not exactly. Having your clock app on top of everything will essentially stop the user from clicking on anything on the desktop, or even right-clicking the desktop. Your purpose is better servered by a Java applet running in an HTML page. That way, the desktop sits on top of your clock and you won't prevent the user from getting to their desktop.
RageInTheMachine9532
|
|
|
|