One one way sync from sql to sql thru webservice?

2012-08-01 Thread Anthony Mayan
Hoping someone can help, we have an internal database at ur office which we
need to export to a website database.What is the best way to do this?

There is no direct link from office db to website db.

We only need to do a one way synch(Office to website db)

We currently have a application  at office that that connects to the server
through a webservice, but how would we handler thousands of records.


Anthony


Re: Very Weird VS 2010 Issue

2012-02-03 Thread Anthony Mayan
mmm..will try that...

On Fri, Feb 3, 2012 at 6:43 PM, Arjang Assadi arjang.ass...@gmail.comwrote:

 any solution? what about new solutions ?

 On 3 February 2012 18:13, Anthony Mayan ifum...@gmail.com wrote:
  happens when i open a solution
  consistemyly happens..very easy to pre3dict
 
  not running coderush anymore..disabled all addon tools
 
 
  On Fri, Feb 3, 2012 at 1:18 PM, Arjang Assadi arjang.ass...@gmail.com
  wrote:
 
  1.After restarting how long before you get it again? i.e. do you get
  the problem consistently?
  2.What are the processes running on your machine?
  3.What addons you have installed ReSharper, CodeRush etc?
 
  I have not had recurring problems with VS2010 pre and post SP1.
 
  Regards
 
  Arjang
 
 
 
  On 3 February 2012 12:59, Anthony Mayan ifum...@gmail.com wrote:
   I have this issues with VS2010 playing tricks on my keyboard...when i
   type
   anywhere in windows when VS2010(and a solution is open) , i cannot
 type
   more
   then about 3 characters before it gets overwritten, or when i press
 the
   right button on the keyboard, the menu will popup for less then 1
   second.
   Its like the ESC key or Select all is beig repeatly pressed...driving
 me
   crazy
  
   If i close the VS solution, problem goes away!!
  
   Anyone experience this issue?
  
  
   Anthony
 
 



Very Weird VS 2010 Issue

2012-02-02 Thread Anthony Mayan
I have this issues with VS2010 playing tricks on my keyboard...when i type
anywhere in windows when VS2010(and a solution is open) , i cannot type
more then about 3 characters before it gets overwritten, or when i press
the right button on the keyboard, the menu will popup for less then 1
second.   Its like the ESC key or Select all is beig repeatly
pressed...driving me crazy

If i close the VS solution, problem goes away!!

Anyone experience this issue?


Anthony


Re: Very Weird VS 2010 Issue

2012-02-02 Thread Anthony Mayan
happens when i open a solution
consistemyly happens..very easy to pre3dict

not running coderush anymore..disabled all addon tools

On Fri, Feb 3, 2012 at 1:18 PM, Arjang Assadi arjang.ass...@gmail.comwrote:

 1.After restarting how long before you get it again? i.e. do you get
 the problem consistently?
 2.What are the processes running on your machine?
 3.What addons you have installed ReSharper, CodeRush etc?

 I have not had recurring problems with VS2010 pre and post SP1.

 Regards

 Arjang



 On 3 February 2012 12:59, Anthony Mayan ifum...@gmail.com wrote:
  I have this issues with VS2010 playing tricks on my keyboard...when i
 type
  anywhere in windows when VS2010(and a solution is open) , i cannot type
 more
  then about 3 characters before it gets overwritten, or when i press the
  right button on the keyboard, the menu will popup for less then 1 second.
  Its like the ESC key or Select all is beig repeatly pressed...driving me
  crazy
 
  If i close the VS solution, problem goes away!!
 
  Anyone experience this issue?
 
 
  Anthony



Client /Server alternative for TCP

2011-11-17 Thread Anthony Mayan
Currently looking at building a client server app but thinking whether we
should use TCP.   Could we we use rest service instead or another method?

Want to avoid creating a multi-thread tcp listener to handle all the
connections...anyone have an suggestions?

Anthony


wp7 mailing list?

2011-11-07 Thread Anthony Mayan
Do we have alist for wp7 development questions?


