|
First step would be to indicate which printing sample you are talking about: perhaps with a link and then post the text of the error message(s)...
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
rankin_5204 wrote: Downloaded the printing example but get 14 errors related to serialization. What do i do.
For a start you could try FIXING them
Since we are not psychics we cannot even start to guess what problems you are having.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
Hello, I'm not sure if this counts as drag and drop, but I need to be able to move a picture box around inside a panel and have it return what the mouse was last pointing at. Here's what I've got now:
Private Sub myUnitHandler_DragStart(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)<br />
If e.Button = MouseButtons.Left Then<br />
dragging = sender<br />
sender.DoDragDrop(sender, DragDropEffects.All)<br />
sender.bringtofront()<br />
end if<br />
end sub<br />
Private Sub myTerritoryHandler_DragEnter(ByVal sender As Object, ByVal e As Windows.Forms.DragEventArgs)<br />
e.Effect = DragDropEffects.Move<br />
end sub<br />
Private Sub myTerritoryHandler_DragDrop(ByVal sender As Object, ByVal e As Windows.Forms.DragEventArgs)<br />
e.Effect = DragDropEffects.None<br />
dragging.Left = MousePosition.X - 5<br />
dragging.Top = MousePosition.Y - 182<br />
dragging.endcountry = sender.name<br />
dragging.beachland = 0<br />
dragging = 0<br />
end sub
As you can see, this uses mouse positioning to move it and it only works with 1 screen setup. I've tried using something like this:
Private Sub myUnitHandler_DragStart(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)<br />
If e.Button = MouseButtons.Left Then<br />
dragging = sender<br />
sender.DoDragDrop(sender, DragDropEffects.All)<br />
sender.bringtofront()<br />
oldx = mouseposition.x<br />
oldy = mouseposition.y<br />
msgbox(oldx)<br />
msgbox(oldy)<br />
End If<br />
End Sub<br />
Private Sub myTerritoryHandler_DragEnter(ByVal sender As Object, ByVal e As Windows.Forms.DragEventArgs)<br />
e.Effect = DragDropEffects.Move<br />
End Sub<br />
Private Sub myTerritoryHandler_DragDrop(ByVal sender As Object, ByVal e As Windows.Forms.DragEventArgs)<br />
e.Effect = DragDropEffects.None<br />
dragging.Left += (MousePosition.X - oldx)<br />
dragging.Top += (MousePosition.Y - oldy)<br />
msgbox(oldx & " " & oldy)<br />
End Sub
but it seems that the drag event happens before the mousearg because the later msgboxes fire first and have empty oldx and oldy vars.
I'm sure someone has a better idea than this and I'd love to hear any help!
Thanks,
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
Hey everyone,
I'm having a problem with an updown thingy. When you click the up and down arrows it adds or subtracts from your total money to spend, but if you manually imput a number into the box it doesn't change the money. :-/
Here's part of my code where "rs" is the total you have to spend:
Private Sub resourcesValue()<br />
If purchase Then<br />
spent = scal + sinf + sgen + sart + skni + sport<br />
lblResources.Text = "Available Resources: " & rs - spent<br />
If (rs - spent < 0) Then<br />
lblResources.ForeColor = Color.Red<br />
btnPurchase.Enabled = False<br />
Else<br />
lblResources.ForeColor = Color.Black<br />
btnPurchase.Enabled = True<br />
End If<br />
End If<br />
End Sub<br />
Private Sub udCalvary_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles udCalvary.ValueChanged<br />
scal = udCalvary.Value * 8<br />
resourcesValue()<br />
End Sub<br />
Private Sub udKnight_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles udKnight.ValueChanged<br />
skni = udKnight.Value * 11<br />
resourcesValue()<br />
End Sub<br />
Private Sub udInfantry_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles udInfantry.ValueChanged<br />
sinf = udInfantry.Value * 5<br />
resourcesValue()<br />
End Sub
I have limits set, but it does not return to the maximum when i push the button. Here's what happens.
I have 80 money to spend. I enter into the udInfantry control the number 80, meaning I need 400 money, but when I push the button, it gives me the 16 infantry that I purchased that turn (IE, 80/5 is 16 infantry) and does not subtract anything from my money.
I believe this is how you set limits:
<br />
udCalvary.Maximum = Math.Floor(rs / 8)<br />
udKnight.Maximum = Math.Floor(rs / 11)<br />
udInfantry.Maximum = Math.Floor(rs / 5)<br />
udArtillery.Maximum = Math.Floor(rs / 10)<br />
udGeneral.Maximum = 1<br />
If Math.Floor(rs / 10) >= 1 Then<br />
udPort.Maximum = 1<br />
Else<br />
udPort.Maximum = 0<br />
End If
Any idea?
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
-- modified at 2:21 Tuesday 30th May, 2006ming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
Is it possible to create a wizard in VB.NET? If so, can you direct me towards the instructions for creating such an item.
Cheers,
bryndabella
|
|
|
|
|
Instead of creating your own wizard from scratch, why not consider a dotnet component that you can customize. For insrance, have a look at
http://www.divil.co.uk/net/controls/wizardframework/[^]
There are other organisations that have wizard components.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Thanks very much Richard, i will take a look.
|
|
|
|
|
Had a look at the Wizard divelements offers and I was rather impressed!
I recommend a review.
Wesley Burger
083 518 7135
|
|
|
|
|
Hi everybody
I am writing a customised software like vb in vb.!!!
please do not misunderstand.
i will be having a software in which i shall have certin objects like timers picture boxes button (very limited ones). i shall let users set their properties and alignment on the screen.
This Application(or form) designed by the user should be able to be able to run standalone after saved. just visualise it like vb!!
I am plannig to start by declaring a syntax for the language in a dll.
make a master software that can read my language. create a dll that can understand it. then somehow call each function into the master form and play it.
then the language can be converted into a gui based vb type software.
the project seems wierd. if anyone can help me. please post as son as possible.
thanks
regards
|
|
|
|
|
With what part of this project do you need help? A specific question will getyou answers.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
I have a vb.net 2003 application. I have created the deployment project but I can not for the life of me change the icon image for the shortcut to the desktop. I go to the properties window of the shortcut (under file editor) and browse for the icon image (.ico), select it, but the image file never appears under the current icon windows. I have even type the icon image name into the Icon property box and it just disappears. Any ideas???
Thanks so much.
Mary R.
|
|
|
|
|
First Create the same incon in the project then in the deployment prpoject it will work
|
|
|
|
|
Good Answer!! Worked for me - Thanks!
|
|
|
|
|
Hi Guys,
I'm in need of filling an Excel Sheet with Combo Box in Cells with values from Database.After filling the Combo Box should be hidden. When the User Clicks the Cell then he has to get the Combo Box filled with some Values. But Only Records and combobox are visible. I want to hide the combo box. Please suggest bsome way.
Regards,
Ranganath Arun
|
|
|
|
|
me need the same.
only replying so that i can also be updated when some one reply to this issue so sorry and regards.
|
|
|
|
|
Hey... I have experience programming in quite a few other languages, but recently my work has asked me to write something for them in VB.NET - this will be my first VB application. I need a bit of guidance...
I have a series of vpn connections configured in my network connections. My application needs to be able to connect to each of these in turn, with a given username & password. I believe what I want to use is RasDial(), but I'm not completely sure how to use it. I have found information on the msdn site with regards to the parameters it takes, but have not been able to find anything with regards to it's actual use. I have searched a series of forums and have only managed to find a bunch of people who say I should be using RasDial but nobody ever gives an example I can follow.
If anyone could help me out, I would greatly appreciate it!
|
|
|
|
|
According to your profile, you also program in C++ have you looked at the Microsoft Win32 Developers Helpfile ?
There is a whole group of functions that comprise RAS. If you don't have Win32 Programmers Help file, contact me by e-mail via link.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Thanks Richard - I've emailed you
|
|
|
|
|
When I run my project from withinn Visual Studio (F5), it runs fine and it works and everything but when I tryand run it from it's BIN directory, no forms etc... load. If I then run Windows task manager (CTRL+ALT+DEL), and go to the proccesses tab, it shows that the app is running but no forms are showing as supposed to be.
|
|
|
|
|
check and set the properties of your first form or this might be due to the reason u have changed ur first form so please check that too.
Regards
|
|
|
|
|
Hi All,
I have a function for example, Foo(). I am implementing a FileWatcher in my project and the watcher continuosly watches a particular folder for example c:\source. Now my problem is that when more than 1 files are created at a time in this source folder, i get uneven results. I have tried to use Synclock and monitor class but i could not implement it properly. I have called the Foo() method in the event OnCreated() event handler of watcher. When for example 6 files are copied and pasted to the source file at once, 6 events are fired. This makes uneven results. What i want is that When 6 files are created at once in source folder, the events should be called sequentially for each file.
Hope i am clear with my description. Any help would be appreciated
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Please don't double post.
---
b { font-weight: normal; }
|
|
|
|
|
Hi everyone,
I need to know how to do screen scrapping on a HTML page to retrieve some value. The problem is that I can't just scrap by sending the http address to retrieve the page because it need to be login before I can retrieve the page, but I am able to navigate into the page I wanted and put the whole html text into a string but I don't know how to identify the value I needed, I'd tried a few ways but it did not work out.
Your help would be great
-J Liang-
|
|
|
|
|
Hi im only fairly new to vb.net and have not yet used a web browser control, i was wondering, how do i make an address bar for the web browser control, every time i go to change the address using the text in my textbox, i end up with the problem of not being able to convert a string toa system.uri, what does this mean? Please help.
Posted by The ANZAC
|
|
|
|
|
hi frds...
i do lot's of effort to do this but i was unable to do...
my problem is that i have a number filed say amount
in that the value store is 123456789.123
i want to show this value in indian currency format
like 12,34,56,789.123
i also change the regional setting from control panel
i do lot's of try but i was unable to this can u help me its urgent...
also mail me on pankaj.indore@gmail.com
Regards
Pankaj Joshi
|
|
|
|