Software Development Network Logo
  • Visual FoxPro
  • VS Team System
  • Visual C#
  • Visual Studio
  • .NET Development
  • Microsoft ISV
  • IE Development
  • SQL Server
  • Smart Devicet
  • SharePoint Products
  • Visual Basic
  • Windows Vista
  • Visual C++
  • Game Technologies
  • Audio and Video

Software Development Network >> prayami's Q&A profile

prayami

Member List

Vyatsek
ghio
Noraa Drawde
RtMahi
elkadeem
JohnReid
Romantic_touch
Derek Smyth
Herru Perdana
sgroenen
Dmitriy Ovdienko
BobConsultant
BitShift
Faraz_Ahmed
tremault
sxzhan
mkooiker
Tryin2Bgood
notec
Djalma Rosa dos Santos Filho
Only Title

prayami's Q&A profile

  • Windows Forms Temporarily disable an event handler at runtime

    In C# (Visual Studio), can I temporarily disable an event handler at runtime Details please. The classic reason you'd ask something like this is that you're doing something in code that triggers an event handler that you'd normally like to only run when the user does something. Add a form/class member of type bool that you set to true when you make run your code, it will be false when the user does something... ...Show All

  • Visual Basic Printing data with Type1 Fonts in VB.Net

    Hi, We are developing Windows application in VB.Net (VS 2005). Our requirement is to print data to the default printer. We are using PrintDocument() to achieve this. As per requirement we have to print in specific fonts, the fonts are of type "Type1". When we used following code. e.graphics.DrawString("My Company Name", New Font("HelvCondBlk", objFont.PassHeaderFontSize, FontStyle.Bold), Brushes.White, rectWB) The application could not recognize the Type1 font. These fonts are also not listed in FontFamily.Families. Please let me know how to print any document from VB.Net in Type1 font. Nandagopal.P.K.S Check out the following topic in the MSDN library for code that enumerates all of the valid fonts on ...Show All

  • .NET Development <?xml version='1.1' . . .

    ...and .NET Framework > Well, I'll BEA monkey's uncle. It's a deceptively short grammatically incorrect question with an exceedingly short answer. Try it in IE7/FIrefox/VS2005, the answer is apparently "no." Nothing in MSXML 6.0 about XML Schema 1.1 Opinions, gripes, thoughts, theories, and even, "w.t.f. " appreciated. I've read the rationale here . Check. Fresh ink. I understand the burning desire...to break competitor's code. Check. But why would someone in the same company do this now to break their own code That's my current "w.t.f. " I think you're asking about XML 1.1, XSD 1.1, and why the Micros ...Show All

  • Visual Studio 2008 (Pre-release) Callback and IsOneWay=false

    Hello, I am working on a service that need to callback to clients, not for notifications only, service need to get data from client with that callback, exactly a Bitmap Object. So, the callback method has IsOneWay attribute to false. It works quite irregular. Normally, the service get the Bitmap for the first call, and then service and client become crazy, sometimes work, and somtimes not. Debuging, my code is ok, by the output pane of VS shows this two times: "A first chance exception of type 'System.ServiceModel.ProtocolException' occurred in mscorlib.dll". Any idea what is happening is a June CTP issue callback methods can not be two-way Thanks for any help. regards David Hi again, tracing, I ...Show All

  • Commerce Server How we can integrate Commerce Server with BizTalk Server through adapters?

    How we can integrate Commerce Server with BizTalk Server through adapters The article includes some sample code. Alan Faulkner [MSFT] has also released an excellent sample project which can be downloaded from the Commerce Server GotDotNet workspace. http://www.gotdotnet.com/Workspaces/Workspace.aspx id=77487df3-96dc-41de-9ca0-b7f284a8c113 Jeff Lynch MVP Windows Server System - Commerce Server http://codebetter.com/blogs/jeff.lynch ...Show All

  • Visual Studio 2008 (Pre-release) Arrange with no ArrangeOverride call

    Hello there, I have a panel with some children on it. I use a custom logic to arrange its children, which is accomplished by Measure & Arrange overrides. That works fine. Under certain circumstances children of my panel get rearranged with NO(!) ArrangeOverride call (if it would be called, it simply won't let to re-arrange children the way it happens). Those circumstances include but not limited to the following cases: adorner was added for the parent of my custom table, another element was added as a child for the parent of my custom panel. I'm wondering WHEN and WHAT can cause repositioning of child elements bypassing ArrangeOverride Here’s my understanding - when arranging, using Arrange(Rect) no changes to Margin happ ...Show All

  • Visual Studio Express Editions OpenFileDialog and SaveFileDialog Questions

    Back again.....with a new question. Right now I am dealing with learning to open and save a .txt file. I understand the concept but when i debug the code and....lets say save a file, I cannot find the file on my desktop as a .txt file. Here is the code that I have implemented. Where did I go wrong 'Open Option Private Sub OpenToolStripButton_Click( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles OpenToolStripButton.Click Dim open As New OpenFileDialog() open.Filter = "All Files (*.*)| (*.*)| Text Files (*.txt) | (*.txt)" open.Title = "Open Text File)" open.ShowDialog() End Sub 'Save Option Private Sub SaveToolStripButton_Click( B ...Show All

  • Windows Forms DataGridView Datasource property

    ArrayList Ips=c1.getIPs(); dataGridView1.DataSource = Ips; The getIps returns an arraylist with count 1 the content of arraylist 0th element is 'Pencil'. but in grid its displaying the length of string i.e 6 rather than displaying Pencil.What should i do to display the content of arraylist rather than the length. regards Your arraylist is probably filled with simple strings. You need to fill it with some custom objects, which would expose appropriate properties, e.g.: public class IP { private string text; public IP() {} public IP(string text) { this.text = text; } public string Text { get { return text; } set { text = value; } } } ... ArrayList list = new ArrayList(); list.Add(ne ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. avoid tearing

    Just running throught the basic "How To"s in the help pages and adding sprites. I'm getting tearing as it's rendering. Anyone find how to get a swap chain working so I don't get as much tearing Heh, i'm guessing this question gets ignored because no one really has a good answer :) Thanks guys for trying. I'm going to ask again in the specific context of Spacewars. With Spacewars i get absolutely terrible performance in windowed mode. The game is not even playable the framerate is so low. It's the same problem with every sample game I've downloaded. ...Show All

  • Windows Forms Realtime Database Data

    Does any one have a recomndation about how store and retrieve realtime information to/from a Sql Server Database with a c#.net windows app We are storing Stock market data that is constantly changing. Take a look at SqlDependency ...Show All

  • Smart Device Development short alignment issue

    I'm seeing something very weird when compiling this code for an ARMV4i Smartphone target and running it on a smartphone emulator: INT foo(UINT16 *srcPtr) { short data; data = *(srcPtr+1); switch (*srcPtr) {... } If the memory pointed to by srcPtr contains: 11 22 33 44 55 66 77 88 data is set to 0x88776655 (endianism isn't the issue, but 32 instead of 16 bits is - it should be 0x4433) *srcPtr is evaluated as 0x44332211, again 32 instead of 16 bits, it should be 0x2211. Any ideas Cheers, Ken It wouldn't surprise me if intellisense gave you a different definition than the one really being used by the compiler. If you're in doubt about the actual width of a datatype, ...Show All

  • SQL Server How to get mobile subscription to sync with dynamic snapshot

    Hello Everyone, I have a publication on a Sql 2000 (SP4) server. This publication has dynamic filtering enabled. What I want to do is create an interface which will generate a new dynamic snapshot based on filtering input from users. So far I can create the dynamic snapshot easy enough and I can see the filtered results on a Sql 2000 subscriber. However, there seems to be no way to configure a mobile database to point to the dynamic snapshot. This is easy to configure in a Sql 2000 subscription - the options are right there are on the properties page. Yet, it seems like the mobile database only points to the required unfiltered snapshot through the IIS proxy. Is there any way to force the mobile database to use the dynamic snapshot ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Buttermilk Game Engine and LGPL

    I'd like for Buttermilk to have the following features in its license - Free to use and redistribute. Free to publish commercial games on Windows. Free to publish free or commercial games on the XBox360 (XBLA, etc). Basically no restrictions except don't pass my code off as something you made :) Will LGPL do this I hear it's looser than GPL. The looser the better, methinks. Check out the BSD license. The MPL is a pretty good one for that, as well. There's another license that basically says you can do whatever you want with, so long as you don't use it to duplicate the original functionality commercially - I'm not explaining that well. Basically, on a physics library, you couldn't use it as the basis of a commercial ph ...Show All

  • Visual Studio 2008 (Pre-release) Media Element Will Not Play.

    I tracked the error down with the on failed error, and I THINK this is ther error: Insufficient memory to continue the execution of the program. I can only say think so because the routed events confuse me somewhat. lester - MSFT wrote: If media element is not playing then its likely that your media player is an older version. v10 or higner is needed Wrong, WMP11 doesn't work. I had to roll back to v10 to get MediaElement to work ...Show All

  • Visual Studio Express Editions Newbie Crisis

    I am trying to learn programming using VB express 2005. It is becoming very frustrating especially when you are new and your ideas can not be accomplished. This is what I would like to do an maybe someone could guide me through the steps needed to perform such actions or maybe someone who reads this would like to earn a few bucks teaching me how to program using vb. What I want to do is take my 3 contracts lets call them A,B, and C and create a simply Database for each of these contracts. I would then like to create a single user interface that will allow me to choose the contract group A, B, or C from a combolist and then in a listbox it will display all of the names of my clients in that contract group. Then I could select an ...Show All

©2008 Software Development Network