Anthony


[OT] Job linux developer (with dotnet skills)

2011-10-20 Thread Anthony Mayan
Looking for someone who can develop for linux environment(a must) but have
some skills with dotnet.

If interested send me an email...thanks

Anthony


Re: High performance logging control

2011-10-14 Thread Anthony Mayan
i would create a logging control that collected the information and use
async tcp to send the information to a console.   Look at smartinspect , its
pretty cool tool that does what you are explaining...i think

On Fri, Oct 14, 2011 at 3:34 PM, Greg Keogh g...@mira.net wrote:

 Folks, back in 2002 the last significant C++ app I wrote had a “logging”
 control which looked and moved in a very similar way to the cmd.exe window.
 I was just looking at the 300 lines of code I wrote back then it’s quite
 complicated as I’m doing everything to paint the control contents. I’m
 creating the illusion of a cmd style window over a large buffer of messages
 (up to a few thousand), I maintain the positions of scrollbars, I draw lines
 in different colours, I can adjust the font and metrics and I use
 ScrollWindow API for fast motion. It created the illusion of blazing fast
 scrolling. I’ve pasted below a shot of what the C++ control used to look
 like.

 ** **

 I’d like to create a similar control in Managed code, but quite honestly I
 don’t know how. I just don’t know what techniques to use to get the rapid
 scrolling feeling. If you were told to write a “logging” control that
 behaved like the cmd.exe window, what techniques would you consider?

 ** **

 I could wrap the old C++ control code as an ActiveX control, but I’ve never
 needed to do that before and I’m not sure how tricky it is. I’ll evaluate
 that idea now.**

 ** **

 Greg

 ** **

 

image001.png

Publish Web project....

2011-10-12 Thread Anthony Mayan
Just curious..does any use the Publish feature when deploying a web project?
 Is it reliable?

I always manually ftp what is required but i guess i should use the publish
feature if it works.


Anthony


asp.net and MVC

2011-10-11 Thread Anthony Mayan
Is it possible to user a asp.net usercontrol in a MVC page  OR be able to
inbed MVC partial view in an asp.net page



Anthony


Re: Simple or hard solution

2011-09-29 Thread Anthony Mayan
thanks noonie


interesting..such a simple request..appears like a lot work for a
solution..but i must persevere!

On 9/29/11, noonie neale.n...@gmail.com wrote:
 Greetings,

 Google seems to think not :-(

 There are suggested work-arounds depending on what 'x' actually is.

 Use COM to instantiate a script library or misuse a data table or even write
 your own.

 http://www.velocityreviews.com/forums/t94154-eval-function-in-vb-net.html

 http://bytes.com/topic/net/answers/459258-eval-function-vb-net

 --
 Regards,
 noonie

 On 29 September 2011 15:42, Anthony Mayan ifum...@gmail.com wrote:

 I have a function

 sub SayHello(word as string)
Dim x as string=word

trace.write(word) ''works fine of course

trace.write(eval(x)) 'is this possible?? or how can i make this
 possible
 end sub




Simple or hard solution

2011-09-28 Thread Anthony Mayan
I have a function

sub SayHello(word as string)
Dim x as string=word

trace.write(word) ''works fine of course

trace.write(eval(x)) 'is this possible?? or how can i make this possible
end sub


Re: Get Method Argument values?

2011-09-27 Thread Anthony Mayan
thanks Billl...did some more research and appear to have to implement
Aspect Oriented Programming using .NET which i never knew
existed...mm...something to learn when i have time.

On 9/28/11, Bill McCarthy bill.mccarthy.li...@live.com.au wrote:
 Wouldn't your code have to be in the method anyway ?

 BTW: the code for adding the , will probably add a , where not
 appropriate and your making unneeded calls to GetParameters() etc. Change to


 For i as Integer= 0 ..
   If i  0 Then key = , 

 Cleaned up a little:
   Dim method As MethodBase = MethodBase.GetCurrentMethod()
   Dim params = method.GetParameters
   Dim key As String = method.Name  (
   For i As Integer = 0 To params.Length - 1
  If i  0 Then key = , 
  Dim ptype = params(i).ParameterType
  key = If(ptype.IsByRef, ByRef , )  params(i).Name   As  
 params(i).ParameterType.ToString.TrimEnd(c)
   Next
   key = )

 Still doesn't answer your question though. I'm not sure you can as it would
 be interception so you won't get that via reflection, although you could
 probably look in the stack to get the values .


 |-Original Message-
 |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
 |boun...@ozdotnet.com] On Behalf Of Anthony Mayan
 |Sent: Tuesday, 27 September 2011 11:40 PM
 |To: ozDotNet
 |Subject: Get Method Argument values?
 |
 |Using the below cod to retrieve the argument names of the current method
 |which works fine..how would would i get the values?
 |
 |Dim method As MethodBase = MethodBase.GetCurrentMethod()
 |Dim key As String = method.Name  (
 |For i As Integer = 0 To method.GetParameters().Length - 1
 |key = DirectCast(method.GetParameters().GetValue(i),
 |System.Reflection.ParameterInfo).Name
 |If i  method.GetParameters().Length - 1 Then
 |key = ,
 |End If
 |Next
 |key = )
 |
 |
 |thanks in advance




