jam281's Q&A profile
Architecture Web Crawler
How to parse CSS to make web crawler effective ...Show All
Visual Studio Express Editions Visual Studio crashes after selecting "Add Existing Item..."
In Solution Explorer, I right click project, select Add, then Existing Item... The IDE immediately exits (crashes). A box pops up with the message "Microsoft Visual C# has encountered a problem and needs to close." and prompts me to send and error report to Microsoft. It does this every time. I'm using version 8.0.50727.762. For some reason, the problem is no longer happening. At the time I posted my message, it was happening every time. ...Show All
.NET Development Execute a sql script using vb.net
Hi folks... In the past, I have broken the sql script down into single batches, then executed each batch in turn using the ExecuteNonQuery method. Is there anyway to actually execute a sql script directly Does a method exist where we can just pass it the location of the sql script and let it do the rest Cheers Mark Instead of a script use a stored procedure of encapsulate the script in the sproc....then from the command all you have to do is call the stored procedure and pass any neccessary arguements ...Show All
Visual Basic A simple query about Left Shift (<<)
Dim A As Byte () = New Byte () {231, 3} Call Test(A, 0) Private Function Test( ByVal Array As Byte (), ByVal StartAddress As Integer ) As Integer Dim A As Integer = Array(StartAddress + 1) << 8 Dim b As Integer = A << 8 Dim c As Integer = 231 Dim d As Integer = A Or c Stop End Function When the function Stops, the variables equal the following: A = 3 b = 768 c = 231 d = 231 3 << 8 = 768, but Array(StartAddress + 1) << 8 does not equal 768. Even though Array(StartAddress + 1) = 3. Why is this Also, is there anyway to view the code for System.Bitconverter to see how it's done Thank you, Troy L I'm not sure how to look at the code for Syste ...Show All
Visual Studio 2008 (Pre-release) Entity Framework & Entity Attribute Value (EAV) Models
What I've seen so far comming with the next release of ADO.NET and the Entity Framework is absolutely amazing; you efforts will be much appreciated! I do have one question though which relates to dynamic entity attributes that can be defined at runtime; more specifically something known (and often frowned upon) as Entity Attribute Value (EAV) Models. I realize there are contrary views on the validity of this model in a relational space and hope to avoid "good or bad" discussions in the thread ;-) Specifically, it has been demonstrated how we can perform logical/conceptual mapping and in turn generate logical objects that map to our entity objects. How will we map entity attributes that are unknown at mapping/compile time Will the ...Show All
Visual C# disable keys
Is there away to disable keyboard's \ mouse button(s) in web applicaiton and windows applicaiton.. using .net 1.1 .. please point me to the right API/dll/ examples I could use. Than you in advance.. We had to solve this same problem in our application, and we found that we had to write a low level application that intercepted the key events before our main program got them, we did this using C++. ...Show All
Windows Forms Gridview elements
I have a gridview, and i would like in the code, when i check the NO radio button for it to display a text box in the next column. I am new at this and i do not know exactly how to do it. I set up a postback event on the radio buttons. I would appreciate your help Thank you Thanks for your reply, I already have the radio buttons there and i have also a postback event on them but i don't know in code how to access those and check if YES radio button is checked then txtComment.visible = true kinda deal. On which event ...Show All
Visual Studio Express Editions Write arraylist to Text File
Im sure this is an easy one, but what is the best way to write an arraylist to a text file Scott Okay, that cleared the problem with the array length. However, it throws an exception... http://www.rafb.net/paste/results/BKcTHx78.html On line 54, it throws this... System.NullReferenceException was unhandled Object reference not set to an instance of an object. It is also not reading the entire original .txt file. It should have a size of 84 (total of 85 entries 0-81). However, when it msgbox's the .length, it is now 43 Is there anywhere were I can .zip this for you to take a look at ...Show All
Visual C# return type of BSTR??
I want to write a function in a class library which is the return type of the function is BSTR, how can i do that Can anyone give me an example source code Hi, chongsk You mean the one in UnmanagedType Enumeration Thanks ...Show All
Visual Studio 2008 (Pre-release) Implementing a SOA enterprise model in WCF without ESB
Hi Could WCF offer a full framework to build a SOA enterprise model without the necessity of an ESB (like IONA or Bea) I think yes, I don’t like ESB, to use a ESB I don’t need that my services are soap, but now in my big company we are deliberating the necessity of an ESB. Can anyone give me reasons to prevent us of to buy a ESB to model a SOA entrepise model Thanks Javier Hi Your notices are fantastic because I think too an ESB is not a good idea. Beginning for a simple question, how a client can discovered the url to invocate a service in WCF I ‘m not speaking about WS-MEX because I need to know the base address, my question is how can I discover the base address Is this resp ...Show All
Windows Live Developer Forums After restting IE7, I can not install Live Toolbar
I had to reset my IE 7 and now I can not install Windows Live Toolbar. I have uninstalled in the Control Panel. I did not uninstall the add-ons. The program seems to install but when I look at VIEW- Toolbars, Windows Live Toolbar is greyed out. Anyone have a suggestion on how to reslove this issue My next step was to do a REGEDIT and search for Windows Live Toolbar entries. Thanks ahead of time for any valid assistance. the solution is easy if we have read early the help from ie we will find the solution early. go to tools, manage add ons enable or disable add ons search for the toolbars you want to activate and select enable ...Show All
Visual Studio 2008 (Pre-release) Progress Bar Embedded in ListView
I have a progres bar embeded in a listview. I am trying to get the progress bars to dynamically resize themselvs when I resize the column that reside in. I cannot seem to get it to work however. Any suggestions would be welcome. A trivial Xaml example follows: < Window x:Class = " WindowsApplication2.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " WindowsApplication2 " Height = " 300 " Width = " 320 " Loaded = " loaded " SizeToContent = " WidthAndHeight " Name = " Window11 " > < StackPanel Ho ...Show All
Visual Studio 2008 (Pre-release) How to bind Background to RadialGradientBrush.Color?
Hello, I defined style for button. Its template contains rectangle filled with RadialGradientBrush and I want to bind Color property of brush to Background property of button. I know, Brush and Color are different types, but how to bind it correctly < Window x:Class = " WPFForm.Window2 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " WPFForm " Height = " 441 " Width = " 520 " > < Window.Resources > < Style x:Key = " ButtonStyler " TargetType = " {x:Type Button} " > < Setter Property = &quo ...Show All
Visual Basic Can VB6 code be compiled in VS2005 and run native in Win2000 without requiring .NET framework?
the win2000 server that the compiled dll will be running on does not allow .net2 framework to be installed. thus i wonder if it is possible to use VS2005 to compile the VB6 code into a dll that can run natively in win2000 server without installing the framework. any help will be much appreciated. thanks! If you are not able to install the framework on the server then you must revert back to VB6...Use vb6 to write your code and then to compile the dll! ...Show All
Visual Basic accessing information in an opend word document
I am trying to create an application that will open a Microsoft Word document then be able to access what the user types in to it. I'm using visual studio 2005. I have opened the document in two different ways; using the shell method and creating a new variable as a process, but once the word document is open, I cannot figure out how to access it's information. If anyone knows how to make the ms word application save, copy/paste, or knows a way for my application to access its information let me know. I've created the application once using a RichTextBox built in to my application, but my client (I'm a college intern in over my head in software development) prefers to enter the data in MS Word. Any replies are appreciated ...Show All
