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

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

Narayan19

Member List

BJ Custard
VMan
FQ
Shu Gao
Aamir Iqbal
Kamii47
learnerplates
DVD_SH
Eric_Sun
Bernd Omenitsch
Kern101111
TruePsion
Krenshau75
leodippolito
Preston M. Price
Amadrias
laoer
AndyL
joynerCN
Ghenadie - MSFT
Only Title

Narayan19's Q&A profile

  • Visual C# Problem with event...

    Hi ! Well... I do this to add a function on a event: dataRecebe.dadosRecebidos += new dataRecebe.delDadosRecebidos(atualiza_ligado); and this to take off.. dataRecebe.dadosRecebidos -= new dataRecebe.delDadosRecebidos(atualiza_ligado); Correct ! But if I add many function for determinate event... I will always do "... -= ..." don't have another way Hug, Joao Hi, the only way to remove an event is using the -= syntax. However if you define you own event i.e. event X { add{...} remove{...} } You can get access the the underlying delegate and then clear out all of the event listeners by resetting the delegate to null. Mark. ...Show All

  • Visual C# restart computer using c# code

    Hi guys. Could you please explain me how to restart the computer using c#... What I found on the internet was only for XP....but what about the other OS I know that for xp it is using Microsoft.Win32; and then System.Diagnostics.Process.Start("ShutDown","/r"); But what about the other OS Also I have one more question. Is there a way to retrieve the OS of the user...so that depending on the OS to call different function for restarting the PC...well that's it Hope you can answer me... KC.out! ... public enum ShutdownMethod : uint { LogOff = 0x00, ShutDown = 0x01, Reboot = 0x02, Force = 0x04, PowerOff = 0x08, ForceIfHung = 0x10 } .... ...Show All

  • Smart Device Development DataReceived/SerialPort Troubles

    I am building code for the PocketPC to interface with a chemical sensor to poll and report on chemical agents in the air. I am having a devil of a time getting the DataReceived event to pass content (through an Invoke) to the main thread. When I write an "N" to the device, it is supposed to send back the following string to the UI, which represents the chemical sensor types that are housed in the unit: "CO VOC H2S LEL OXY" When I send an "R" to the device, it is supposed to send the current readings for each of the sensors as a string that looks like this: "00000 00000 00000 00000 00207". I have all of this working successfully as a WIN32 application, but it doesn't port cleanly to the .NET 2 ...Show All

  • Windows Live Developer Forums GetRoute w/ Custom Disambiguation Dialog not working

    I was wondering if there is a way to show a custom Disambiguation Dialog when using GetRoute or if I'm stuck with the default. I have tried to use ShowDisambiguationDialog(false) but it doesn't seem to work with GetRoute. The call map.GetRoute(fromAddress, toLocation, null, null, onGotRoute); fromAddress is a string, toLocation is a LatLong is there a way to use one of the 'Find' methods to get the from location without the method changing the current map ...Show All

  • Visual Studio Team System Always getting "The internal state of the database project..yada yada..."

    That quite annoying as I don’t want to always kill the project from source source and get the latest correct build from the deployment database and build everything on top what was done in the meanwhile. Any suggestion or solution for that in the meantime -Jens. --- http://www.sqlserver2005.de --- That is not good, do you still have this problem If so could you ZIP the project and email it to me so I can look at it (gertd at microsoft dot com) Thanks, -GertD ...Show All

  • Visual Studio 2008 (Pre-release) How to Bind to an ADO.NET Data Source.

    somebody knows as to connect data of a table of data base to one grilla How to Bind to an ADO.NET Data Source. this is what I have done: Imports System.Data Imports System.Data.OracleClient Public Class Form1 Dim Cnn As New OracleConnection( "Data Source=SOURCE;User ID=Iili;password = lili; Unicode=True" ) Dim DataAdapter As New OracleDataAdapter( "SELECT * FROM GE_SEG_ROLE" , Cnn) Dim DataSet As New DataSet Private Sub Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load DataAdapter.Fill(DataSet, "GE_SEG_ROLE" ) End Sub In the XAML file this it is code: < Window x:Class = " Window1 ...Show All

  • Visual C++ Generate sequently events?

    Hi all! How can I generate a sequently event (I'm thinking about some kind of OnTimerInterrup() etc. that will happen in every 5 seconds..) I need to do it for calling a function to test if there was a message or not. Thx! You may use CEvent from MFC. I would also like to add that you'll have to be familiar with Multithreading for that. ...Show All

  • Windows Forms Form that never loses focus

    I have created a form with SetTopmost set, and shown it with dlg.ShowDialog(), but I really need it to keep the focus EVEN if the user clicks on another application. Has anyone got a bit of windows magic that means that my dialog box keeps the focus whatever happens, until I dismiss it in code (with dlg.Close() or whatever). I've tried catching the 'Deactivate' event and so on, but that doesn't seem to solve the problem. Thanks for any clues or thoughts..... Yuck, you are trying to do something that Windows makes, quite intentionally, very hard to do. Your best bet is trying to enumerate the windows with the EnumWindows() API function and calling EnableWindow() to disable/enable them. You'll find ...Show All

  • Visual Basic HELP! vb transparency?

    Hmm... vb... ... is there a way to make an image transparent instead of having a lil gray box around it... cause i need to have transparency... Thank you all for lookin, moveit124 umm... im using gif's with transparency and when i load them into vb i get a nice white box behind them... and i cant have that... as im making a game... i mean i could ... but it looks bad... ...Show All

  • SQL Server Database not found?

    Hi I am developing a Smart Device App that will talk to a SSCE 2005 DB, but i am having some problems with the DB engine and communicating with it. I have the same problme on the device it's self and on the emulator. If i copy a sdf file that i have crated using SQL Server Mangment studio on to the device the SQLCE App will not talk to it and i get the following error The Database file cannot be found Check the path to the database [,,,File name,,] Native error :25046 I get the same error if i connect it with code. If i create the DB on the Device SQLCE reads it fine but i get the same error message when i try to get the app to connect to it. also if i move a SDF fi ...Show All

  • Windows Forms Displaying Status Messages to Avoid Not Responding Message

    Hi, i have a windows application built with visual studio 2005. I simply have a textbox and a button. When you enter some text and click submit it does alot of calculations and takes some time to process. However after a while i get a not responding message appear therefore i figured i would display a message to the user everytime a calculation is made to help it out. I come from an asp background where i would normally use response.buffer to write the contents out to the page. How could this sort of affect be done with .net and what control would you recommend i used to write the results too so that i could scroll through the outputted results Appreciate your help. Thanks Check MSDN for the Back ...Show All

  • Smart Device Development C# convert string to char

    Here is the code in question: READ FILE, PUT IN STRING MEHI ypos=0; StreamReader sr = new StreamReader ( "handh1.txt" ); while ((mehi = sr.ReadLine()) != null ) { if (ypos <= 3) { drawString = mehi; formGraphics.DrawString(drawString, drawFont, drawBrush, 30.0F, ypos* 30.0F, drawFormat); ypos++; } } sr.Close(); CONVERT STRING MEHI TO CHAR BEE char [] bee = new char [210000]; StringReader sb = new StringReader (mehi); sb.Read(bee, 0, 210000); sb.Close(); PUT CHAR BEE INTO GARAGE_ARRAY_DATABASE qq = 0; for (leep = 0; leep <= 10000; leep++) { for (lep = 0; lep <= 20; lep++) { garage_array_database[leep, lep] = bee ...Show All

  • Software Development for Windows Vista Property binding and activity inheritance

    Hi all, I created base activity ("A1") with 1 property "Item" of MyType kind. I created another activity ("A2") that inherits from A1. Both classes reside in one assembly I created a workflow ("W1") with property "IncomingItem" of MyType kind, which resides in another assembly. Now, when I put A2 activity in the W1 and try to bind A2's "Item" property (the inherited one) to W1's "IncomingItem", I've got an error message that tells that types don't match. Any ideas what I did wrong I'm working with RC1. Everything worked fine on Beta2 version, but when I ported workflows to RC1, workflow designer doesn't accept it (although, code compiles ...Show All

  • Microsoft ISV Community Center Forums Worksheet.Copy causes execution to stop

    Hi I am experiencing an odd behaviour from my VBA code in Excel. I have some code that has worked until recently. We have gotten XP instead of win2k, which i could suspect is causing this in some strange way. My problem is that i have the code below. In the line where i say Worksheet.Copy, the execution simply stops. No errors appears, nothing. <CODE> On Error GoTo ERROR: Worksheets(SN_MonthYearAct).Copy After:=Worksheets(Worksheet.Count) .... ERROR: MsgBox(Err.Description) </CODE> The variable SN_MonthYearAct is a constant containing the string "MonthYear Act", and a sheet with this name does exist. Worksheet.Count returns currently 8, and there are 8 sheets in the workbook. I have trie ...Show All

  • Microsoft ISV Community Center Forums MS Office document and image writer print driver & port

    Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. I am having a similar problem... I am missing the Microsoft Document Image Wrinter Port: But I have the driver. Anyone know how to re-install the port Thanks! Jeremy ...Show All

©2008 Software Development Network