|
Hi,
I want to create an editor which should have two views ASCII and Binary, when i edit either view respective changes should happen in next one. Can some one tell me how could i design it ?
Thanks
|
|
|
|
|
Found this on CodeProject after googling a bit for tutorials: http://www.codeproject.com/useritems/JIBitArray.asp[^]
Should cover your needs for getting bitpatterns for characters.
You could then use for instance TextBox.CaretPos to check for which bit you're modifying and update the ascii-string, or vise verca.
-Larantz-
|
|
|
|
|
OK., lets say i have 4 Gig of data when i ask this bulk data to send to Text box (Rich Text) where it will go and sit either primary or secondary memory? Is it really possible to hadle huge data with UI or any other special things are around. I can consider 64 - bit environment for this BTW woule like to make sure where data will be for UI Controls.
Thanks
|
|
|
|
|
It'll go in the primary.
You'll have to break the data up in smaller chunks for it to be conceivable.
-Larantz-
|
|
|
|
|
Hi,
Here is my problem:
I created a try.htm on my server, which contains a link to the default.aspx page.
if I use http://localhost/try.htm, and click the link, then in default.aspx, I could get the correct HttpContext.Current.Request.UrlReferrer.
but if I use https://localhost/try.htm (my server could use https), and click the link, then in default.aspx, the correct HttpContext.Current.Request.UrlReferrer is null.
Is that by design that UrlReferrer is null when it is from a https url?
If so, how could I still get the https://localhost/try.htm in default.aspx? if not, how should I correct it?
Thanks In Advance
|
|
|
|
|
This question should be asked in ASP.NET forum.
-Larantz-
|
|
|
|
|
Hi All,
Is there any other way to make my application multiple language?
Currently I'm creating a class to handle all the diff language in an array and calling them upon diff timing.
|
|
|
|
|
click HERE
it uses the localization class built-in in VS. whereby it creates a single XML file for each single language.
|
|
|
|
|
an application can be made multilanguage provided you use a flexible framework such as the .net framework ,it alllows developers to create multilanguage classes within the same application ,for more one needs to know more about the .net framework and its properties .
ankitbhadana
|
|
|
|
|
I suggest you read the topics about globalisation and localisation in the MSDN http://msdn2.microsoft.com
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
You can do it to a certain point. On code project there is a tool to translate resources, which works nice. Support from .NET is not really an improvement above the resource dll's you couldmake with MFC. If you'r really seriuos, there is a book about Internationalization focussing on .NET (look at Amazon for it). My recent experience is that it takes a lot of specific knowledge and it takes much time to make real multiligual applications. I.m Dutch and I love my laguage but I don't think I really want to invest so much time in this.
An important thing is that you must include it from day 1 into yor design. Adding multi langauge support later on is very difficult and tedious to do.
Rudolf Heijink
|
|
|
|
|
Rudolf Jan Heijink wrote: An important thing is that you must include it from day 1 into yor design. Adding multi langauge support later on is very difficult and tedious to do.
I agree 100% with that.
Here in Switerland with our 4 official languages, localization is always needed
Rudolf Jan Heijink wrote: Support from .NET is not really an improvement above the resource dll's you couldmake with MFC
I think the .NET framework offers enough:
- local Resources
- global Resources
But of course you have to program some helpers specific to your project.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
hi guys,
I want to develop an application that logs the Internet Explorer (IE) usage time and the person who use it.
to do this, i need the application to runs or popup the login interface when user open the IE. when user closes all the IE windows, then the application will logout itself and at the same time logs the usage time.
how can i do this??
thanks..
|
|
|
|
|
In Global.asax file, there are events for session_start and session_end.
put your code to update the DB(in DB you shd have colums for last_login) in the above events.
Biju Sam
|
|
|
|
|
how can i keep track of the user in the application while he is logged on ,something like session in web appl..
|
|
|
|
|
you can use static variable
|
|
|
|
|
u can try following codes
u can find process object in System.Diagnostics namespace
int pcnt =0;
Process curproc = null;
Process[] pr = Process.GetProcesses("ur machine name");
foreach(Process pr2 in pr)
{
if(pr2.ProcessName.Equals("ur application name"))
{
pcnt=pcnt+1;
curproc = pr2;
}
}
if(pcnt>1)
{
MessageBox.Show("Application already running");
curproc.Kill();
}
rahul
|
|
|
|
|
thanks rahul..
could you please explain me what is happening behind these code , it would help me a lot to arrenge this solution as my request..
thanks again...
|
|
|
|
|
first I'm Korean.
I can't speak Englisg well... Sorry~
now i'm using C#(2005).
I wanna know how to get FTP Server's directory name.
Of Course I alread have FTP Server.
I don't know, what kind of class I have to use.... please help me~
If it possible, I need some example source.
Have a nice day~~~
|
|
|
|
|
|
Hi,
Can someone please tell me the methods to check the checkedlistbox based on my sql querie?
I have this sql code.
string sql = "Select e.TechnicalSkillsID from employees e where EmployeeID = '" + FirstnameText.Text.ToString() + "' and EmployeeID = '" + Lastnametext.Text.ToString() + "'";
My c# code - techSkillsCheckListBox2.GetItemText(adoDR["TechnicalSkillsID"].ToString());
another sql statement
sql = "Select t.ProgLanguagesDatabase from TechnicalSkills t, employees e where e.TechnicalSkillsID = t.TechnicalSkillsID";
and then finally a for loop which should check the boxes based on techskillsID but nothing happens.
for (int i = 0; i < techSkillsCheckListBox2.Items.Count; i++)
{
if (adoDR["TechnicalSkillsID"])
{
if (techSkillsCheckListBox2.Items.Equals(adoDR["TechnicalSkillsID"].ToString()))
I think all that is wrong is the 'if' statement because the debigger picks up the correct value.
My manager can't even work it out and apparently they think I am the one not progressing. 
|
|
|
|
|
Does the query return multiple TechnicalSkills for each employee?
In that case, are you also iterating over the various instances of TechnicalSkills per user?
(you're not as of what you've showed us so far).
Or are you showing only one user at a time?
The query should return a table consisting of rows equal to the amount of technical skills for that user, unless you store all the skill ids in one column with a seperator.
falles01 wrote: if (adoDR["TechnicalSkillsID"])
What's this line supposed to check for?
falles01 wrote: if (techSkillsCheckListBox2.Items.Equals(adoDR["TechnicalSkillsID"].ToString()))
And this if statement compares a Collection of CheckedListBoxItems with a string.
-Larantz-
|
|
|
|
|
well I actually do need multiple entries /skills in the database yes but I am not sure how to do that part either. I have created a new table and have employeeID and TechnicalSkillsID bu thats as far as I've gotten. I haven't written any code for it. Can you help in that department at all? The skills will be saved to the database by checking checkedlistboxes. I am also using dataadapters. Once I've gotten that part right, will it fix the problem of automatically checking the checkedlist box for a given employees skills?
Thank you
|
|
|
|
|
First of all you should decide whether you want the TechnicalSkillsID as a column in the employees table - as you have now. If you keep it that way, and you want one empolyee to be able to own several TechnicalSkills, you'll have to store several ID's with a separating value.
A better approach, if you ask me, would be to remove the TechnicalSkillsID column from the employee table entirely, and rather create a TechnicalSkills table which uses the employeeID as a keyvalue. Then add one boolean column per technical skill that you want available.
You could then use the column name as a the name of the CheckedListBoxItem and set the Checked property according to the value from the database.
I'll write an example of the latter one:
Create a query for retrieving the row from the TechnicalSkill table with a employeeID equal to the employee you want to configure skills for.
Code for propagating and setting the value for CheckedListBoxItems:
... generate and execute the query for returning the techskills for the given employee
DataTable techSkillsTable = myDataSet.Tables[0];
foreach(DataRow row in techSkillsTable.Rows)
{
foreach (DataColumn column in techSkillsTable.Columns)
{
string techSkillName = column.ColumnName;
bool userHasSkill = false;
try
{
userHasSkill = Convert.ToBoolean(row[column]);
}
catch
{
}
techSkillsListBox.Items.Add(techSkillName, userHasSkill);
}
}
Hope it can be of some help.
Best regards!
-Larantz-
|
|
|
|
|
Good evening everyone,
Just migrated from Oracle8 to Oracle9i and have a problem while running this line now "which I didnt have in Oracle8!!"..
OracleConnection ConnectMe = new OracleConnection("Data Source=orcl; Persist Security Info=True;User ID=DLDSP; Password=DLDSP;Unicode=True");
ConnectMe.Open();
It says: OCI.Dll, The specified module could not be found (twice) and then it breaks down and gives me:
OCIEnvCreate failed with return code -1 but error message text was not available.
Many thanks guys
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|