Track Method calls with arguments

2011-09-22 Thread Anthony Mayan
Is it possible to extract the arguments for a method? I want to be
able to output the method parameters/names for debugging/tracing
purposes.

  I know i could create a new string for each method..but is it
possible using a generic function reflection or similar?  Maybe i am
approaching this the wrong way!




public void MyMethod(int arg1, string arg2)
{
trace.write(createstring);//Example output
MyMethod(arg1=kkkl,arg2=hello)

...

}


Detect whether asp.net or winform

2011-09-13 Thread Anthony Mayan
Is it possible to detect whether the code is runing on asp.net or winforms
from a class library?

Anthony


Re: Detect whether asp.net or winform

2011-09-13 Thread Anthony Mayan
yep..thats what i was thinking to do also...thanks

On Wed, Sep 14, 2011 at 12:55 PM, Raghu Rana raghur...@gmail.com wrote:

 I suppose you can check in your class library if HttpContext.Current is
 null ?


 On Wed, Sep 14, 2011 at 12:52 PM, Anthony Mayan ifum...@gmail.com wrote:

 Is it possible to detect whether the code is runing on asp.net or
 winforms from a class library?

 Anthony




 --
 Raghu Rana
 Mobile: +61 432 139 301
 Email: raghur...@gmail.com



Re: Detect whether asp.net or winform

2011-09-13 Thread Anthony Mayan
true...have class that will take a screen shot if a windows form...ok..my
question should be

How do i determine if the code is running on winforms?

On Wed, Sep 14, 2011 at 1:19 PM, David Kean david.k...@microsoft.comwrote:

  What's the scenario? What if you are in a windows service, console, WPF
 or Windows 8 App?

 Sent from my Windows Phone
 --
 From: Anthony Mayan
 Sent: Tuesday, September 13, 2011 8:08 PM
 To: ozDotNet
 Subject: Re: Detect whether asp.net or winform


 yep..thats what i was thinking to do also...thanks

 On Wed, Sep 14, 2011 at 12:55 PM, Raghu Rana raghur...@gmail.com wrote:

 I suppose you can check in your class library if HttpContext.Current is
 null ?


 On Wed, Sep 14, 2011 at 12:52 PM, Anthony Mayan ifum...@gmail.comwrote:

 Is it possible to detect whether the code is runing on asp.net or
 winforms from a class library?

 Anthony




 --
 Raghu Rana
 Mobile: +61 432 139 301
 Email: raghur...@gmail.com





timezone converasion and olson database

2011-08-28 Thread Anthony Mayan
Anyone have experience with converting time from utc to localtime.   It
appears that olson database is a standard but i cannot find any .net code to
use it!

Does dotnet have this functionaility?

Anthony


VS 2010 Sp1...any benefits?

