jibotang's Q&A profile
Visual Basic Sharing classes between solution projects
I have created a VB.NET project (Project1) in a solution and I would like to share some of its classes with a new project (Project2) I am adding to that solution. If I right click on the target project, Project2, and add existing items, and then use 'link file', I am able to add a link to the desired class files residing in Project1. However when building the solution I find that I get errors because Project1 refers to the classes with "Imports Project1.MyClass", and Project2 when reading the linked file does not understand what Project1 is. I want to keep the code for each project encapsulated in one exe and would prefer not to make class libraries / assemblies for this reason. Is there a way ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How did you start out in the world of programming?
I apologize if this is inapropriate, but I just wanted to ask something. For those of you who have proffesional experience in game programming, what was it like for you to start out And what is some wise advice that a begginer (or pre-intermediate, if you will) like me could use, and hopefully avoid making mistakes in the future regarding my career As a programmer, I see technology, programs, and games that are so impressive, I don't know how I could ever surmount to something like that. I mean, I can barely use something as easy as XNA. Or does it just feel like that when you're a begginer, and later in life you'll be laughing at how "hard" you thought it was I just want some advice from a proffesional programmer, and I wanna kno ...Show All
SQL Server A lot Of Questions!!!
Good Morning.. i have started developing on DTS recently. and i have a few question about "How-To" issues. Hope you guys can help 1) I noticed, whenever i want to "redirect row" whenever an error happen, i need to set my AccessMode to OpenRowSet... This mode as i noticed, cant be used when i am tranferring data into a sql table which has primary key set e.g. Ms Access which has identity -> SQL table with PK set Is there anyway, to capture the row error in my situation 2) Another question is, in a data flow... can i have a source which has multiple output arrow. Sorry for the inconvenince,Thank you in advance Rafael Salas wrote: I think Phill m ...Show All
SQL Server How to build a Custom Delivery Protocol of SMS
Appreciate for any comment about how to build a custom delivery protocol of SMS (short message service). I am working on a Notification Service project but I have no idea how to write a custom delivery protocol for SMS user. thank you, Hi Joe, I have similar requirements to Nemo, i.e. need to develop a custom delivery protocol for SMS. However, I cannot use the external providers as one of the requirements is that the application should be able to send notifications via an SMPP (Short Message Peer to Peer) Telstra (Aus) server. Any ideas on how to go about this Thanks, Kevin. ...Show All
Windows Forms Please Help me with this suddenly appeared problem ???
Hi While I am working with my VB 2005 Windows Forms Project I have a backgroundworker that executes some database operations ( getting some data ) and in the WorkerCompleted event I continue and process the returned data , O.K and this code works fine BUT suddenly I get the following exception : "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it." What's happens exactly Please Please Please I want any help about this suddenly Problem many thanks Mohamed Hi thanks more for your reply but my problem still exists What make me very very surprised and amazed is that this code wo ...Show All
Visual Studio Team System SOAP Event, Failed to deserialize the eventXml for WorkItemChangedEvent
Hi all, I'm writing a WebService to get notifications about the state change of the Work Item. I'm almost there, when a state is changed, my Notify() method is called, and the eventXml contains the XML info about the WorkItem. I wanted to create a C# object from the XML string, so I used the XSD.exe tool with the xsd delivered by Microsoft to create a new "WorkItemChangedEvent" class. The .cs file was generated successfully, but when I attemp to create my object like this: public void Notify ( string eventXml ) // Do not change the names of these parameters { XmlSerializer xs = new XmlSerializer ( typeof ( WorkItemChangedEvent )); StringReader sr = new StringReader ( eventXml ); WorkItemChangedE ...Show All
Windows Forms Designer weirdness when deriving from ComboBox
Hello, I have a form with a lot of combo boxes where the accepted values are either "true" or "false" on some or the values of an enumeration in others. Instead of having to copy and paste the values I wanted into the Items collection editor for each one, I decided it would be easier to create two custom types, each deriving from ComboBox, that automatically populate their Items collection. My original solution was pretty simple: class TrueFalseComboBox : ComboBox { public TrueFalseComboBox() { this.Items.Add(""); this.Items.Add("true"); this.Items.Add("false"); } } class PartOfSpeechComboBox : ComboBox { public PartOfSpeechComboBox() { PartOfSpeechType[] posArray ...Show All
Visual Studio Team System An overlapping product in SQL Server???
Hi, I spotted the following job advert: http://members.microsoft.com:80/careers/search/details.aspx JobID=ADA9F7F7-97D2-4B45-B2E1-8919E5525BA0&AllCl=Y&start=1&interval=68&SortCol=DatePosted&SortOrder=DEF Seems to me that the product their talking about has alot of overlap with datadude. What's the deal here -Jamie If you buy me some beer or better some good red wine, I might no longer have that problem. But he we already shipped v1.0 and we will very soon have many more interesting things coming your way, in other words I would not worry, I don't either -GertD ...Show All
Visual Basic how do i use a veriable as a textbox name
i am tring to pass a veriable to a other sub and then that sub uses that veriable as a textbox name Public Sub Casess( ByVal nu) Dim n1, n2, n3 As String Select Case (nu) Case 0 n1 = Form1.S631.Name n2 = Form1.S632.Name n3 = "" Cal(n1, n2, n3) Case 1 n1 = Form1.S501.Name n2 = Form1.S502.Name n3 = Form1.S631.Name Cal(n1, n2, n3) This code set the virables as the name of the textbox Public Sub Cal( ByVal n1, ByVal n2, ByVal n3) If Form1.n1.text >= "0" Or Form1.n2.text >= "0" Then If Form1.n1.Text = "" Then Form1.n2.Text = "0" ElseIf Form1.S92.Text = "" Then For ...Show All
.NET Development Time zone conversion problems
Hi, I'm trying to parse a date time string that is always in ET time zone. The resulting time should be converted to local time. I could do that by backadjusting the ET time and converting to UTC. However, the issue is that I don't know if ET is currently in DST or not, so that I don't know how many hours I have to backadjust. Is there a framework built in way to get the UTC offset for any time zone Thanks, Tom Note that Windows generates file time stamps in UTC. It depends on what happened to those when the file got transferred to your PC. If you used FTP you're probably toast. If you know for a fact that the file was stamped in the Eastern time zone, you'll always have a constant number of hours diffe ...Show All
Visual Basic VB.net - importing .txt file into.mdb file and getting jet database error.
Its the strangest thing. I have a listbox where the user can select the file name from the test folder to populate an access db. This file would always be on N:\test. I always get "The microsoft jet engine database cannot open the file ". It is already opened exclusively by another user or you need permission to view its data" If you see below i am never changing the folder location (bold)- Just messing around...i noticed I can select the file off C:\test to populate the database in N:\test... it will work fine! But the fileloc would be the same regardless of whether i select the file from N or C! Because I am only selecting the file name not folder location. So - if I select off C: fileloc = testfile.txt and it p ...Show All
Visual Studio Team System TestResults Drop
When are testresults dropped to final dir I have created a custom htm report from trx files (using trx2html task) but the generated htm files are not copied to build dir, I see then in the MSBuildProjectDir. Thx rido The test results are copied to the drop location by the TestToolsTask itself. If you want to copy extra files from the TestResults directory (or the MSBuildProjectDir) you will need to copy them yourself (using the Copy task). Alternatively, if you put your html report(s) into $(BinariesRoot) you can rely on the CoreDropBuild target during the build process to copy them for you. -Aaron ...Show All
SQL Server Stored
I try to crate a STORED PROCEDURE whit this code. IF (( SELECT Count ( Id ) AS CountView FROM picx_opslagstavle ) > 2 ) SELECT TOP CountView * FROM picx_opslagstavle ORDER BY Id DESC GO my ide is if there are over 2 post in the database ist will delete all post where count is over 2 eks. post 1 post 2 post 3 post 4 post 5 so i will delete post 3,4,5 and not post 1 and 2 bot i can't find out of my problem. i hob i can be helpt here :) thanks for all help. Im done :) i get the problem here is the code IF (( SELECT Count ( Id ) FROM picx_opslagstavle ) > 20 ) BEGIN WHILE (( SELECT Count ( Id ) FROM picx_opslagstavle ) > 20 ) DELETE FROM ...Show All
Windows Forms WebBrowser control and html document(simple question)
Hey, I added a .html document into my project. But How do you make it so that my web browser control "webbrowser1" will show the document, I named it "New_Tab.html" Thanks :) ok, assuming that you have copied that html file to the output directory, try this: this.theWebBrowserControl.Navigate(" file:/// " +Application.StartupPath + "/New_tab.html"); ...Show All
Visual Studio i lost setup.exe file of en_vs_2005_pro_dvd plz help
does anyone have en_vs_2005_pro_dvd setup.exe file plz upload it VS2005 90 day trial: http://www.microsoft.com/downloads/details.aspx FamilyId=B2C27A7F-D875-47D5-B226-E2578A116E12&displaylang=en ...Show All
