Mike Askew 131 Veteran Poster Featured Poster

My bad skim reading code as was a dump of everything.

Mike Askew 131 Veteran Poster Featured Poster

You need to look into object locking, the error is caused by two threads accessing the same object at once. Locking will prevent this.

Mike Askew 131 Veteran Poster Featured Poster

New chat feature definately would be good, could get onto it within the work proxies then :)

Mike Askew 131 Veteran Poster Featured Poster

You need to re-bind the datagridview after updating the data. It does not automatically rebind information.

In my experience at least

Mike Askew 131 Veteran Poster Featured Poster

@Phorce, I've managed to avoid flooding in the UK where I'm from :)

Mike Askew 131 Veteran Poster Featured Poster

@little, the form would already have to exist for you to be able to do that, IE you already opened and instantiated it, but yes it would work.

Vic has shown you a demonstration of using the constructor method to pass the value across.

Mike Askew 131 Veteran Poster Featured Poster

You can either make a public property on the main form revealing the selected value of the list box, or you can pass the selected value of the list box in the constructor for the second form. Those would be the simplest methods

Mike Askew 131 Veteran Poster Featured Poster

Well my opinion of America has rapidly changed hahahaha.

Mike Askew 131 Veteran Poster Featured Poster

This error means your calling a method that does not have an option for 0 parameters to be passed to it.

As you decided to be so blunt with your question here is my blunt response:

Go Google how to use BindGrid(), the MSDN will tell you everything you need to know.

Mike Askew 131 Veteran Poster Featured Poster

@Ralph1992, When you joined DaniWeb you accepted the Terms of Service in which it states:

Posting Posts contributed to the community immediately become the property of DaniWeb upon submission. Members may edit their posts for a limited time period immediately after, for the purpose of correcting spelling and grammar mistakes and accidental ommissions. After this initial period expires, posts may only be edited or deleted by DaniWeb team members, and only in cases where they do not comply with our forum rules for the purpose of making said content comply with all rules. As a discussion community, posts contributed by many members work together to form coherent discussions. Altering or deleting individual posts may have consequences that unfairly extend to other members of the community. All members are held responsible for their actions. As always, think before you permanently post something on the public Internet.

Therefore the action you request is very unlikely as it breaks up the entire thread, most code help forums operate in a similar fashion. For example when I was help with code I generally modify it to remove sensitive sections of the code and information it reveals.

Mike Askew 131 Veteran Poster Featured Poster

@Dani: I'm wondering whether you should change "Endorse" into "Yes". My english is pretty decent, but I had to think twice what you meant. Am sure it's a lot harder for many others. Am quite positive it would increase usage.

Agree with you here, a lot simpler to understand.

I've clicked on my profile about 10 times in last minute now to see names, only problem being most are asking about the vb.net forum and I've not been active in there in over two years :)

Mike Askew 131 Veteran Poster Featured Poster

Are you trying to get answers to your own questions?

I was when I first joined DaniWeb (back in the days of my knowing VB.Net), however nowadays I seem to answer more questions than I ask :)

What value do you get from helping people?

It is a satisfying feeling to help others and allow them to continue after overcoming their issue. It was even nicer to be recognised further becoming a featured poster.

Has DaniWeb helped you forward your career?

I suppose the knowledge gained from helping others has definately improved my technical knowledge and so from that aspect my career has improved.

Have DaniWeb community members evolved into quality online friends?

There are definately the regular posters who you get to know more than anyone else who doesn't post as much.

Have you ever done business with people you met on DaniWeb?

Can't say I have.

Mike Askew 131 Veteran Poster Featured Poster

Agreed Chris, usually have trance/electro/hardstyle on while coding.

Mike Askew 131 Veteran Poster Featured Poster

@Jim, likewise. Music gets me through the day while coding. I forgot my headphones this week and its been horrible!

Mike Askew 131 Veteran Poster Featured Poster

Ah that seems fair enough

Mike Askew 131 Veteran Poster Featured Poster

Lucky I dislike Twitter then isn't it :) I will have to find stuff on my own / rely on threads like this!

Mike Askew 131 Veteran Poster Featured Poster

I agree it is a nice addition to the site. A changelog as to what is done, like notably for users would also be interesting to follow and read from time to time :)

Mike Askew 131 Veteran Poster Featured Poster

Try deleting that extension call. I have a feeling it is associated with an apache XSLT compiler which it would seem you are not using.

