-
- c# reading dbf files
by superflyninja
- 2 Replies
- Last post
by superflyninja
- hi all just a (hopefully) quick question. basically how to read dbf files in c# I have vis studios installed and .net.Need any thing else installed
-
- Document validation error
by Amid
- 6 Replies
- Last post
by Amid
- I'm using XmlSchemaValidator to validate XML document.
Its intitialized in the following way:
Code Snippet
XmlNamespaceManager manager = new XmlNamespaceManager (reader.NameTable);
XmlSchemaValidator validator = new XmlSchemaValidator (
reader.NameTable,
m_schemas,
manager,
XmlSchemaValidationFlags .ProcessSchemaLocation);
validator.ValidationEventHandler += n
-
- How to cast object to generic interface?
by Williamq
- 5 Replies
- Last post
by Williamq
- Hi
Anyone know how to cast an object to generic interface
Like IComparable interface, I can do
Code Snippet
object thisObject = typeField.GetValue();
IComparable iComparableThis = thisObject as IComparable;
How to do it for generic interface
Code Snippet
object thisObject = typeField.GetValue();
IEquatable<T> iEquatableThis = thisObject as IE
-
- URL Regex
by Sniper167
- 4 Replies
- Last post
by Sergei Z
- Could someone give me a regex to extract the urls out of a page and add them to a listbox
-
- NUnit test is only successful when breakpoint is hit
by blweiner
- 1 Replies
- Last post
by Mike Stall - MSFT
- Hi All, I'm not sure if this was the correct place to post, but I'm hoping someone could help shed some light on a problem I am having. I am running an NUnit test fixture to test some of my code (which wraps an NHibernate query). When I run the test, it fails. If, however, I set a breakpoint within the method that the test calls and simply continue each time it is hit, changing nothing, it works a
-
- [otp] SharperCV Compliances.
by TabishK
- 6 Replies
- Last post
by Peter Ritchie
- We are a group of 3 students making a project Hand Gesture (Interpretation) Recognition for physically impaired .We (myself and group members) are accustomed to VB and C#,fortunately we came across SharperCV,though many of the posts in other topics helped us a lot,like,how to install and work with it.
But we need to know how to perform image subtraction using it,there is some paprameter conflic
-
- A run time problem about SqlDataAdapter.Fill (DataSet, "TableName")
by Ricky Wang
- 2 Replies
- Last post
by Ricky Wang
- If the table name can be determined at run time instead hard coding. The best condition for me is the "TableName" can be replaced with the table name within select sql (assume only one table exists in select sql).
Any help would be appreciated.
Ricky.
-
- Check if connected to a network resource?
by MLyons10
- 7 Replies
- Last post
by nobugz
- I would like the application I am working on to display an image if it is not connected to a particular network resource, but am having some difficulty with this and thought I would ask how others would accomplish this. My thought was I could have a .txt file on this network resource, and load the data into a textBox. On the form load it loads the data into the textBox, and if it is empty it show
-
- why when deploying, it will try to load from gac first before the dlls i referenced?
by Atiz
- 1 Replies
- Last post
by nobugz
- Hi all,
I have a few dlls that my main program is working. When deploying it, I noticed that it will try to load from GAC first before finding it from the correct dll. Why is this so This will slow down the time the application starts right I understand that we don't have to place the assembly in GAC.
Below is an example of what I saw:
Failed to load [log4net, Version=1.2.10.0, Cu
-
- How Do I Trap for a dataGridView ComboBox Error?
by DennisV
- 5 Replies
- Last post
by jgalley
- Simplified:
dataGridView1[0 , 1].Value = "widgets";
This is supose to move the dataGridView's combobox (in column 0) SelectedIndex to the proper row (with "widgets" text), and it works unless no match is found, in which case you get: " DataGridView Combo Box Cell value is not valid " error.
But try{ } / catch{ } does not work for this error. H
-
- Logon failu account currently disabled.
by testuser1
- 2 Replies
- Last post
by Amram
- Hello, I am having a strange issue. I have written an application that needs to access a few different network shares. The issue I am running into, is whenever I try to access a share on my Vista I receive the following error message. "Logon failure: account currently disabled." and I have no idea where is is coming from. I will describe some tests I have run to debug this: I have 3 mach
-
- Uploading Problem
by Abdu82
- 4 Replies
- Last post
by ddlam
- Hello all
I've a problem, i would like to aske you about this problem
i'm develop a site by vb.net 2003 and i want to create featrure to upload files to this site by any one but i'm do not know how make it
please replay me speedily
your brother Abdu82
-
- Unarchiving eats up all the memory or system resources
by seanperry
- 5 Replies
- Last post
by rsisher
- Hi,
Unarchiving sucks all the memory or system resources, as i don't know what is going on.
I have a utility which unarchive hundreds of files but while unarchiving the files it does not allow me to do any thing.
Example, while unarchiving, even I open internet explore it does not even allow me to type in the
url( Explorer keeps flickering ) or what ever window I go that window k
-
- Allocating large array -> out of memory
by btb73
- 14 Replies
- Last post
by thePerm
- Heya,
I tried to allocate a large byte array in C#, like this:
byte [] buf = new byte [len]; (where len = 1gb)
But I get an out of memory exception. I have 2gb of memory in my machine, so it should work
Are there alternative/better ways to allocate large amounts of memory
/Bo
-
- match sentence containing abbreviations
by timmy8291
- 2 Replies
- Last post
by OmegaMan
- How would you match any sentence in a given text By "sentence", I mean something that begins with a capital letter and that ends with a point. I already composed this expression to match a sentence containing 5 to 50 words: "[A-Z]\w*(\s+\w+){5,50}\." But if you feed the sentence "Fruit e.g. apples are healthy for you.", then that regex only matches "Fruit e&qu
-
- AxImp.exe generates wrong source
by Zoli1313
- 3 Replies
- Last post
by Zoli1313
- Hello,
I try to use aximp to generate AxInterop.dll from an ActiveX control, to use in my managed code.
But it generates wrong .cs source, and fails at compilation:
...\Temp\0njuwva1.0.cs(123,33) : error CS0571: 'COMMONDIALOGSLib.IComponentBrowserCtrl.Selection.get': cannot explicitly call operator or accessor ...\Temp\0njuwva1.0.cs(129,26) : error CS0571: 'COMMONDIALOGSLib.ICompo
-
- static variable declration with CodeDom?
by KevinBurton
- 1 Replies
- Last post
by TaylorMichaelL
- I have been unable to declare and initialize a static variable with CodeDom. What I would like is:
public class foo
{
private static string fooName;
. . . .
}
Have I overlooked some some combination of CodeDom classes or is this not possible
Thank you.
Kevin
-
- Bug in Socket.Connected property
by Nimce
- 10 Replies
- Last post
by Nimce
- Hi! I've built a server which is listening to port 55. I run the current code: (VB.NET)
Code Block
Imports System.Net Imports System.Net.Sockets Module Module1 Sub Main() Dim sck As Socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) Dim myip As IPAddress = IPAddress.Parse("127.0.0.1") Dim myep As EndPoint = New IPEndPoint(myi
-
- ADO.NET: Disconnected or Connected?
by PhilipJohn
- 2 Replies
- Last post
by PUSHKAR & party
- Hi all,
I currently use a connected ADO.NET model because I use stored procedures. I see ADO.NET (connected model)allows updates, inserts, deletes only if you're grabbing data from a single SQL table, correct Why would you use a disconnected model It seems very restrictive and the data static, although less code intensive.
-
- Help on delegates needed
by vbjunkie
- 5 Replies
- Last post
by vbjunkie
- HI,
Just grasping the idea of delegates and wondering if I could achive the following:
EG
When I logon I want to notify all the classes the Username and password.
How Can I achieve this level of notification with delegates
EG
I have class called logon .
I logon and I want to notify Class A and Class B the username I have used to logon
How can I do it Examples in eit
-
- Deleting all but one decimal point?
by PMichaud
- 2 Replies
- Last post
by OmegaMan
- I'm having a tough time figuring out how to do this without resorting to logic outside the regex itself.
I have a regex that gets rid of any characters except digits, and decimal points. The idea is to get a string that can be converted to a double. This works if there is one or fewer decimal points, but if there is more than one, it breaks.
The replace gives me this:
1kjhkj2h
-
- Reading ArrayList
by Gonzalo
- 5 Replies
- Last post
by Robert Rossney
- Hi! I want to know how to read the data inside an ArrayList...I have added items from a listbox into an ArrayList, like this:
foreach ( object Item in lbxSeleccionados.Items)
{
fABM.list.Add(Item);
}
Each Item in the listbox had a DisplayMember and 2 ValueMembers.
Now I want to get those Items back, because I have to store them in a SQL table, so I need the Display
-
- Anyway to re-install .net framework on a botched install that wont un-install?
by AnonymousOne2222
- 8 Replies
- Last post
by AnonymousOne2222
- Newbie User (me)
64bit machine
Win Server 2008 Beta 3 Data Center 64bit
SharePoint Services 3.0
SharePoint Server
Project Server
SQL Express
SQL Server
Ok so All I wanted to do was get a test bed up for Project Server ..
I installed SharePoint Services and Project Server.. it worked .. the tech update feature had a minor error at the end so as a newbie I just fig
-
- Detecting remove lock event on file
by Beloega
- 5 Replies
- Last post
by nobugz
- I have the following problem:
We have to write an application that acts on changes on files. For example editing a word - file.
We achieve this using the FileSystemWatcher from .NET 2.0. When the word-file is saved the events correctly trigger, but the files are locked, which causes our action to fail, but this is not the problem. But when the user closes the word-application. The
-
- Passing parameters from query string
by JMTS
- 1 Replies
- Last post
by Paul P Clement IV
- I would like to be able to pass values (from a query string) to a stored procedure. I would like to load the data on the page based upon the query string values being passed to the stored procedure. Can this be done during the page load event Should this be done on the page load event Should the parameters be built in the page load event or should there be a function call to a function
Does a