C# - A GINA Replacement In A .NET Language?
Dec 16, 2009
I only found one GINA replacement called pGINA but it is in C++ which I don't know at all.Does anybody know one in either C# or VB.NET?(I'm writing software for use at work to control what employees are doing)
View 3 Replies
ADVERTISEMENT
Mar 29, 2010
In my winform app in VB.NET I want to use the localization option. But i have a few questions/problems. I'm using a menu strip to select an other language. But it seems that is doesn't change my menustip text to my selected language. It does change my labels, buttons, and textboxes but menu strips don't seem to change when I choose another language. Also is it possible to get those resx files such as MyForm.fr-FR.resx compiled so it isn't an external file outside my app? Or to get those files in an Language folder at the same location of my app, so i don't have all those fr-FR & nl-Nl folders in the same location as my program?
View 4 Replies
Mar 11, 2010
What reasons are there to migrate from vb.net specific language to .net framework language?
Examples:
VB.net
ubound
msgBox
.Net Framework
array.getUpperBound(0)
messageBox
View 4 Replies
Nov 29, 2010
I have multilingual application that was done in VB2005.We recently had a request to translate the application to Arabic (Egypt), so I have been happily running through all of the forms and changing the layout for Right to Left format.I have 2 forms that are problematic though.On one form, whenever I select Arabic (Egypt), it will automatically switch the selection to Arabic (Saudi Arabia) and try to add an ar-SA resx file.On the other problematic form, if I choose Arabic (Egypt), the IDE will automatically select Chinese (People's Republic of China), then copy the contents of my ar-EG resx file into the zh-CN file, overwriting all of our Chinese translations and layout changes with the Arabic ones.
View 1 Replies
Mar 23, 2012
when i used vb6 i used csocketplus on winsock. i need a replacement of csocketplus , i need to create array in network socket
View 1 Replies
Apr 8, 2011
i have a C++ DLL. What i am doing is that i am passing memory address to my C++ dll where it write message on that address and i want to read the message from that memory address.
Here is my C++ function.
int _stdcall Test(int res, wchar_t *text)
Now in my C#.Net test app .. if i use unsafe char* .. i am getting proper output.
Declaration
static extern unsafe int Test(char* msg);
Implementation
[code].....
Now implementing in vb.net i am getting jst 1st character by using stringbuilder.
Dec
Private Shared Function Test(ByVal msg As StringBuilder) As Integer
Imp
[code].....
What is the replacement for char* in .Net ?
View 1 Replies
Jun 28, 2011
How to replace this string so that after the replacement work the string will be free of any spaces?
This is the string:
dim InitialString as string = "Hello world
View 2 Replies
Apr 17, 2010
I've been working on a project that requires that I can go around webpages with different proxies, user-agents, and clear cookies. Now after looking all around the net, it looks like there are some solutions for each of these, but I can never get them working. I was wondering if there was a wrapper for this control that fixed all of these problems or even just a different control I could include.
View 1 Replies
Apr 26, 2011
I was trying to put together a solution to:Insert spaces between words on a camel-cased token..Essentially, he wants to turn 'ThisIsATest' into 'This Is A Test'. I thought, 'Oh, that's easy, I can do it with LINQ' but I struggled with it. [code]Is the path I started to go down, but I'm having trouble getting the results into something I can work with. I even added the .ToString to try and get back an array of Strings, but I'm still getting an error.[code]I believe that means I'm getting a collection of System.Char, System.String instead of just a System.String like I want.
View 3 Replies
Nov 30, 2010
How fast can I replace characters in a string?
So the background on this question is this. We have a couple of applications that communicate with each other and with client's applications through sockets. These socket messages contain non printable characters (e.g. chr(0)) which need to get replaced with a predetermined string (e.g "{Nul}"} because the socket messages are kept in a log file. On a side note, not every log message will need to have characters replaced.
Now I started off on this little adventure reading from This MSDN link which I found from a different post from this site.
The current method we used...at the beginning of the day...was using string builder to check for all the possible replacements such as...
Public Function ReplaceSB(ByVal p_Message As String) As String
Dim sb As New System.Text.StringBuilder(p_Message)
sb.Replace(Chr(0), "{NUL}")
[Code]....
This so far has been the fastest way I have found to process these messages. I have tried various other ways of going about this as well like converting the incoming string into a character array and comparing along with also trying to loop through the string rather than the chrArray.
View 5 Replies
Aug 18, 2011
replacement for winsock in vb9?
View 1 Replies
Jun 29, 2010
I need to develop an project in VB.Net 2005 or 2008 and SQL 2005 for the database. It is not possible to create an App Config file(To create an connection to the Database).Is it possible to use/create an connection with similar functionality, and what is the replacement of this function.
View 1 Replies
Jun 6, 2009
I have the following [cod]e...
But the label still shows the [b]! It doesn't want to delete itself..
View 2 Replies
May 5, 2011
I am trying to execute a command that works with hard coded variables, but when I try and replace the name test below with selectedname, I cannot get the syntax for escaping the command. The basic idea is I am using WMI to query the app pool names and then selecting one and storing in the slectedname variable, which works when I test with a msgbox(selectedname) line. It also shows up when I am stepping through, but does not get passed to the bottom command. The function where I am trying to execute the command is
Private Sub Stpbtn_Click(sender As Object, e As System.EventArgs) Handles Stpbtn.Click
Dim selectedname As String
[Code].....
View 1 Replies
Feb 7, 2011
does anyone know what i can use in place of the NewIndex since it doesn't seem to be able to update that from my VB6 code?
lstARCurrent.AddItem strStatus & " - " & strApprover & " " & strStatusDate
lstARCurrent.ItemData(lstARCurrent.NewIndex) = (.Fields("approval").Value)
View 7 Replies
Jun 18, 2012
What's a replacement for e.Argument?I swapped from a Background worker to manual threading and I don't know what to use here?
View 1 Replies
Apr 27, 2011
I have a vb.net program that is failing, but giving no errors. I've just discovered that the code I am using is deprecated. But what is the replacment? (That seems like something useful for MSDN to list, but I'm sure not seeing it.)
Private Sub SetConnectionToDB(ByRef oCMD As OracleCommand)
Dim connectionString As String
connectionString = My.Settings.ImportDataConnectionString
[code]....
View 1 Replies
Sep 29, 2010
wpf application was running very slow. I was using the performance profiling tools for wpf from windows and noticed my hardware IRTs per frame where very high (100+). that this is caused by some effects. After disabling some effects i found that this was the cause...
<Border.Effect>
<DropShadowEffect Direction="45" Color="#DDDDDD"/>
</Border.Effect>
[code].....
View 6 Replies
Dec 24, 2010
I am doing some url redirections in a project that I am currently working on. I am new to web development and was wondering what the best practise was to remove any illegal path characters, such as ' ? etc.I'm hoping I don't have to resort to manually replacing each character with their encoded urls.
I have tried UrlEncode and HTMLEncode, but UrlEncode doesn't cater for the ? and HTMLEncode doesn't cater for '
E.G. If I was to use the following:
Dim name As String = "Dave's gone, why?"
Dim url As String = String.Format("~/books/{0}/{1}/default.aspx", bookID, name)
Response.Redirect(url)
I've tried wrapping url like this:
Dim encodedUrl As String = Server.UrlEncode(url)
And
Dim encodedUrl As String = Server.HTMLEncode(url)
View 2 Replies
May 9, 2011
to resolve this problem. User inputs a string and no.of replacement positions. for ex: l=7 and f=1 (L means length of string and f means replacement chars)
[Code]...
View 2 Replies
Jul 18, 2011
So I have a Powerpoint presentation. It contains numerous images on it, referred to by image X. (So it's the same image but on multiple pages) These same images on different pages/slides have different width/height attributes associated to them. So even though they're the same image, they may not be the same size.
So there exists a scenario where an image exists on a lot of the slides. I want the ability to replace all of them at the same time (quickly) without having to go through each slide and separately replacing X, one at a time with the new image.
Is this possible? (yes/no)How would this be accomplished? (abstract - high level explanation is only required)
View 2 Replies
Dec 19, 2011
I'm using .NET Framework 2.0 for my application, but I need to get a part from a byte array.Normally I would do this (ByteArray.Take(Amount).ToArray), but Framework 2.0 doesn't have a Take member. Is there a replacement for this?
View 12 Replies
Jun 14, 2011
First of, sorry if this is posted in the wrong place, I'm knew here and it looked like the right place lol.
Ok on with my problem. I am writing a replacement shell (for windows 7, if that makes a diffrence) in VS proffesional 2010 (in vb.net obviously lol) and i've hit a road block. I cant work out how to create the ystem tray for storing notify icons in. I'm totaly lost.
View 4 Replies
Jun 22, 2012
m currently learning vb.net. I have a program that replaces text in files but right now it only does it with one single file. I wan
Dim myfilein As String = Application.StartupPath + "\website1\website1.html"
If IO.File.Exists(myfilein) Then
[code].....
View 5 Replies
Mar 4, 2011
I am trying to convert a method from VB6 to VB.NET and having some issues with StrPtr and VarPtr not being supported in VB.NET anymore. Here is the method having a problem. From what I know, I am looking to get the memory location of the objects to pass to the SendMessageCDS() method.
[Code]....
View 2 Replies
Nov 16, 2009
i am loading an assembly with reflection through a partial name ... in this case "system"
vb
Assembly.LoadWithPartialName(Filename)
View 2 Replies
Apr 12, 2010
Basically my issue is that users would like to search for a french word that has accented characters but without typing in the accented characters and then have the actual accented word appeared highlighted if found... So for example they would type in "declare" but in the result sets it would look like "déclare" and if found "déclare" would be highlighted.
My first thought was to just simply replace the characters with a regex but then I remembered that I would need to re-insert the replaced characters after the search... I was thinking of then using some sort of character map that would track position and the character so that when the search was finshed I could put the result set back to the way it was.
View 1 Replies
Feb 25, 2012
When using: vb System.Net.Dns.GetHostByAddress it states that it is obsolete, and to use GetHostEntry instead. But for some IP's this errors whereas GetHostByAddress does not... for example:
[Code]...
View 3 Replies
Sep 14, 2009
This is a follow up to another question of mine. The solution I found worked great for every one of the test cases I threw at it, until a case showed up that eluded me the first time around.My goal is to reformat improperly formatted tag attributes using regex (I know, probably not a fool-proof method as I'm finding out, but bear with me).
My functions:
Public Function ConvertMarkupAttributeQuoteType(ByVal html As String) As String
Dim findTags As String = "</?w+((s+w+(s*=s*(?:"".*?""|'.*?'|[^'"">s]+))?)+s*|s*)/?>"
[code].....
View 2 Replies
Sep 3, 2010
The application reads information similar to a DXF file. For purposes of discussion, the data consists of lines, those lines have endpoints, x1,y1,x2,y2. Within the file those lines create "paths", in other words, they are connected. There can be many separate paths within a single file. However in the original file, the geometry is not in any particular order, the paths are not indicated.
View 3 Replies