Mike Askew 131 Veteran Poster Featured Poster

I happen to like the colour purple in general, so I guess im in the same camp as mike_2000_17.

Mike Askew 131 Veteran Poster Featured Poster

Hi Alex,

For future reference the version of XSLT being used is declared in line 1 above version="1.0".

Could we see your full XSLT file, can't say if that namespace is redundant or not without it.

Mike

Mike Askew 131 Veteran Poster Featured Poster

See here for a start.

Mike Askew 131 Veteran Poster Featured Poster

Don't worry Nick is a Llama in denial.

Mike Askew 131 Veteran Poster Featured Poster

@C++

God no, you misinterpret me, its more of a saying.

Mike Askew 131 Veteran Poster Featured Poster

@ c++,

You may well be, but still most members will not, how to word it..., write code for you kind of thing. We are most happy to step in and see what you yourself have managed and assist, but showing some form of effort on your behalf beforehand works wonders trust me.

Mike Askew 131 Veteran Poster Featured Poster

Assuming my assumptions are correct.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
  <xsl:strip-space elements="*"/>

  <xsl:template match="/">
    <xsl:element name="List">
      <xsl:apply-templates select="//ProductGroup" />
    </xsl:element>
  </xsl:template>

  <xsl:template match="//ProductGroup">
    <xsl:element name="Product">
      <xsl:attribute name="ID">
        <xsl:value-of select="substring(./Product[1]/ProductCode, 10, 1)"/>
      </xsl:attribute>
      <xsl:element name="prod_name">
        <xsl:value-of select="./Product[1]/ProductName"/>
      </xsl:element>
      <xsl:element name="rate">
        <xsl:value-of select="./Product[1]/Rate"/>
      </xsl:element>
    </xsl:element>
  </xsl:template>

</xsl:stylesheet>

When run on

<Data>
  <ProductGroup>
    <Product>
      <ProductCode>
        5155
      </ProductCode>
      <ProductName>
        House
      </ProductName>
      <Rate>
        3.99
      </Rate>
    </Product>
    <Product>
      <ProductCode>
        5158
      </ProductCode>
      <ProductName>
        House
      </ProductName>
      <Rate>
        4.99
      </Rate>
    </Product>
  </ProductGroup>
  <ProductGroup>
    <Product>
      <ProductCode>
        2058
      </ProductCode>
      <ProductName>
        House
      </ProductName>
      <Rate>
        2.99
      </Rate>
    </Product>
    <Product>
      <ProductCode>
        2055
      </ProductCode>
      <ProductName>
        House
      </ProductName>
      <Rate>
        7.99
      </Rate>
    </Product>
  </ProductGroup>
</Data>

Produces

<?xml version="1.0" encoding="utf-8"?>
<List>
  <Product ID="5">
    <prod_name>
        House
      </prod_name>
    <rate>
        3.99
      </rate>
  </Product>
  <Product ID="2">
    <prod_name>
        House
      </prod_name>
    <rate>
        2.99
      </rate>
  </Product>
</List>

I rewrote your stylesheet as you were using XSLT programatically, ie. with the for-each which you most definately don't need :)

XSLT will match all nodes that match to the criteria you give it, for example making a template that matches Product will be run against all Product elements within the selection your working on.

It is worth noting on the line <xsl:value-of select="substring(./Product[1]/ProductCode, 10, 1)"/> we are looking at the 10th character for the number not the first, this is because your xml is quite nastily laid out with all this new line shiz and spaces. If you sort it into a proper formatted XML document with no new-lines within element values you will …

Mike Askew 131 Veteran Poster Featured Poster

Hi there Holly,

Quick question, where does the value in the output for describing the ID attribute of <Product> come from? It looks like it is the first digit of the ProductCode, can you confirm this?

Re-writing your stylesheet and will explain why after but stumped as to where that is coming from :)

Mike Askew 131 Veteran Poster Featured Poster

It is also worth noting, c++ultimate, in your posts requesting help, you provide us with no code you have attempted or anything along those lines at all.

Generally when I'm trying to do something new I still have enough intelligence to google around and find some sort of code/api for what is being done and make an attempt at it. Once the attempt it made people can then help you correct what is not working and explain why allowing you to learn.

I personally, and probably speak for the majority here, do not log into this forum daily to write others code for them. I get paid to do that by my employer. I simply provide others with help when they are stuck and show some kind of effort made on their behalf beforehand.

