Richard Meijer's Q&A profile
Visual Basic how do you load an image from resources?
I added my background to my resources.resx for the program i am making. I am trying to make that image the background for panel1 by using code but I have been unsucsessful so far. If you add the image to the default resource of the project (with the resource page on the project designer pages). With new VB.My support, it would be very easy to do. The code would looks like: Me.Panel1.BackgroundImage = My.Resources.Image1 Thanks Lifeng Lu MS VB ...Show All
Windows Search Technologies WDS 3 - RTW Final not indexing .xlsx file which have ODBC SQL Connection
Hello, Brandon recommended me posting this problem I noticed in the WDS 3 RTW. Basically the WDS 3 RTW, and (Beta 2) cant index the contents of Excell new format (.xlsx), if the excell contains a ODBC (SQL database) connection. The easy way to reproduce is to, create a new .xlsx file using Office 2007 B2TR, create a ODBC SQL connection to any database/table that you have access to. Save the file and wait for index, it will index the filename but never its content. With the WDS 2.6.5 this problem doenst happen. Regards, Marcus Dear Daniel, Thanks for looking into this problem, it has been very difficult not to be able to search within those files. I have emailed you the .xlsx file, Few comments: 1) ...Show All
.NET Development Problem with InputOutput ControlParameter of ObjectDataSource...
Hi. I have a question. On my page there are TextBox, GridView, ObjectDataSource and a button: <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Method1" TypeName="Class1"> <SelectParameters> <asp:ControlParameter ControlID="TextBox1" ConvertEmptyStringToNull="False" DefaultValue="0" Direction="InputOutput" Name="param1" PropertyName="Text" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource> Where Class1.Method1(ref param1) - is my business object. When app launched, the value from TextBox1 is passed into the parameter using ObjectDataSource1. Method1(ref par ...Show All
Visual Basic Dealing with null values
I remember when I was using VB6 that I always used If IsNull() End If statements to check for null records before performing any kinda of calculations, does this still hold true or what is the best way to deal with nulls Davids Learned Alot Today! Something funny with this post spotty and its not you I havent marked this as an answer yet, but it shows up as if I had and I havent Any ideals ...Show All
Visual Studio 2008 (Pre-release) Deserialzed object is null
Hi, I use the IRequestChannel.Request, the message gets deserialized and i dont receive any errors but the deserialized object is null. Both my data contracts match. I dont want to use MessageContract. Any thoughts on whats going wrong Thanks! The namespaces in the client/server data contracts are different Client side contract [ DataContract (Namespace = "http://vz/framework/servicecontract" , Name= "CreateUser" )] public class CreateUserRequest and ServerSide contract [ DataContract (Namespace = "http://vz/framework/datacontract" , Name = "CreateUserRequest" )] public class CreateUserRequest They need to be the same for ...Show All
.NET Development Blocked SMTP send in Net.Mail
I've found this problem mentioned in another thread but not addressed as it was off the main problem. My application appears to send mail OK but none of it leaves the machine until the app is exited. Is some kind of flush required I'm using VB 2005 express. Downloaded yesterday. Dim s mtpSend As New SmtpClient Dim mmNew As New MailMessage( New MailAddress( "y@X.net" ), New MailAddress( "j@X.net" )) mmNew.IsBodyHtml = True mmNew.Subject = "A dull test" mmNew.Body = "<B>Hi</B> there! <P><I>This message sends OK:</I><P>" ) smtpSend.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network smtpSend.Host = "outmail.fres.com" Try smtpSend.Send(mmNew) Catch ex As Exception Msg ...Show All
.NET Development XML Compare
Assume that there is a XML String such as <Page> <id>1</id> <versionnumber>1</versionnumber> <title><b>This is a test</b> to check</title> </Page> assume the above xml string is version 1 <Page> <id>1</id> <versionnumber>2</versionnumber> <title><b>This is a test</b> to check new version</title> </Page> assume the above xml string is version 2 now is there any way in .net using C# where we can compare OR find the difference between the two versions shown above for the tag "title". Please let me know. Thanks in advance Generally comparing ...Show All
.NET Development Check whether application is signed
Hi all, we use strong names to sign our applications. I'm a developer and have only access to the public key. Then the admin signs it with the private key. What is now the easiest way to see whether the application is already signed by the admin or not ...Show All
Visual Studio Replace file name when project is created with $safeprojectname$, SourceSafe conflict
I've created a Project Template. I want the files in the Template to be named after the new Project name itself, one way I've found to do this is to name the files in the Project Template as $safeprojectname$.whatever but Visual Sourcesafe will not allow me to checkin the file because of the $. e.g. I want a file to be name MyNewProjectName.cs when the new Project is created so I've named all references to it as $safeprojectname$.cs in the Project Template but Visual Sourcesafe will not allow me to checkin the file because of the $. Is there another way to rename a template file after the new projects name I'm generating the template at build time by using a csproj, the project contains all files required for the template and also the Tem ...Show All
.NET Development How to set a description for a Windows Service (VB .NET)
I'm talking about the description available from Service Manager when you do clik above. TIA "Service marked for deletion" often means that someone has a handle open to that service, so it can't yet be deleted. The ServiceController class wraps a handle that is released if you call Close, but otherwise the handle isn't released until GC of the object. Calling ServiceController.Stop to stop a service during an uninstall can get you in a timing race if the wrapped handle isn't closed in a timely manner. ...Show All
SQL Server INSERT rows while SELECT returning large volumes of data against same table
I'm taking over some legacy coding and am checking to see if there may be a better approach to some sql code I've inherited. Any input would be appreciated. Here was the problem that the implemented code was to address: Given a high volume (10 to 50 thousand inserts daily) transaction table, it was observed that when executing a stored procedure that executed a SELECT against the table while inserts were being attempted, there was considerable delay before the inserts were committed. It turns out the SELECT query was taking 100% CPU. Because of the business needs of the environment, the inserts were required to be committed in a very timely fashion. Present Solution: The currently implemented workaround implements a cursor that ...Show All
Visual Basic click and drag, howto?
How to click and drag a component, such as textbox for windows application and smartdevice app Drap and Drop is a pretty big subject, can you give us more detail as to what you want to do Here is a link to a FAQ on how to implement basic drag and drop functionality in a control. It's a good starting point. http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=556&CategoryID=3&tabindex=302 ...Show All
Visual Basic Approach for time stamping
What approach we should apply when we want to do the time stamping services using digital certificate ritesh srivastava, According to your demand, there is a PGP Digital Timestamping Service. Stamper is a free digital timestamping service which uses PGP and operates via Internet email. Launched in 1995, it remains my intention that this will be a reliable quality service which will remain in operation for a number of years. If you consider this is useful, please take a look at the following link for further information on this issue: http://www.itconsult.co.uk/stamper.htm There is also a sample project on Timestamp, please have a look: Timestamp - A utility to change a files "Modified" time. http://www ...Show All
SQL Server Simple Calendar Parameter question
This is probably pretty simple, but i've never done it before. Im trying to put a Calendar up for the parameter, So they can click a date on the calendar, and get it quiered. Is this done in the dataset or in the report Parameters and what do i need to do I keep getting the same error. I tried 1/1/2000 and then 01/01/2001. And i got the error both times. Do you think it might have to do with the fact that some of my dates are listed as 1999 or by quarter. but when you drill down, its listed as Jan 1, 1999 and so on. ...Show All
SQL Server OpenQuery() to Linked Server hangs, leaving SPID with open tran, then templog.ldf grows without limit.
Hi, We have a customer that is using SQL Server 2000, and experiencing the following intermittent problem -- occasionally templog.ldf will grow and grow until it fills the entire disk. This is a rare problem, it has happened less than 10 times in the past two years, for a job that runs once a minute. But it has happened on 3 different SQL Servers, (two production servers, and one test server). Our suspicion is that the root cause is an OPENQUERY() to pull data from a linked server (Oracle database on Unix). We have seen that these OPENQUERY() statements occasionally hang and cannot be killed. The OPENQUERY() is used to populate a local table, and when we originally populated permanent tables with OPENQUERY(), then there would be a ...Show All
