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

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

lingga

Member List

compaks
Rian Edwards
DevalilaJohn
Elmo E
donkaiser
dophine
Blast
ahmedilyas
edwinzzz
Animesh Scicom
Rei Shapira
Jonathan L.
Cammyr
Yosef Karasik
Muhammad Azeem Azam
DragonWolfZ
Kishorepbp
amiga
TJC2
reb1577
Only Title

lingga's Q&A profile

  • Visual C# timing and "scheduling"

    i have to write an application to do some stuff, firstly i need it to be "always on" and i need to be able to   have "schedules" in the application, every 20 minutes, once or twice a day at certain time etc....   i guess that using a windows service and utilising the system.threading.timer class would be the best way to go about this... are there any other, maybe better, ideas about how to tackle this The thing is that i need my application to save state throughout its life and i need to execute methods based on the state of some of the objects. Idid not consider using the windows scheduled services for two reasons: 1) i want the schedules to be set remotely – i.e. in a dat ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Collision of Rotated Sprites

    Ok. I realise collision detection has been discussed quite alot, but after doing a fair bit of searching through the forums and the web, I still can't find a solution to my problem. I am working on a arial view car game (remember GTA 1 and 2 ) and I am at the point where I need to handle collisions. Most people seem to be using BoundingBoxes, which would work fine in a few situations, but in my case, drawing an axis aligned box around my rotating car would be far too inacurate. I realise that the boundingbox class does not allow rotation as mentioned in this forum, so I am wondering if anyone is aware of an alternative solution. I could solve the problem by creating a series of rotated square alpha images for my car to use when rotating, ...Show All

  • Visual C# How to strip some parts out of a string

    Hi I have an array of data (dimension = 19) I knew that the last bytes contains float number (in this example it is 139.25) After using Encoding.ASCII.GetString(data) i get a string contains special characters with 139.25 how can i strip these special characters and get only 139.25 =========================================== Please see this picture for more details http://www.swa7.com/upload/uploading/ArrayOfData.jpg =========================================== Is there another way to get the float number only out of the array data Anthony D. Green wrote: Based on your picture I'm concerned the data might not be in the ASCII format. Secondly, could you paste a Base64 e ...Show All

  • Visual C# What can a subclass do?

    I am a little confused about what a sub class can do with the variables and methods inherited from the super class. According to the book I have read, the subclass can choose to do one of the following: 1. Accept the same variables and methods by doing nothing 2. Ignore the same variable and methods by doing nothing also 3. Add new variables and methods 4. Override the variables and methods. My questions are as follows: 1. If you choose to ignore or accept the variables and methods by doing nothing (you can still see these methods and variables in class view), how would the system know whether you are accepting or ignoring the variables and methods 2. Can you override variables How do you do that 3. What actually happens in Polymorphism D ...Show All

  • Windows Forms DataGridView resize?

    I have a DataGridView which I want to be user resizeable. I can make the colums etc inside the control resizeable, but cant figure out how to make the entire control resizeable. This control is on a page and there is space on the page. Can this be done How do I do It Any advise will be appreciated. ...Show All

  • .NET Development Exporting dataset to Word using VB.NET

    I can export a dataset to Word/Excel in an ASP.NET application. However I am struggling to export a dataset to Word from a VB.NET application. I have trawled the internet and thumbed through numerous books and all I can find is the ASP.NET method. Please someone help! Here's an article from MS that shows how to export a DataSet to Excel. It is for a WinForms application and shows how to use an included XSL style sheet to transform the DataSet XML to Word XML. I imagine you can use the same method to export to Word. http://support.microsoft.com/default.aspx scid=kb;EN-US;Q307021 Curtis ...Show All

  • Visual Studio Express Editions problem adding menu items

    heres what im trying to do: make it so that a user can supply a name,path, and category for a new dropdown menu item ex: if user puts this into 3 diffrent textboxes : name = bob path = C:/bob.exe category = help and clicks "add item" a dropdown menu item is added to the "help" button on the menu and the name is "bob" and the on_click is "process.start("c:/bob") " i got it to work but when i close the app and re-open it the item is not there, i want it to stay there. thanks in advance, You can easily use XML by doing the following: 1) Create a dataset in your code. 2) Use the WriteXML to write it out. 3) Use the ReadXML to read it back in. 4) Then you can ...Show All

  • Windows Forms Windows Form in Native Window

    Hi, I would like to display my windows form as a child of native window which is identified by it's HWND. The HWND is created by CreateWindowEx in another part of the application. In fact, I would like to replace the window with the form. Is it possible Thanks for your help, zde Only if you have the source code for that program and can recompile it with a modern compiler. Even then, you'd need to either support ActiveX controls or use MFC. ...Show All

  • SQL Server Simple Sum

    I did this before, but for the life of me, cannot remember the actually way to go about it. Im tryin to divide the value in a table by the total (Sum) of the row. Here is what i had in mind. =(Fields!Crash_Count.Value) \ Sum(Fields!Crash_Count.Value) I put this in, and it works: =SUM(Fields!Crash_Count.Value) \(Fields!Crash_Count.Value) but the first one keeps giving me 0.00 %...obviously thats not the answer. Can anyone help. Im just tryin to get the percentage of crashcounts. IT should be simple. Hi Tenchyz You can use the following to get the total for a certain field that would be displayed in the Page Footer: =Sum(Fields!Net_Doc.Value, "testsource" ) Using this you can ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Spacewar first run

    Being a complete newbie to all of this C# and XNA i loaded up spacewar click on build then installed the project. Then i ran it and a error window popped up, details said something about a missing something or file not found, i sent a report to MS from the window that popped up. I can see im going to have to buy a C# for dummys book cause im totaly lost as to what to do first... Ok iv retried the process. If i press F5 in studio the spacewar startup screen shows up. I clicked "build" first then "Publish" to c:\spacewar In that directory i clicked "setup" and thats what generated the error report. Note that i havent changed anything, i just wanted to see the spacewar project ru ...Show All

  • SQL Server Slq server 2005 and Xp Pro 64

    I am running xp Pro 64 and I am unable to connect to sql server 2005 as a Local System. The error message I get is that the default setting for server 2005 does not allow remote connections despite the fact that I am trying to connect locally. I have changed the settings for the server to allow local and remote connections, I've tried various combinations of enabling and disabling TCP/IP, shared memory, etc to no avail. The settings I am using work fine on another pc under xp pro 32. Is this a known issue. I also have a similar problem with MS Jet Engine 4.0 which will not work with a program compiled with 64 bit code but if the program is recompiled as X86 it works great. If anyone has come across ...Show All

  • Visual C# Creating a Paint app.

    Hi.. im trying to create an application that is similer to MS Paint.. i already figured out that i should use the mouse events.. move,up, and down.. i use Graphics to draw .. g.DrawRectangle(pen,x,y); problem is when i drag the mouse fast... it wont draw a complete line.. its like it didnt take all the mouse coordinates! how can i overcome this problem ! Create a member variable of type Point. Set its value when MouseDown occours Now on each MouseMove draw a line between the last saved point and e.X and e.Y and save the new point in the lastPoint field. So whenever new MouseMove occus when mouse is down join the last saved point to the new e.X and e.Y. It'll surely work Cheers ;-) ...Show All

  • Visual C++ inline assembly functions

    Hello, either I am missing some small stupid thing or there is an interesting bug in the way Visual C++ 2005 passes parameters to a function. Any help would be wonderful ^^. The following is the code I have at the moment. It simply reads in 3 values and sorts them least to greatest. According to what i know of how variables are passed in a function call, the top of the stack should have the return address followed by the variables passed to the function. When I do this however the passed in values and the top of the stack are several hundred bytes away from eachother seperated by junk 0xCC word values. #include <iostream> using namespace std; void asmSortThree( int& , int& , int& ); void main() ...Show All

  • SQL Server SQL Agent error - unable to read log file, the parameter is incorrect

    My SQL logs are filling up with the error "Unable to read log file, the parameter is incorrect". Seems to be related to the Sql Server Agent account. I saw one post about changing the Sql Server Agent from local user to local system but not sure how to do that - suggestions Is the local system account granted access to the log files directory in SQL Server HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Silverlight (formerly WPF/E) WPF/E (TextBlock) is not rendering Unicode correctly

    I have downloaded the WPF/E CTP & SDK, I played with them and have noticed that WPF/E does not fully support Unicode, as I use a TextBlock to test the display of Arabic text, WPF/E was rendering the text incorrectly as if it is rendering the text from left to right while it should render the text from right to left. This same behavior is true for Hebrew too which is also a right-to-left language. am I missing somthing Until FlowDirection is implemented, Can you mirror your text <TextBlock > <TextBlock.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="-1" ScaleY="1"/> <TranslateTransform X="100" Y=" ...Show All

©2008 Software Development Network