Take your question here for example. I have no knowledge of c++ whatsoever apart from knowing cout writes to console (even then im probably wrong). The post mentions license keys and socket programming. So if you engaged brain a little we could easily work out that going to Google and searching "C++ socket programming" would teach you how to do the linking part with your computer and secondly another Google (shocking I know) of "C++ implementing licensing" returns at least two decent articles on different methods of doing it on the first page. From those two Google's alone and some brain power your question is on its way to being solved. But you have …

Mike Askew 131 Veteran Poster Featured Poster

He is a Dragon, Dragon's do not like apples.

On a side note, last time I checked Apple did not support flash on their OS. (This was a while ago).

Mike Askew 131 Veteran Poster Featured Poster

Wow learn something new everyday :)

Mike Askew 131 Veteran Poster Featured Poster

LOL, Hour lunch break thankyou very much.

Mike Askew 131 Veteran Poster Featured Poster

So now your declaring parameters in the stored proc which you then do not pass a value too from C# side

Mike Askew 131 Veteran Poster Featured Poster

England-Cricket and RugbyFootball

What on earth is RugbyFootball?

Or do we mean Rugby and Football?

Mike Askew 131 Veteran Poster Featured Poster

Lets not look at mine...

Mike Askew 131 Veteran Poster Featured Poster

@Michael, don't ruin my childhood. It was all real! I swear! sobs

Mike Askew 131 Veteran Poster Featured Poster

True I overlooked at factor, presumed he was on about a lunch break :)

LastMitch commented: Yes! =) +0
Mike Askew 131 Veteran Poster Featured Poster

It isn't particularly hard to make contributions to nearly every running thread in the community centre. I could do this to boost my post count also, but that doesn't affect me either. ;)

Mike Askew 131 Veteran Poster Featured Poster

@BigPaw, persistance pays off eventually :D

@Michael, that is on his 15 minute break,you can do whatever you please on breaks.

Mike Askew 131 Veteran Poster Featured Poster

@BigPaw: But what if your required at your desk, just have nothing productive to do :P?

Mike Askew 131 Veteran Poster Featured Poster

It's not up to any serious development, but for quickie test programs it's quite useful. I often use it for PHP because with my dev environment the alternative is awkward at best. :)

I have no experience with it to know this :) However at least we can knock some things up in it and see they compile!

Mike Askew 131 Veteran Poster Featured Poster

i want to create ap application which generates popup alerts at the day of event ocurs as well as a day before the event will occur in a specific time interval as well.. events are stored in database and they are all date fields .. so i want to link those fields to create popups .. help me .

In order to help you, you must first provide us with what you have achieved. We do not write code for you, simply correct and enlighten on mistakes.

Mike Askew 131 Veteran Poster Featured Poster

@Jim, neither did I till I read your post and did some googling ;)

Mike Askew 131 Veteran Poster Featured Poster

@pritaeas, of course DaniWeb, there is only so much time I can spend on the typing test though :D

@happygeek, it is a shame you have not found these terms, I highly recommend them

Mike Askew 131 Veteran Poster Featured Poster

So what do you do to pass the time at work when it becomes a bit quieter and you have nothing else to do?

Personally I read Reddit, Unfortunately I seem to struggle to stiffle laughter at some of the comedical gold I find on there, maybe its just my sense of humour. Which leads to some awful snigger randomly and I must expect others around me to wonder what the hell is going on!

Mike Askew 131 Veteran Poster Featured Poster

Jim you could always try something like http://ideone.com/ to help with the guessing, no clue if it is any good though!

Mike Askew 131 Veteran Poster Featured Poster

Use the wonders of Google to find information on the ArcGIS software API, and then read it.

Mike Askew 131 Veteran Poster Featured Poster

I would say its quality over quantity where posts are concerned to be honest. Anyone can write responses to lots of threads across the forum. Not everyone can give a useful contribution consistently.

Mike Askew 131 Veteran Poster Featured Poster

Wow I have to be honest and say I've never scrolled down that page to find such stats :o Always presumed it just listed like the top 100 people for rep etc and that was it!

Mike Askew 131 Veteran Poster Featured Poster

There's such a list?

Mike Askew 131 Veteran Poster Featured Poster

He is surprised I haven't hunted it down yet >:)

Mike Askew 131 Veteran Poster Featured Poster

Im slightly confused, you are trying to select the top five of which tags? the secondary element?