BobbyPeru's Q&A profile
.NET Development regular expression or other method?
if i have this sentence, how can i use regex or other method to get the value i want For example, i need to get the value 2months,3.10, 3months,3,20 <TD BGCOLOR=#FFFFFF> 2 Months </TD><TD BGCOLOR=#FFFFFF ALIGN=CENTER> 3.10 </TD></FONT></TR> <TR><font face="Verdana, Arial, Helvetica, sans-serif" size=2><TD BGCOLOR=#FFCCCC> 3 Months </TD><TD BGCOLOR=#FFCCCC ALIGN=CENTER> 3.20 </TD> Hi First of All I am sorry for late reply. I was a little busy last day. I am giving you pattrens and hope that you will solve the problem. To extrac ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
Visual C# Database connection Dilema
Hi I am working on an application with two main parts. The first part is the database I am connecting to and the second is an activeX control. I am also using SQL 2005 Express as my database server. The way I have incorperated the database into the app is by using a auto-generated dataset and table-adapter and then doing the rest of the coding myself. My app has to do a few simple queries and occationally write some information to the database. The dilema comes from the activeX control. The AX connects to a servlet. This servlet must also connect to the same database as my application, but when the servlet attempts a connection it bounces b ...Show All
.NET Development Visual Studio 2003 Mixed Mode Debugging Crash
I have a project that is made up of a mixture of C++ COM dlls and C# COM dlls. The main executable is a Win32 app. If I turn on Mixed mode debugging to allow me to debug the C# dll's Visual Studio crashes 100% of the time as it loads the C# dll's. I noticed that the project uses reference to the .Net framework 1.1, but just before Visual Studio crashes it is loading .Net framework 2.x components. Any idea how to fix this I have both VS 2005 and VS 2003 installed on the PC. Alicia That's not good. This may be a collision of 2 things: 1. VS 2003 can't debug an app that loads the 2005 CLR (V2 ...Show All
Visual C# Help ( i mean it) lol
I want to make a Clock in Viuall C# and my Clock(digital) work fine and tell the right time but the problem is my dad want me to make a sperate tab where i would put a text box in witch i can change the time but the only probelm is i don't kniow how can somone pleez help me ! anyone pleez! yeah that was my intention, to change the time and only the varible not the system clock and thanks for repliying this really helped me ...Show All
Visual C# Getting name of cd in cdrom
I can use the Directory and DirectoryInfo to get every bit of information about the files contained on a CD in the drive. I can use the DriveInfo to get all the specifications about the CDRom with the exception of the Name assigned to the actual CD. The best I can get is the Drive letter and volume label. The volume label is not always the same as the cd name. For example, I have my bluetooth driver CD in at the moment. The name is KensingtonBTW. The volume label is something like 09893-0933. I have been unsuccessful finding a way to get to the "KensingtonBTW" name. System.IO. DriveInfo d = n ...Show All
SQL Server between operator
Hi, I'm having problems using the between operator in a query statement. Select * from <mytable> where date between @date1 and @date2 The date values with a hour specified, aren't returned. What is the approach you would recommend here Thx EDIT: by playing with this problem I've figured out I can append the hour to the date like this: <date> between @fromDate + '00:00:00' and @toDate + '23:59:59' this seem to work, but I'm not sure if this is correct Select * from <mytable> where date >= @date1 and date < dateadd(d,1,@date2) or Select * f ...Show All
Smart Device Development Learning the .NET compact framework
Hey, I am having a hard time finding resources on programming for the compact framework. Does anyone here have any good resources. Also, check out the OpenNETCF wiki. We have a collection of links to .NET CF-related blogs (which are a invaluable learning resource, IMHO). ...Show All
Visual Studio 2008 (Pre-release) DLinq Sql Tracing
Hi, I have been looking through the documentation and cannot identify a convenient way to trace (log) out the sql being run under the covers. I have been looking for an event on the DataContext, but to no avail. What would be a good approach to accomplish this Thanks Mirko To see the SQL, use the following line. db.Log = Console .Out; I have posted a sample that I used in my PDC demo including the line above. Thanks. Dinesh Kulkarni Program Manager - DLinq http://blogs.msdn.com/Dinesh.Kulkarni/ ...Show All
Visual Studio Team System TFS / MS Project Bug
When assigning resources in MS Project to a task (existing or a new one), MS Project just shuts down. No warning and no error messages are displayed. It happens every time for every user who is creating a project schedule. This does not occur when I use excel. One difference I did note is that in Project I added reasources via the Company Directory and their names showed up in the assign resources column as the full name. In Excel they showed up as the Windows login name. I don't know if it makes any difference. Jeff In Project if you add resources as the login name do you still see the same problem All work items are tracked using the ...Show All
Software Development for Windows Vista DecCTP_5270_32bit_Main_DVD Installation Problem
I install vista build 5270 on my Dell Dimension 5150, but it encount a problem, and the error information is: Problem Signature: Problem Event Name: WinSetupDiag01 Report signature 01:WinMain_idx03 Report signature 02:5270 Report signature 03:0 Report signature 04:1 Report signature 05:4 Report signature 06:0 Report signature 07:Ultmate Report signature 08:2600 Report signature 09:30053 Report signature 10:30035 what's the problem How can i get rid of it Thanks for help! How much space do you have in your HDD Do you have any other OS on your machine How much RAM do you have ...Show All
Windows Forms {SOLVED} get executable path of service
I have created a Windows Service project and inside that project i need path to a file based on file name that resides inside the folder where this service is installed.I dont want to hard code the path so any way to get complete path from just file name.If not how can i get path to service executable because that will also solve my problem, but that would be second option. thanks Scott I also found one more way to do it while searching Process currProcess = Process.GetCurrentProcess(); string serviceEXEPath = currProcess.MainModule.FileName; ...Show All
Visual Studio Compile BuildItems - Wildcards - RecursiveDir
Hi, the documentation states for RecursiveDir that "If the Include attribute contains the wildcard **, this metadata specifies the directory that replaced the wildcard to find the item." In a test project I created a Compile build item with the Include path set to <Compile Include="**\TestClassA.cs" /> and when I load the project and programmatically test for the presence of of the RecursiveDir metadata item, it is present but is set to **\ which is not exactly illuminating. Am I misunderstanding the documentation when I expect RecursiveDir to be the actual (relative) path to the TestClassA.cs What wo ...Show All
Visual Studio permcalc.exe fails the installation each and every single time.
ok, I have been banging my head against the wall here on Beta 2 installation Opening day beta 2 tried downloading from msdn subscription. Downloaded SQL server 2005 and VS. While downloading I built up a brand spanking new XP VPC SP2 all patches up to date. Well for some reason the first download of VS didn't take it was only 900 meg but I got SQL server. So I went ahead and installed SQL server. Started redownloading VS standard. I got the VS iso image downloaded finally when to capture image and VPC says it is not a valid image. However DVD burning software said it was fine and would burn it so I tried to install from dvd. about 80% o ...Show All
Visual C++ Simplest way of doing this
Hi All, I have to create a file named (Test.xml) with the following contents in XML Format. < xml version="1.0" > <MyProfile xmlns=" http://xyz.com "> <Root> <Name>Harry</Name> <Place>New York</Place> <Country>USA</Country> </Root> <VehicleType>CAR</VehicleType> <MaritalStatus>SINGLE</MaritalStatus> <Personal> <Age>23</Age> <Sex>FEMALE</Sex> </Personal> </MyProfile> What would be the simpler approach to do this I thought of creating a file using createfile and start writing the conte ...Show All