2011-08-19 Thread Anthony Mayan
Is it worth installing VS 2010 Sp1...any benefits ?


Anthony


Re: Dynamic buttons on WinForms

2011-08-01 Thread Anthony Mayan
read my mind..thats the example i was going to use to expalin my question:)

On Mon, Aug 1, 2011 at 3:53 PM, mike smith meski...@gmail.com wrote:

 In a way.

 Are you going to make a tetris game with blocks randomly selected from all
 the resources it can lay its hands on ?  Be pretty cool.


 On Mon, Aug 1, 2011 at 2:59 PM, Anthony Mayan ifum...@gmail.com wrote:

 awesome...thats what i was looking for...that link was pretty groovy..is
 that a google thing?


 On Mon, Aug 1, 2011 at 2:46 PM, Bill McCarthy 
 bill.mccarthy.li...@live.com.au wrote:

 http://lmgtfy.com/?q=FlowLayoutPanel+Windows.Forms

 ;)

 |-Original Message-
 |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
 |boun...@ozdotnet.com] On Behalf Of Greg Keogh
 |Sent: Monday, 1 August 2011 2:32 PM
 |To: 'ozDotNet'
 |Subject: RE: Dynamic buttons on WinForms
 |
 |FlowLayoutPanel ?
 |
 |Aren't they WPF only? -- Greg






 --
 Meski

http://courteous.ly/aAOZcv

 Going to Starbucks for coffee is like going to prison for sex. Sure,
 you'll get it, but it's going to be rough - Adam Hills




Dynamic buttons on WinForms

2011-07-31 Thread Anthony Mayan
Is it possible to create a winform so that buttons slide into the current
available position similar to divs in HTML.


Basically, i have some buttons that will remove under certain conditions,
but want  the remaining buttons to take up the space left by the remove
ones.

Almost like  tetris...hope i have ade this clear?


Re: Dynamic buttons on WinForms

2011-07-31 Thread Anthony Mayan
awesome...thats what i was looking for...that link was pretty groovy..is
that a google thing?

On Mon, Aug 1, 2011 at 2:46 PM, Bill McCarthy 
bill.mccarthy.li...@live.com.au wrote:

 http://lmgtfy.com/?q=FlowLayoutPanel+Windows.Forms

 ;)

 |-Original Message-
 |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
 |boun...@ozdotnet.com] On Behalf Of Greg Keogh
 |Sent: Monday, 1 August 2011 2:32 PM
 |To: 'ozDotNet'
 |Subject: RE: Dynamic buttons on WinForms
 |
 |FlowLayoutPanel ?
 |
 |Aren't they WPF only? -- Greg





Re: Set property of texbox by name

2011-07-26 Thread Anthony Mayan
thank you guys :) great help as usual


Anthony

On Tue, Jul 26, 2011 at 11:59 PM, Les Hughes l...@datarev.com.au wrote:

 James Chapman-Smith wrote:

 Hi David,

 What do you mean by incredibly slow? How many buttons are we talking
 about?

 I just did a test with 1000 buttons and it took 3.47 milliseconds. With
 5000 buttons it was 16.78 milliseconds.

 Did I miss something?

 Cheers.

 James.



 I'm with you James.

 I usually do something like (psuedoish)

 foreach (Control c in this.Controls)
 {
   Button b = c as Button;
   if (b != null)
   {
   if (b.Name.ToString().ToLower().**Trim() = foo) b.Text = bar;
   }
 }

 I have no issues with speed. I also do this recursively with no issues for
 controls in controls/etc.

 --
 Les Hughes
 l...@datarev.com.a,u



Set property of texbox by name

2011-07-25 Thread Anthony Mayan
I have a form with many buttons.

I want to be able to set the text property of the textbox at runtime by
string.

(Button  i).Text = Hello  'Of course this doesn't work...how do i
replicate this correctly

i a variable

eg if i=1  then i want the code to do   button1.text=Hello
if i=2  then i want the code to do button2.text=Hello


any suggest