Attempting to do SetData() on Texture2D that has been recently Draw()-n by SpriteBatch leads to following exception:
The operation was aborted. You may not modify a resource that has been set on a device, or after it has been used within a tiling bracket.
Can I determine in advance if executing SetData() will throw this exception?
...
Hello,
I'm fighting since two days with a simple question : Is there a way to identify the source of a WCF call ?
I'm trying to find a realiable .Net property that will let the service know the address (URI) of the calling Web Service.
Especially in the case where two Web Services are hosted on the same machine.
Thanks in advance.
...
How to get following result in ASP.NET:
INPUT string: "Duck, Donald"
Required String: "Donald Duck"
P.S: The input string is dynamic.
...
Hi I am doing a project that has to send automatic sms.I am developing in VB.bet desktop
appliction and backend as MS-Sql Server 2000 .Shall I get any help regarding to send sms without sms gateway software or
any freeware sms gateway that supports in winXP, thanks in advance.
My email id is [email protected]
...
I have been using VS2010 without any issues, always on the same application. Suddenly within the last my solution has become unbearably slow when right clicking. When doing other projects, it is fine. The only thing I can think of that I changed was disabling the SQL Server debugging.
It happens if I right click anywhere within the c...
I develop a website and I have this problem:
The registered users on the website should put a (date & time) field, and when the current date will be the same of this date a function (that I developed) should be called.
How can I do that?
Your Faithfully.
...
I'm wondering how I can use Postmark for sending emails rather than specifying an SMTP in the web.config for the various login controls:
asp:RecoverPassword
asp:ChangePassword
I don't want to use SMTP, Postmark is doing a great job with all of our other email.
Any suggestions?
...
Is this even possible? tried several ways and i have no idea how to continue.
Using vb.net in vs 2008 and itextsharp
This is my code for creating the pdf.. also have alot of code to fill it
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 90, 80, 80, 90)
Try
PdfWriter.GetInstance(doc, New FileStream(Server.MapP...
I am writing a service for Windows Vista/7 which needs read/write/delete access to the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons
Are there any special considerations I must make just in case the target system has UAC enabled and the service must always run with administrator privi...
I'm working on a project with a contractor we hired to do some VB.Net programming. I used to program for this project, but I have more recently become primarily the project manager so I can work on other issues I have. His method of programming differs greatly from what I was taught in school. The only time he uses classes is basically i...
Hi all,
I am in need of a way to write a GZipStream to a string.
I am using:
GZipStream Decompress = new GZipStream(inFile, CompressionMode.Decompress)
I have tried several methods, but can't figure it out.
Does anyone have any ideas?
Many thanks,
Brett
...
Hey I have a XML Feed which is sometimes slow to connect to making my front page quite slow to load sometimes.
I load it as follows
Try
XmlDataSource.DataFile = "http://www.rte.ie/rss/news.xml"
XmlDataSource.XPath = "rss/channel/item [position()<=3]"
dlRSS.DataSource = XmlDataSource
dlRSS.DataBind()
...
I am writing a VB.Net application wherein I would like to be able to communicate with it from a remote computer. Specifically, I would like to be able to send (from a remote computer) both text data and also images (jpg, png, etc.) and then have the application use the sent information by displaying it to the user. How would I code th...
Hi,
I have a Class FileDoc
Public Class FileDoc
Inherits BaseClass
Public Sub DeleteDoc()
dim catId as integer = Cat_ID
End Sub
a bunch of properties...
End Class
And I have another Class...
Public Class BaseClass
Private _Cat_ID As Integer
Public Property Cat_ID() As Integer
Get
Return _Cat_ID
End Get
S...
I have a network printer in the classroom lab. I'd like to keep record of how many pages of each student has printed. I want to know how can I read
the printer pool to get the number of pages, when a student prints. Here's what I have in mind: Write a Windows service to get:
User logged in name
Number of printed everytime they print th...
hello,
I want to add a usercontrol to a panel. My code does not work:
Panel1.Controls.Add(uc1)
thanks
...
Trying to figure out XPath and I have successfully create an XPathExpression that lets me grab the events, but any nested sub groups seem to be unavailable to the query, I can get all the children on the Events group, but the LocationName field I can not access.
I am trying to figure out how to get the LocationName child into my query
...
hello,
how can I add a link to DataGridViewLinkColumn?Here is my code:
Dim linkColumn As New DataGridViewLinkColumn
linkColumn.Name = "Links"
dgv.Columns.Add(linkColumn)
dgv.Rows.Add("URL", "TEXT")
What is the code for "URL" and "LINKTEXT"?
...
Is there a way to remove items in code generated in Codedom from VB code?
For example at the top of all the code I generate, it has:
'------------------------------------------------------------------------------
'
' This code was generated by a tool.
' Runtime Version:4.0.30319.1
'
' Changes to this file may cause incorre...
I have a problem with a sql query. Through the query I am trying to search database for any occurrences of string (can be anything) in a column using the SQL LIKE command. The problem is that it works fine for most of the strings say john, jim, ji"m , but does not work when i include the following characters which are ( ' , { , } , and a...