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

Software Development Network >> Rajendra Sabat's Q&A profile

Rajendra Sabat

Member List

Kumaresan.K
ibrahimK
oceansis
newindotnet
PismoPat
Lance Colton
JDWCLG
Minherz
Rob Grunkemeyer
Andrew Shearer
Loopsludge
rpreston
Xythe
Vonlar0
Vladox
Ljhopkins
Jacawa
RC COLA
Clive76
UA Jeremy
Only Title

Rajendra Sabat's Q&A profile

  • Windows Forms Speeding up background image

    I am using c# & .NET to try to make my version of the classic snake game, where the snake eats things and gets longer. I am using the GDI to do everything. My problem is that when I added a background image for a textured background instead of just using a solid background color, it slowed everything down a lot. I have tried putting the image in this.BackgroundImage, I have tried embedding the image instead of loading the file (which didn't help), and I have tried drawing the image from the OnPaint handler (which sped it up a little, but not nearly enough). I have also tried using bmp files instead of compressed jpg's and that didn't make any difference. Is there any way to have a background image without slowing things down this much, ...Show All

  • SQL Server sqlserver 2000 isolation level & locks

    Hi , I am new to sqlserver family! 1) In SQLSERVER 2000 what is the default isolation level 2) DB: PUBS / Table: Employee Session1: Begin Tran Go Update employee set fname='thiru' where emp_id= 1 Session 2: Select emp_id,fname from employee <<< waiting.........>>> Session 3: select empi_id,fname from employee where emp_id = 2 1 record selected successfully Oracle returns the value for Session 2 query but SQLSERVER waits for the Session 1 transaction either to be comitted or rolledback. What happens exactly in sqlserver for session 2. thanks Thirumaran SQL Server 2000 doesn't have a row versioning support. Could you share your SQL script on how yo ...Show All

  • Windows Forms asp.net + vb.net; error index out of range

    hi i’m developing an onlinesupport with asp.net and vb.net. i’ve got a database (mssql 2003 express) wich is splitted in support-themes and support-documents. by loading the page, a gridview displays the support-themes as a link. if you select a theme, it will be created a sql-statement which selects and displays the depending support-socuments in another gridview as link, too. if you select a support-document it should be displayed as a html-site, but it doesd’t work. instead i get following error-message: Der Index lag auserhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein. Parametername: index Index out of range. It doesn’t have to be negative and not smaller than the listed. for displaying the ...Show All

  • Visual Studio Team System BUG: The Visual Studio 2005 interpreter cannot determine whether an ambiguous column belongs to an inner or outer SELECT stateme

    as http://support.microsoft.com/kb/928962/en-us said I must fully qualify column names in Visual Studio 2005 database code.but I do not know how to fully qualify the code below Delete from dbo.CustomerCountryProfiles where dbo.CustomerCountryProfiles.CountryID = @CountryID; thanks Hmm, maybe it’s a bug in DBPro or some sort of wrong interpretation. Can you post the whole sp or function where the error appears. Kind Regards, Ralph ...Show All

  • Visual Basic Tableadapter.update with auto-increment on SQL column problem

    Hello, I'm using databound textboxes to display data from a database on VB.net 2005. I have an "add new" button, which does this: BindingSource.AddNew() - and then once the user has entered the details, they click a button that updates the database: Try Me.ChildrenBindingSource.EndEdit() Me.ChildrenTableAdapter.Update(Me.Main_databaseDataSet.Children) Catch ex As Exception MsgBox("Update failed") End Try I have a primary key field on the database (I'm using MS SQL express) called "ID". I've tested all the above with the user entering their own ID, and all works fine, but I want this to be auto-incremented instead. So, I set my MS SQL "ID" column up with these pr ...Show All

  • Visual Studio 2008 (Pre-release) UDP channel example crash

    Hi, I am running UDP custom channel example from SDK on June CTP (SDK and WCF versions do match). I get an null reference exception in InitializeURI method. The sample has two parts - code configuration and config file configuration. The crash occurs in first part (code configuration), when using SampleProfileUdpBinding. Anybody got it running Thanks Alex This is a bug in the June CTP SDK. The relevant code in UdpChannelListener should look like: Uri baseAddress = context.ListenUriBaseAddress; if (baseAddress == null) { if (context.ListenUriMode == ListenUriMode.Unique) { UriBuilder uriBuilder = new UriBuilder(this.Scheme, Dns.GetHostEntry(string.Empty).HostName); uriBuilder ...Show All

  • Visual C# Interfaces and Abstract Classes

    Hi, I am hoping someone can explain this to me. Lets say I have an abstract class called Employee, from Employee, the following classes are inherited, Manager and Cleaner Can someone explain to me how to incorporate an Interface for this scenario so my application can tell which type of object "Manager or Cleaner" its dealing with Thanks RizwanSharp, I understand what you are saying but there is no way for me to know what kind of employee logged in before going into the database. Since the employee class is an abstract class I cant say Employee emp= new Employee() emp.authenticate(); if(emp.PositionID==1) //Manager { frmManager managerForm= new frmManager(); managerForm.Show(); } thats why I ...Show All

  • SQL Server SQL2005 ReportingServices / MOM Reports

    Hy all I have a problem in reporting services if I in the MOM a report import come the following error: Detail Information Operation: Import Report Name: C:\Program Files\MOM 2005 Management Packs\Reports\MicrosoftWindowsBaseOperatingSystemReports.XML Status: Failed Description: Import failed. Report server url: http://S621059//ReportServer/ReportService.asmx Report import file: C:\Program Files\MOM 2005 Management Packs\Reports\MicrosoftWindowsBaseOperatingSystemReports.XML Error message: The chart 'chart1' is in the report body but the report has no data set. Data regions are not allowed in reports without datasets. ---> The chart 'chart1' is in the report body but the report has no data set. Data regions are not allowed in repo ...Show All

  • Windows Forms Results from a worker thread into main thread?

    I have a C# dll which provides an event of SqlDependency Notification messages to clients via a delegate. The event fires ok and I get the expected data. The problem lies when I try to get the resulting dataset into a DataGridView without having to implement a manual refresh via button click. I'd like for this to automatically update upon change. I'm thinking the reason is because the data is coming from a worker thread within the SqlDependency class and I have to create some means of marshalling it into the main (gui) thread. Below is my first whack at the event handler but for some reason it does not work. That is I still have to mash a refresh button. Can anyone offer a suggestion void ExcepNotification_NewExceptionNotification(Data ...Show All

  • Visual Basic Can't get Microsoft Regular Expression to work

    I have urls that may start with "http" or "https" where I want to get the last parts of the url. For example, in "http://pear.nadd.tron.com/engg/resources/dwglogs/sum/sumpdf/joesl.pdf", I want to get just "resources/dwglogs/sum/sumpdf/joesl.pdf". The first part is always one of two ways depending on whether the url has "http" or "https", and that is always followed by "://pear.nadd.tron.com/engg/". I want everything after that. I can't see a way to extract the last part of the url I want with SubString and/or IndexOf, so I tried using regular expressions. However, I can't get the example in the Microsoft help file to work (http://msdn.microsoft.com/library/default.asp ...Show All

  • Microsoft ISV Community Center Forums Cell Equal To EXACT Value

    Hi all, prob a very simple question for you guys. How do you check if a cell equals an exact value of "Product" I am currently using: Cells(i, 1).Text = "PRODUCT" though this is also picking up any cell which contains the word Product, such as cells which contain the word Production. So how do you check for an exact value Your problem statement is inconsistent. I put these values into A1:A3 of a new sheet: product Product Production I ran the following from the Immediate Window: For i=1 to 3 : Debug.Print Cells(i, 1).Address, Cells(i,1).Text, Cells(i,1).Text = "Product" : Next with the following result: $A$1 product False $A$2 Product True $A ...Show All

  • SQL Server Can not see an image in the report manager

    Hi, I have an Image that its path is stored on a DB. I can see the image in the designer on Previous stage but I get this warning: Images with external URL references will not display if the report is published to a report server without an UnattendedExecutionAccount or the target image(s) are not enabled for anonymous access. However, in the report manger I Can not see the image . Any ideas Thank you. Avi ...Show All

  • Visual Basic Resize windowform1

    hi, i am new to VB.net(Windows application) how to dynamically increase/decrease control size when form size is increased/decreased by user i tried using tablelayoutpanel/Anchor/docking.i find it using very diffcult to use.(I think i dont know how to use it ) is there material available in online about how to use tablelayoutpanel/anchor/docking Thanks in advance Not to be rude... But could you use the ' ' indicator to show which are your questions. Its not apparent if you have one or two questions and reading them without punctuation could result in very different answers. Thanks. ...Show All

  • SQL Server Oracle and unicode

    Since the .net oracle providers are the only ones that work in x64 it is extremely annoying that it insists on mapping ALL varchar columns in oracle to wstring. Is there a way to fix this The oledb providers don't have this problem but I don't like being forced to use the 32 bit runtime as a workaround. Brent Mills wrote: Since the .net oracle providers are the only ones that work in x64 it is extremely annoying that it insists on mapping ALL varchar columns in oracle to wstring. Is there a way to fix this The oledb providers don't have this problem but I don't like being forced to use the 32 bit runtime as a workaround. i'm not sure if this will help, but openlink has a 64 bit ole db to obdc pr ...Show All

  • SQL Server Subtotal

    Hello, Is there any way to change the formula of SubTotal column that is used in a matrix Imagine that I want to obtain the difference between the values in the columns instead their adition. Is there any place where I can see the code used behind SubTotal column Thanks and best regards. vjn Thanks for answering my question Adam but is there any way to apply the custom code like the SubTotal in a matrix My real problem is described in another thread (http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=745957&SiteID=1) and I don't know if custom code will solve the problem. My idea was to discover the SubTotal expression and change it to calculate the variation instead. ...Show All

©2008 Software Development Network