null_loop's Q&A profile
Visual Basic A very strange incident... and strange question.
Well I was working on a MS-Access 2003 project that has a bit of VB code that executes once a certain text box loses focus. When it loses the focus it calculates a couple of lines of code. Everything worked fine. Now for some reason it seems to crash, when I debug it, it goes to a line where the following happens 'cPrice get's a value on the form e.g. R150.00 'iWeight get's a value from the form as well e.g. 5t tTax = cPrice / iWeight But it keeps stalling there, VB auto casts it's types if I am not mistaken, so anyone any ideas why this keeps failing What types are cprice, iweight and ttax if they are decimal, the division can cause exceptions for overflow or division by zero. For integers, the ...Show All
Software Development for Windows Vista A generic job scheduling engine
Hi I only have a very high level familiarity with WWF. We are looking to build a load balanced generic job scheduling engine to run long running processes within our application. e.g. we can have a job to cleanse some data every night at 1:00 AM etc. Can we use WWF to build such a generic job scheduler Thanks I think this is the same issue that's in this thread - http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1243814&SiteID=1 Hope that helps Kavita ...Show All
Internet Explorer Development Z-index bug
Anyone else have issues using z-index within nested divs The navigation on our large scale Web site breaks with ie 7's z-index implementation. I have currently got the same issue, my page displays fine in FF, but in IE7, a drop down (styled with CSS and positioned with CSS) is causing issues. It displays behind two other pieces of content. Ton, if your still reading this, any chance you can give me a link to what you were talking about Thanks. ...Show All
Smart Device Development Retrieving Data from SQL any where using PPC2005 help please
Retrieving Data from SQL any where using PPC2005 help please Hi, I’m new to this to be genital pleases. Ok with the following code I can get a list of uses in to the data grid for all uses that have the id 10 System.Data. DataSet sqlDS = new DataSet (); SqlCeConnection sqlConn = new SqlCeConnection (DB_Connection_string); System.Data.SqlServerCe. SqlCeDataAdapter sqlDA = new SqlCeDataAdapter (“Select name From data where user_id = 10”, sqlConn); sqlDA.Fill(sqlDS, "table" ); dataGrid2.DataSource = sqlDS.Tables[ "table" ]; what I would like is to be abol to get a string that containes the first user name returned with o ...Show All
SQL Server "fractional truncation" trying to insert time value into smalldatetime via SQL Native Client ODBC
The following represents a change in behavior between the SQL Server ODBC driver and the SQL Native Client ODBC driver. I noticed a similar post about this issue, but the scenario below is slightly different. I'm trying to insert a SQL_C_TIME value into a smalldatetime column (SQL_TYPE_TIMESTAMP) via a parameterized insert. With the SQL Server driver, I receive the "fractional truncation" warning with a SQL_SUCCESS_WITH_INFO from the SQLExecute, but the value is still inserted into the table. With the SQL Native Client driver, I again get the "fractional truncation" and SQL_SUCCESS_WITH_INFO, but the value is NOT inserted into table. Here's how to reproduce in ODBC Test. Conn->Full Connect to either drive ...Show All
Visual C# Web Service
hi, is't possible to inherit the windows control using Web Service in C#.. thanks in advance <%@ WebService Language="C#" Class="Util" %> using System; using System.Web.Services; public class Util: WebService { [ WebMethod(Description="Returns the time as stored on the Server", EnableSession=false)] public string Time() { return Context.Timestamp.TimeOfDay.ToString(); } } from msdn ...Show All
Visual C# Need Help! "Paramter is invalid"
Hi, i am trying to use the code below to show a image from a file but on the line "Image image = Image.FromStream(mStream); " it gives me a parameter is invalid error and i do not know how to solve, any ideas private Image getImage(byte[] inputImage) { byte[] header = new byte[] { 68, 68, 83, 32, 124, 0, 0, 0, 15, 16, 0, 0, 207, 0, 0, 0, 220, 0, 0, 0, 128, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 255, 0, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 0, 255, 8, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; MemoryStream mStream = new MemoryStream(); B ...Show All
Windows Live Developer Forums WLM Addin: error 8013150a when i load my addin
Hello, I'd like to program an addin that will display a little window (winform) with few controls (buttons and text edits). Is it possible What is the simpliest solution to make this I'm using C# with visual2005. Thank you. R.P. Try this, shows options dialog with few controls. The form appears when you click in settings button or you type !menu in a conversation window. You talk about that === Edited by David_ES @ 12 Oct 2006 11:15 AM UTC=== public class ClassLibrary1 : IMessengerAddIn { private MessengerClient messenger; private Button aButton, aButton1; private ListBox list; private TextBox texto, texto1; public Microsoft.Messenger.MessengerClient messenger2 = new Microsoft.Messenger.Messen ...Show All
SQL Server Writing a header row to a flat file destination
I'm unable to figure out how to write a column header to my flat file destination. My source is a OLE DB SQL query and I need the column names as a header row in my text file destination. This seems easy but the closet I can find is hardcoding the column header row in the header property. Is this the only option Thanks Right-mouse click on the flat file destination in the connection managers at the bottom of the package designer and select edit from the popup menu. In the center of the Flat File Connection Manager Editor, check the "Column names in first data row" check box. Yes, it is that simple. ...Show All
Gadgets gadget title color
is there a way to change gadget title color in live.com. the default color blue is fine, but once its clicked it turns purple which is just nasty. can i set the gadget title color in css file (this is second post, cause the first one got lost. sry if later turns out i posted it twice) ...Show All
Windows Forms Having problems building my Setup Proyect??
Hi! At the time that I'm building my Setup Proyect I have a 8 warnings saying Two or more objects have the same target location and one error saying Unrecoverable build error I don't know what to do beacuse I can not find the error. Please help me if you have seen something like this before because I want to run my application in another computer.... Regards!!! I had that problem... Dependancies of my project output had dependancies themselves; and the setup project will recurse until it has all related dependancies... however, when these recursed dependancies conflict dosen't do anything about it. So, the solution is to simply add in the references to all possible projects (or assemblies) which may get automatic ...Show All
Visual Studio Express Editions Which API I should use to refresh a directory ?!
I try to refresh (like pressing F5 button in windows) a special folder via programming ! But I don't know what should I do! Please help me MadAboutC# is correct about using the Directory/DirectoryInfo classes to refresh the directory. in VB.NET: Dim theDirInfo as new DirectoryInfo( path ) theDirInfo.Refresh() ...Show All
Visual Studio Team System TFS not able to check in file
Hi Freinds, In Team foundation Server users can checkout file. After modification users not able to check in file. At that time i get this error "TF54000: Cannot update data because the server clock may have been set incorrectly. Contact your Team Foundation Server Administ" But users can checkin with undo pending. ie with out modification they can able to check in the file. Please guide to solve the issue. Note: I checked the time on the data tier where my TFS resides it is ok. Thanks & regards Suresh Suresh Please have a look at the following link. I had similar problem and i got the answer from microsoft. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=7 ...Show All
SQL Server SSL Encrypted ODBC Connection
I have a question regarding the configuration of SSL for SQL Server connections. I am very familiar with configuring IIS to use SSL certs and the host headers that are different from the physical machine name however I do not see these same provisions in SQL server. I.E. I have a server on a domain named MYDB and the domain is mydomain.dom and I have an external domain name on the internet as a whole that has a domain name of externaldomain.com can I get a SSL cert that has the common name as db.externaldomain.com or do I have to set the common name to mydb.mydomain.dom. I just did not see a place where I can tell SQL server to use that cert like you would in IIS. I am also assuming that if I get this cert from a major vendor like th ...Show All
SQL Server Agent failures and custom alerting
Hi I need to have a reliable alerting system for my merge replications I have setup on my MSSQL 2005 server. The problem is that the build-in alert system the 'agent failure' alert only triggers when 'all databases' for that specific alert is selected. There is no failure alert triggered when I select a database and force a failure. The 'agent succes' alert does never get triggered at all. I need an reliable succes and failure alert per database because I need to do specific actions per database. Can someone help me out here I'm thinking of building my own alerting system if the help here is insufficient. In that case I need to know in what tables to look. Maybe someone can give me some pointers Thanks anyway, Edward ...Show All
